/* ==========================================================================
   1. TOKENS & VARIABLES
   ========================================================================== */
:root {
  --forest: #16332C;
  --forest-deep: #0E2420;
  --ivory: #F4EEE3;
  --terracotta: #C97B4A;
  --walnut: #7A5C3E;
  --brass: #C9A463;
  --ink: #20201C;

  --font-display: "Fraunces", serif;
  --font-body: "Work Sans", sans-serif;
}

/* ==========================================================================
   2. BASE STYLES
   ========================================================================== */
* { 
  box-sizing: border-box; 
  margin: 0; 
  padding: 0; 
}

body {
  font-family: var(--font-body);
  background: var(--ivory);
  color: var(--ink);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { 
  color: inherit; 
  text-decoration: none; 
}

img { 
  max-width: 100%; 
  display: block; 
}

/* ==========================================================================
   3. HEADER & NAVIGATION (COMMUNS À TOUT LE SITE)
   ========================================================================== */
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 6%;
  height: 90px;
  position: sticky;
  top: 0;
  background: rgba(244, 238, 227, 0.92);
  backdrop-filter: blur(6px);
  z-index: 10;
  border-bottom: 1px solid rgba(32, 32, 28, 0.08);
}

.site-header .logo-img {
  height: 48px;
  width: auto;
  display: block;
  max-width: 100%;
  transform: scale(4.8);
  transform-origin: left center;
  transition: transform 0.3s ease;
}

.site-header .logo-img:hover {
  transform: scale(4.85);
}

.main-nav { 
  display: flex; 
  gap: 32px; 
  align-items: center;
  height: 100%;
}

.main-nav a {
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  position: relative;
  display: inline-flex;
  align-items: center;
  padding-bottom: 4px;
}

.main-nav a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0; 
  bottom: 0;
  width: 0; 
  height: 1px;
  background: var(--terracotta);
  transition: width 0.25s ease;
}

.main-nav a:not(.nav-cta):hover::after { 
  width: 100%; 
}

.main-nav a.active { 
  color: var(--terracotta); 
}

.main-nav a.active::after { 
  width: 100%; 
}

.nav-cta {
  background: var(--forest);
  color: var(--ivory) !important;
  padding: 10px 22px !important;
  border-radius: 999px;
  line-height: 1;
}

.nav-cta:hover { 
  background: var(--forest-deep); 
}

/* ==========================================================================
   4. HERO SECTIONS
   ========================================================================== */
.page-hero {
  padding: 90px 6% 60px;
  max-width: 820px;
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  font-weight: 500;
  line-height: 1.12;
  color: var(--forest-deep);
}

.page-hero h1 em { 
  color: var(--terracotta); 
  font-style: italic; 
  font-weight: 500; 
}

.page-hero .hero-lead {
  margin-top: 24px;
  font-size: 1.05rem;
  max-width: 520px;
  color: #4a4a43;
}

.hero {
  padding: 90px 6% 70px;
  max-width: 820px;
  position: relative;
}

.hero-rule {
  width: 56px;
  height: 4px;
  background: var(--terracotta);
  margin-bottom: 28px;
}

.eyebrow {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--walnut);
  font-weight: 600;
  margin-bottom: 18px;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 5.5vw, 4.2rem);
  font-weight: 500;
  line-height: 1.08;
  color: var(--forest-deep);
}

.hero h1 em { 
  color: var(--terracotta); 
  font-style: italic; 
  font-weight: 500; 
}

.hero-lead {
  margin-top: 28px;
  font-size: 1.1rem;
  max-width: 480px;
  color: #4a4a43;
}

/* ==========================================================================
   5. BOUTONS COMPOSANTS
   ========================================================================== */
.btn-primary {
  display: inline-block;
  margin-top: 36px;
  background: var(--terracotta);
  color: var(--ivory);
  padding: 14px 30px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.2s ease, background 0.2s ease;
}

.btn-primary:hover { 
  background: var(--forest-deep); 
  transform: translateY(-2px); 
}

.btn-light {
  display: inline-block;
  margin-top: 30px;
  border: 1.5px solid var(--forest-deep);
  padding: 13px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: background 0.2s ease, color 0.2s ease;
}

.btn-light:hover { 
  background: var(--forest-deep); 
  color: var(--ivory); 
}
.swatch-image {
  width: 100%;
  height: 180px; /* Ajustez la hauteur selon votre mise en page */
  overflow: hidden;
  border-radius: 8px; /* Bords arrondis pour l'image */
  margin-bottom: 12px;
}

.swatch-image img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Garantit que l'image remplit l'espace sans déformation */
  display: block;
  transition: transform 0.3s ease;
}

/* Effet de zoom élégant au survol de la carte */
.swatch:hover .swatch-image img {
  transform: scale(1.05);
}

/* ==========================================================================
   6. SECTIONS CONTENU & GRILLES
   ========================================================================== */
.section-label {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--walnut);
  font-weight: 600;
  margin-bottom: 26px;
}

.swatches { 
  padding: 40px 6% 100px; 
}

.swatch-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.swatch {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 320px;
  padding: 26px;
  border-radius: 6px;
  overflow: hidden;
  color: #fbfbfb;
  background: linear-gradient(120deg, rgba(255,255,255,0.18), transparent 50%),
              linear-gradient(160deg, #cdab68, #8c6f37);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.swatch:hover { 
  transform: translateY(-6px); 
  box-shadow: 0 18px 30px rgba(20,20,15,0.18); 
}

.swatch-index {
  position: absolute;
  top: 22px; 
  left: 26px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: lab(100% 0.01 -0.01);
  opacity: 0.85;
}

.swatch h2 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 500;
  margin-bottom: 10px;
}

.swatch p { 
  font-size: 0.92rem; 
  color: lab(100% 0.01 -0.01);
  opacity: 0.92; 
  max-width: 230px; 
}

/* --- Section Approche (About strip) --- */
.about-strip {
  background: var(--forest);
  color: var(--ivory);
  padding: 100px 6%;
  display: grid;
  grid-template-columns: 1.2fr 1.3fr;
  gap: 80px;
  align-items: center;
}

.about-strip .section-label { 
  color: var(--brass); 
  margin-bottom: 20px;
}

.about-strip h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.2vw, 2.5rem);
  font-weight: 500;
  line-height: 1.25;
  margin-bottom: 24px;
}

.about-strip p:not(.section-label) { 
  color: #cfd8d2; 
  max-width: 480px; 
  font-size: 1.02rem;
}

/* Grille des blocs chiffres / photos */
.about-figure {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  gap: 24px;
}

.figure-item {
  flex: 1;
  position: relative;
  background-size: cover;
  background-position: center;
  background-color: rgba(244, 238, 227, 0.03); /* fallback si l'image manque */
  border: 1px solid rgba(244, 238, 227, 0.08);
  padding: 40px 30px;
  border-radius: 8px;
  min-height: 380px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 10px;
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

/* Voile sombre pour garder le texte lisible sur la photo */
.figure-item::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(14, 36, 32, 0.88) 0%,
    rgba(14, 36, 32, 0.35) 60%,
    rgba(14, 36, 32, 0.1) 100%
  );
  z-index: 1;
}

/* Le chiffre et le texte passent au-dessus du voile */
.figure-item span,
.figure-item small {
  position: relative;
  z-index: 2;
}

.figure-item span {
  font-family: var(--font-display);
  font-size: 3.2rem;
  font-weight: 600;
  line-height: 1;
  color: rgba(244, 238, 227, 0.6);
  transition: color 0.3s ease;
}

.figure-item small {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.3;
  color: #f4eee3;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.figure-item:hover {
  border-color: rgba(244, 238, 227, 0.3);
  transform: translateY(-6px);
}

.figure-item:hover span {
  color: var(--ivory);
}

/* --- Bandeau CTA --- */
.cta-band {
  text-align: center;
  padding: 100px 6%;
  max-width: 700px;
  margin: 0 auto;
}

.cta-band h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: var(--forest-deep);
  font-weight: 500;
}

.cta-band p {
  margin-top: 14px;
  color: #4a4a43;
  font-size: 1.05rem;
}

/* ==========================================================================
   7. FOOTER & COMPOSANTS INTERNES (VERSION COMPACTE)
   ========================================================================== */
.site-footer {
  background: var(--forest-deep);
  color: #cfd8d2;
  padding: 40px 6% 20px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 28px;
}

.site-footer .logo { 
  color: var(--ivory); 
}

.site-footer .logo span { 
  color: var(--brass); 
}

.footer-col { 
  display: flex; 
  flex-direction: column; 
  gap: 6px; 
}

.footer-heading {
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  color: var(--brass);
  font-weight: 600;
  margin-bottom: 4px;
}

.footer-col a:hover { 
  color: var(--ivory); 
}

/* --- Bloc Partenaires --- */
.partners-box {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid rgba(244, 238, 227, 0.08);
  max-width: 380px;
}

.partners-label {
  font-family: var(--font-body);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--brass);
  opacity: 1 !important;
  font-weight: 600;
  margin-bottom: 10px;
}

.partners-logos {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 8px 14px;
  flex-wrap: wrap;
}

.partner-img {
  height: 22px;
  width: auto;
  opacity: 0.45;
  filter: grayscale(100%) brightness(200%);
  transition: opacity 0.3s ease, filter 0.3s ease;
}

.partner-img:hover {
  opacity: 1;
  filter: grayscale(0%) brightness(100%);
}

/* --- Zone Réseaux Sociaux --- */
.footer-socials-box {
  margin-top: 10px;
}

.socials-label {
  display: none;
}

.social-icons {
  display: flex;
  gap: 14px;
  align-items: center;
}

.social-icons a {
  display: inline-flex;
  color: #cfd8d2;
  transition: color 0.25s ease, transform 0.2s ease;
}

.social-icons a:hover {
  color: var(--brass); 
  transform: translateY(-2px);
}

.social-svg {
  width: 20px;
  height: 20px;
}

/* --- Bas de page --- */
.footer-bottom {
  grid-column: 1 / -1;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid rgba(244,238,227,0.12);
  font-size: 0.82rem;
  color: #8a9590;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}

.footer-bottom-separator {
  color: #8a9590;
  opacity: 0.6;
}

/* ==========================================================================
   8. ACCESSIBILITY, UTILITIES & FLOATS
   ========================================================================== */
a:focus-visible, 
button:focus-visible {
  outline: 2px solid var(--terracotta);
  outline-offset: 3px;
}

.whatsapp-float {
  position: fixed;
  bottom: 26px;
  right: 26px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(20,20,15,0.25);
  z-index: 50;
  transition: transform 0.2s ease;
}

.whatsapp-float:hover { 
  transform: scale(1.07); 
}

.whatsapp-float svg { 
  width: 28px; 
  height: 28px; 
}

/* ==========================================================================
   9. RESPONSIVE DISPOSITIFS (MEDIA QUERIES)
   ========================================================================== */
@media (max-width: 1024px) {
  .about-strip {
    grid-template-columns: 1fr;
    gap: 48px;
    padding: 80px 6%;
  }
  
  .about-strip p:not(.section-label) { 
    max-width: 100%; 
  }
}

@media (max-width: 900px) {
  .swatch-grid { grid-template-columns: 1fr 1fr; }
  .site-footer { 
    grid-template-columns: 1fr;
    padding: 32px 6% 16px;
  }

  .footer-col {
    text-align: center;
  }

  .social-icons {
    justify-content: center;
  }

  .partners-box {
    max-width: 100%;
    margin: 20px auto 0;
  }
  .partners-logos {
    justify-content: center;
  }
}

@media (max-width: 600px) {
  .main-nav { display: none; }
  .swatch-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 60px; }
  
  .about-figure {
    flex-direction: column;
    gap: 16px;
  }

  .figure-item {
    min-height: 280px;
  }

  .whatsapp-float {
    bottom: 18px;
    right: 18px;
    width: 52px;
    height: 52px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 10px;
  }

  .footer-bottom-separator {
    display: none;
  }

  .footer-legal {
    flex-wrap: wrap;
    gap: 10px 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .swatch, 
  .btn-primary, 
  .main-nav a::after,
  .figure-item { 
    transition: none; 
  }
  
}
/* Grille pour mettre les deux photos de part et d'autre */
.devis-photos-side {
  display: grid;
  grid-template-columns: 1fr 1fr; /* Deux colonnes égales */
  gap: 20px;                      /* Espace entre les deux photos */
  margin-bottom: 40px;            /* Espace avant le début du formulaire */
}

.side-photo-item {
  height: 250px;                  /* Hauteur fixe pour que les deux photos fassent la même taille */
  border-radius: 8px;             /* Angles arrondis pour matcher avec le style du site */
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(14, 36, 32, 0.08); /* Ombre légère aux couleurs du forest-deep */
}

.side-photo-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;              /* Empêche les images de se déformer */
  display: block;
  transition: transform 0.3s ease;
}

/* Petit effet de zoom au survol */
.side-photo-item:hover img {
  transform: scale(1.03);
}

/* Version Mobile : les photos passent l'une sous l'autre */
@media (max-width: 600px) {
  .devis-photos-side {
    grid-template-columns: 1fr;   /* Une seule colonne sur mobile */
    gap: 15px;
  }
  .side-photo-item {
    height: 180px;                /* Hauteur légèrement réduite sur mobile */
  }
}
/*================ LEGAL CENTER ================*/

.footer-legal{

display:flex;

justify-content:center;

align-items:center;

gap:16px;

margin-top:0;

}

.legal-link{

background:none;

border:none;

cursor:pointer;

color:#d7c5a0;

font-size:.9rem;

transition:.3s;

}

.legal-link:hover{

color:white;

}

.legal-modal{

position:fixed;

inset:0;

background:rgba(0,0,0,.45);

backdrop-filter:blur(12px);

display:flex;

justify-content:center;

align-items:center;

opacity:0;

visibility:hidden;

transition:.35s;

z-index:99999;

}

.legal-modal.show{

opacity:1;

visibility:visible;

}

.legal-window{

width:min(900px,90vw);

height:min(700px,90vh);

background:#F4EEE3;

border-radius:22px;

overflow:hidden;

box-shadow:0 30px 90px rgba(0,0,0,.25);

animation:popup .35s ease;

}

@keyframes popup{

from{

transform:translateY(40px) scale(.92);

opacity:0;

}

to{

transform:none;

opacity:1;

}

}

.legal-header{

padding:35px;

background:#16332C;

color:white;

}

.legal-tabs{

display:flex;

border-bottom:1px solid rgba(0,0,0,.08);

}

.tab-btn{

flex:1;

padding:18px;

background:none;

border:none;

cursor:pointer;

font-weight:600;

}

.tab-btn.active{

background:#C97B4A;

color:white;

}

.legal-content{

padding:35px;

height:430px;

overflow:auto;

line-height:1.8;

}

.tab-content{

display:none;

}

.tab-content.active{

display:block;

}

.legal-close{

position:absolute;

right:25px;

top:18px;

background:none;

border:none;

font-size:38px;

cursor:pointer;

color:white;

}
