/* =========================================================
   LITROPEX BF — Feuille de style
   Palette : bleu nuit (identité), bronze route (accent), sable
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@500;600;700&family=Source+Sans+3:wght@400;500;600;700&display=swap');

:root{
  --navy-deep:   #0B2544;
  --navy-mid:    #123A63;
  --navy-line:   #1E4A78;
  --bronze:      #C4803F;
  --bronze-dim:  #a56a32;
  --sand:        #F3EEE4;
  --sand-line:   #E3DBC9;
  --ink:         #1B2430;
  --ink-soft:    #4B5769;
  --white:       #FFFFFF;

  --font-display: 'Barlow Condensed', sans-serif;
  --font-body: 'Source Sans 3', sans-serif;

  --max-w: 1180px;
  --edge: clamp(1.25rem, 4vw, 3.5rem);
}

*,*::before,*::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior:auto; }
  *,*::before,*::after{ animation-duration:0.001ms !important; animation-iteration-count:1 !important; transition-duration:0.001ms !important; }
}

body{
  margin:0;
  font-family:var(--font-body);
  color:var(--ink);
  background:var(--white);
  line-height:1.55;
  -webkit-font-smoothing:antialiased;
}

img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
ul{ list-style:none; margin:0; padding:0; }
h1,h2,h3,h4{ font-family:var(--font-display); font-weight:600; margin:0; line-height:1.05; }
p{ margin:0; }

.wrap{
  max-width:var(--max-w);
  margin:0 auto;
  padding-left:var(--edge);
  padding-right:var(--edge);
}

:focus-visible{
  outline:3px solid var(--bronze);
  outline-offset:3px;
}

/* ---------- Bouton ---------- */
.btn{
  display:inline-flex;
  align-items:center;
  gap:.5rem;
  padding:.85rem 1.6rem;
  border-radius:2px;
  font-family:var(--font-body);
  font-weight:600;
  font-size:.98rem;
  border:1px solid transparent;
  cursor:pointer;
  transition:background-color .18s ease, color .18s ease, border-color .18s ease;
}
.btn-primary{
  background:var(--bronze);
  color:var(--white);
}
.btn-primary:hover{ background:var(--bronze-dim); }
.btn-ghost{
  background:transparent;
  color:var(--white);
  border-color:rgba(255,255,255,.4);
}
.btn-ghost:hover{ border-color:var(--white); background:rgba(255,255,255,.08); }
.btn-dark{
  background:var(--navy-deep);
  color:var(--white);
}
.btn-dark:hover{ background:var(--navy-mid); }

.eyebrow-line{
  display:flex;
  align-items:center;
  gap:.75rem;
  margin-bottom:.9rem;
}
.eyebrow-line span{
  font-family:var(--font-body);
  font-weight:600;
  font-size:.85rem;
  color:var(--bronze);
}
.eyebrow-line::after{
  content:"";
  flex:1;
  height:1px;
  background:var(--sand-line);
}
section .eyebrow-line::after{ background:var(--sand-line); }
.hero .eyebrow-line::after{ background:rgba(255,255,255,.2); }

/* ---------- Header ---------- */
.site-header{
  position:sticky;
  top:0;
  z-index:50;
  background:rgba(11,37,68,.92);
  backdrop-filter:saturate(140%) blur(6px);
  border-bottom:1px solid rgba(255,255,255,.08);
}
.site-header .wrap{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding-top:.7rem;
  padding-bottom:.7rem;
}
.brand{
  display:flex;
  align-items:center;
  gap:.65rem;
  color:var(--white);
}
.brand img{
  height:42px;
  width:auto;
  border-radius:50%;
}
.brand-text{
  font-family:var(--font-display);
  font-weight:600;
  font-size:1.25rem;
  letter-spacing:.02em;
  line-height:1.1;
}
.brand-text small{
  display:block;
  font-family:var(--font-body);
  font-weight:400;
  font-size:.62rem;
  color:var(--bronze);
  letter-spacing:.04em;
  margin-top:2px;
}
.main-nav ul{
  display:flex;
  gap:2rem;
}
.main-nav a{
  color:rgba(255,255,255,.85);
  font-size:.95rem;
  font-weight:500;
  padding:.4rem 0;
  border-bottom:2px solid transparent;
  transition:border-color .18s ease, color .18s ease;
}
.main-nav a:hover{ color:var(--white); border-color:var(--bronze); }

.header-cta{
  display:flex;
  align-items:center;
  gap:1.25rem;
}
.header-phone{
  color:var(--white);
  font-weight:600;
  font-size:.95rem;
  display:flex;
  align-items:center;
  gap:.4rem;
}
.header-phone svg{ width:16px; height:16px; fill:var(--bronze); }

/* ---------- Sélecteur de langue FR / EN ---------- */
.lang-switch{
  display:flex;
  border:1px solid rgba(255,255,255,.3);
  border-radius:2px;
  overflow:hidden;
}
.lang-btn{
  background:none;
  border:none;
  color:rgba(255,255,255,.7);
  font-family:var(--font-body);
  font-weight:600;
  font-size:.78rem;
  letter-spacing:.03em;
  padding:.4rem .65rem;
  cursor:pointer;
  transition:background-color .18s ease, color .18s ease;
}
.lang-btn + .lang-btn{ border-left:1px solid rgba(255,255,255,.3); }
.lang-btn:hover{ color:var(--white); }
/* Le bouton de la langue actuellement affichée est mis en évidence
   (classe ajoutée/retirée automatiquement par js/i18n.js) */
.lang-btn.active{
  background:var(--bronze);
  color:var(--white);
}

.nav-toggle{
  display:none;
  background:none;
  border:1px solid rgba(255,255,255,.3);
  border-radius:2px;
  width:42px;
  height:38px;
  color:var(--white);
  cursor:pointer;
}

/* ---------- Route decor (motif traversant les sections) ---------- */
.route-line{
  position:absolute;
  left:0;
  top:0;
  width:100%;
  height:100%;
  pointer-events:none;
  z-index:0;
}
.route-line path{
  fill:none;
  stroke:var(--bronze);
  stroke-width:3;
  stroke-linecap:round;
  stroke-dasharray:2400;
  stroke-dashoffset:2400;
  opacity:.55;
  animation:draw-route 2.6s ease-out .3s forwards;
}
@keyframes draw-route{
  to{ stroke-dashoffset:0; }
}
@media (prefers-reduced-motion: reduce){
  .route-line path{ stroke-dashoffset:0; animation:none; }
}

/* ---------- Hero ---------- */
.hero{
  position:relative;
  background:
    radial-gradient(ellipse at 15% 20%, rgba(196,128,63,.16), transparent 45%),
    linear-gradient(180deg, var(--navy-deep), var(--navy-mid));
  color:var(--white);
  overflow:hidden;
  padding-top:clamp(4.5rem, 9vw, 7.5rem);
  padding-bottom:clamp(4.5rem, 9vw, 7.5rem);
}
.hero .contour-bg{
  position:absolute;
  inset:0;
  opacity:.16;
  z-index:0;
}
.hero-inner{
  position:relative;
  z-index:2; /* passe au-dessus du panneau photo (z-index 0) */
}
.hero-content{
  max-width:640px; /* empêche le texte de s'étirer sous toute la largeur */
}
.hero-eyebrow{
  color:var(--bronze);
  font-weight:600;
  letter-spacing:.02em;
  font-size:.95rem;
  margin-bottom:1rem;
}
.hero h1{
  font-size:clamp(2.4rem, 4.6vw, 3.8rem);
  color:var(--white);
  margin-bottom:1.2rem;
}
.hero h1 em{
  font-style:normal;
  color:var(--bronze);
}
.hero p.lead{
  font-size:1.12rem;
  color:rgba(255,255,255,.82);
  max-width:46ch;
  margin-bottom:2rem;
}
.hero-actions{
  display:flex;
  gap:1rem;
  flex-wrap:wrap;
  margin-bottom:2.75rem;
}
.hero-stats{
  display:flex;
  gap:2.25rem;
  flex-wrap:wrap;
  border-top:1px solid rgba(255,255,255,.15);
  padding-top:1.75rem;
}
.hero-stats div strong{
  display:block;
  font-family:var(--font-display);
  font-size:1.9rem;
  color:var(--white);
}
.hero-stats div span{
  font-size:.85rem;
  color:rgba(255,255,255,.65);
}

/* ---------- Diaporama photo du hero (fond plein bord, côté droit) ---------- */
/* Le panneau qui contient les 5 photos, empilées les unes sur les autres.
   Il est positionné en absolu : il couvre tout le côté droit du bandeau
   bleu, du haut jusqu'en bas (edge-to-edge), sans cadre ni ombre. */
.hero-slideshow{
  position:absolute;
  top:0;
  right:0;
  bottom:0;
  width:62%;          /* largeur de la zone photo, ajustable */
  overflow:hidden;
  z-index:0;           /* reste derrière le texte (.hero-inner est en z-index:2) */
}

/* Chaque photo occupe tout le panneau, recadrée automatiquement (object-fit: cover) */
.hero-slideshow img{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;   /* remplit le panneau sans déformer la photo */
  opacity:0;
  animation:hero-slideshow-fade 20s infinite; /* 20s = 5 photos x 4s chacune */
}

/* Le dégradé qui fait "fondre" la photo dans le bleu du texte à gauche :
   opaque (couleur du fond bleu) côté gauche, puis devient transparent
   progressivement, pour que la photo apparaisse en douceur sans bord net. */
.hero-slideshow::before{
  content:"";
  position:absolute;
  inset:0;
  z-index:1;
  background:linear-gradient(90deg,
    var(--navy-deep) 0%,
    rgba(11,37,68,.85) 12%,
    rgba(11,37,68,.35) 30%,
    rgba(11,37,68,0) 55%
  );
  pointer-events:none;
}

/* Chaque photo démarre son animation à un moment différent (0s, 4s, 8s...).
   Le principe pour qu'il n'y ait AUCUN vide entre deux photos : la photo
   suivante commence à apparaître pile au moment où la précédente termine
   de disparaître (voir explication sous les images ci-dessous). Si vous
   changez le nombre de photos : le temps total (20s ici) = nombre de
   photos x 4s, et il faut ajouter/retirer une ligne de délai ci-dessous. */
.hero-slideshow img:nth-child(1){ animation-delay:0s;  }
.hero-slideshow img:nth-child(2){ animation-delay:4s;  }
.hero-slideshow img:nth-child(3){ animation-delay:8s;  }
.hero-slideshow img:nth-child(4){ animation-delay:12s; }
.hero-slideshow img:nth-child(5){ animation-delay:16s; }

/* Le rythme d'une photo, en % des 20 secondes du cycle complet :
     0%  → 5%  : apparition en fondu (1 seconde)
     5%  → 20% : reste pleinement visible (3 secondes)
     20% → 25% : disparition en fondu (1 seconde)
   Comme chaque photo suivante démarre 4s (= 20% du cycle) après la
   précédente, sa propre apparition (0%→5% de SON cycle) tombe exactement
   sur la disparition de la photo d'avant (qui va de 20% à 25% du sien).
   Les deux fondus se chevauchent pile à ce moment : quand l'une descend
   de 100% à 0% d'opacité, l'autre monte de 0% à 100% en même temps donc
   il y a TOUJOURS au moins une photo pleinement visible, sans creux. */
@keyframes hero-slideshow-fade{
  0%   { opacity:0; }
  5%   { opacity:1; }
  20%  { opacity:1; }
  25%  { opacity:0; }
  100% { opacity:0; }
}

/* Si la personne a désactivé les animations dans son ordinateur,
   on affiche juste la première photo, fixe, sans aucun mouvement */
@media (prefers-reduced-motion: reduce){
  .hero-slideshow img{ animation:none; opacity:0; }
  .hero-slideshow img:nth-child(1){ opacity:1; }
}

/* ---------- Section commun ---------- */
section{ position:relative; }
.section-pad{ padding-top:clamp(4rem,7vw,6rem); padding-bottom:clamp(4rem,7vw,6rem); }
.section-head{
  max-width:56ch;
  margin-bottom:2.75rem;
}
.section-head h2{
  font-size:clamp(1.9rem, 3.2vw, 2.6rem);
  color:var(--navy-deep);
}
.section-head p{
  margin-top:.9rem;
  color:var(--ink-soft);
  font-size:1.05rem;
}
.light-on-dark .section-head h2{ color:var(--white); }
.light-on-dark .section-head p{ color:rgba(255,255,255,.72); }

/* ---------- Services ---------- */
.services{ background:var(--sand); }
.service-grid{
  display:grid;
  grid-template-columns:repeat(2, 1fr);
  gap:1px;
  background:var(--sand-line);
  border:1px solid var(--sand-line);
}
.service-card{
  background:var(--white);
  padding:2.25rem 2rem;
  display:flex;
  flex-direction:column;
  gap:.9rem;
}
.service-card .icon{
  width:44px;
  height:44px;
  color:var(--bronze);
}
.service-card h3{
  font-size:1.3rem;
  color:var(--navy-deep);
}
.service-card p{
  color:var(--ink-soft);
  font-size:.98rem;
}

/* ---------- A propos ---------- */
.about{ background:var(--white); }
.about-inner{
  display:grid;
  grid-template-columns:.95fr 1.05fr;
  gap:3.5rem;
  align-items:start;
}
.about-figure{
  background:var(--navy-deep);
  border-radius:2px;
  color:var(--white);
  position:relative;
  overflow:hidden;
}
/* La photo équipe / bureau, en haut de l'encadré, pleine largeur */
.about-figure .about-photo{
  width:100%;
  aspect-ratio:4 / 3;
  object-fit:cover;
  display:block;
}
.about-figure .acronym{
  display:flex;
  flex-direction:column;
  gap:.6rem;
  position:relative;
  z-index:1;
  padding:1.75rem 2rem 2rem;
}
.about-figure .acronym div{
  display:flex;
  gap:.9rem;
  align-items:baseline;
  border-bottom:1px solid rgba(255,255,255,.12);
  padding-bottom:.6rem;
}
.about-figure .acronym strong{
  font-family:var(--font-display);
  font-size:1.6rem;
  color:var(--bronze);
  width:1.4ch;
}
.about-figure .acronym span{
  color:rgba(255,255,255,.85);
  font-size:1.02rem;
}
.about-text p{
  color:var(--ink-soft);
  margin-bottom:1.1rem;
  font-size:1.04rem;
}
.about-text p:last-child{ margin-bottom:0; }
.about-text .legal{
  margin-top:1.75rem;
  padding-top:1.5rem;
  border-top:1px solid var(--sand-line);
  font-size:.92rem;
  color:var(--ink-soft);
}
.about-text .legal strong{ color:var(--navy-deep); }

/* ---------- Partenaires ---------- */
.partners{
  background:var(--white);
  padding:2.75rem 0;
  border-top:1px solid var(--sand-line);
  border-bottom:1px solid var(--sand-line);
}
.partners-label{
  text-align:center;
  font-size:.85rem;
  font-weight:600;
  letter-spacing:.04em;
  color:var(--ink-soft);
  margin-bottom:1.75rem;
}
.partners-row{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:clamp(2rem, 6vw, 4.5rem);
  flex-wrap:wrap;
}
.partners-row img{
  height:44px;
  width:auto;
  max-width:140px;
  object-fit:contain;
  filter:grayscale(100%);
  opacity:.55;
  transition:opacity .2s ease, filter .2s ease;
}
.partners-row img:hover{
  filter:grayscale(0%);
  opacity:1;
}

/* ---------- Pourquoi nous ---------- */
.why{
  background:linear-gradient(180deg, var(--navy-mid), var(--navy-deep));
  color:var(--white);
}
.why-grid{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:2.5rem;
}
.why-item{
  border-left:2px solid var(--bronze);
  padding-left:1.25rem;
}
.why-item h3{
  font-size:1.25rem;
  margin-bottom:.6rem;
  color:var(--white);
}
.why-item p{
  color:rgba(255,255,255,.72);
  font-size:.98rem;
}

/* ---------- Contact ---------- */
/* ---------- FAQ ---------- */
.faq{ background:var(--white); }
.faq-list{
  max-width:820px;
  border-top:1px solid var(--sand-line);
}
.faq-item{
  border-bottom:1px solid var(--sand-line);
  padding:1.4rem 0;
}
/* Le triangle par défaut du navigateur est retiré, on le redessine nous-même */
.faq-item summary{
  list-style:none;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:1rem;
  font-family:var(--font-display);
  font-weight:600;
  font-size:1.15rem;
  color:var(--navy-deep);
}
.faq-item summary::-webkit-details-marker{ display:none; }
/* Le "+" qui devient "-" (rotation 45°) quand la question est ouverte */
.faq-item summary::after{
  content:"+";
  flex-shrink:0;
  width:28px;
  height:28px;
  border-radius:50%;
  border:1px solid var(--sand-line);
  color:var(--bronze);
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:1.2rem;
  transition:transform .2s ease;
}
.faq-item[open] summary::after{ transform:rotate(45deg); }
.faq-item p{
  color:var(--ink-soft);
  margin-top:.9rem;
  padding-right:2.5rem;
}

/* ---------- Contact ---------- */
.contact{ background:var(--sand); }
.contact-inner{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:3rem;
  align-items:stretch;
}
.contact-card{
  background:var(--white);
  border:1px solid var(--sand-line);
  padding:2.5rem;
}
.contact-list{
  display:flex;
  flex-direction:column;
  gap:1.4rem;
  margin-bottom:2rem;
}
.contact-list li{
  display:flex;
  gap:1rem;
  align-items:flex-start;
}
.contact-list .dot{
  width:10px; height:10px;
  border-radius:50%;
  background:var(--bronze);
  margin-top:.4rem;
  flex-shrink:0;
}
.contact-list strong{
  display:block;
  color:var(--navy-deep);
  font-size:.85rem;
  text-transform:none;
  margin-bottom:.15rem;
}
.contact-list span, .contact-list a{
  color:var(--ink-soft);
  font-size:1rem;
}

/* ---------- Formulaire de contact ---------- */
.contact-form{
  border-top:1px solid var(--sand-line);
  padding-top:1.75rem;
  display:flex;
  flex-direction:column;
  gap:1.1rem;
}
.form-row{
  display:flex;
  flex-direction:column;
  gap:.4rem;
}
.form-row label{
  font-size:.85rem;
  font-weight:600;
  color:var(--navy-deep);
}
.form-row input,
.form-row textarea{
  font-family:var(--font-body);
  font-size:1rem;
  padding:.7rem .9rem;
  border:1px solid var(--sand-line);
  border-radius:2px;
  background:var(--white);
  color:var(--ink);
  resize:vertical;
}
.form-row input:focus,
.form-row textarea:focus{
  outline:none;
  border-color:var(--bronze);
}
.contact-form button{ align-self:flex-start; }

/* Message de confirmation ("reçu") après l'envoi. Cache par défaut :
   js/main.js lui ajoute la classe .is-visible (succès) ou .is-error */
.form-feedback{
  display:none;
  font-size:.92rem;
  padding:.75rem 1rem;
  border-radius:2px;
}
.form-feedback.is-visible{ display:block; }
.form-feedback.is-success{
  background:#e7f5ec;
  color:#1e6b3c;
  border:1px solid #bfe3cc;
}
.form-feedback.is-error{
  background:#fbeaea;
  color:#9c2b2b;
  border:1px solid #f0c4c4;
}
.map-frame{
  border:1px solid var(--sand-line);
  overflow:hidden;
  min-height:320px;
}
.map-frame iframe{ width:100%; height:100%; min-height:320px; border:0; display:block; }

/* ---------- Footer ---------- */
.site-footer{
  background:var(--navy-deep);
  color:rgba(255,255,255,.7);
  padding:2.75rem 0;
}
.footer-inner{
  display:flex;
  justify-content:space-between;
  align-items:center;
  flex-wrap:wrap;
  gap:1.25rem;
}
.footer-brand{
  display:flex;
  align-items:center;
  gap:.6rem;
  color:var(--white);
  font-family:var(--font-display);
  font-size:1.05rem;
}
.footer-brand img{ height:30px; border-radius:50%; }
.footer-inner p{ font-size:.85rem; }
.footer-links{ display:flex; gap:1.5rem; }
.footer-links a{ font-size:.85rem; color:rgba(255,255,255,.7); }
.footer-links a:hover{ color:var(--bronze); }

/* ---------- Responsive ---------- */
@media (max-width: 960px){
  .hero-slideshow{
    position:relative;      /* redevient un bloc normal dans la page */
    top:auto; right:auto; bottom:auto;
    width:100%;
    height:240px;
    margin-bottom:2rem;
  }
  /* Sur mobile, le dégradé fond par en bas (vers le texte qui suit)
     plutôt que par la gauche */
  .hero-slideshow::before{
    background:linear-gradient(180deg, transparent 45%, var(--navy-deep) 100%);
  }
  .about-inner{ grid-template-columns:1fr; }
  .contact-inner{ grid-template-columns:1fr; }
  .why-grid{ grid-template-columns:1fr; gap:2rem; }
}
@media (max-width: 760px){
  .main-nav, .header-phone{ display:none; }
  .nav-toggle{ display:block; }
  .service-grid{ grid-template-columns:1fr; }
  .hero-stats{ gap:1.5rem; }
}
.main-nav.open{
  display:flex;
  position:absolute;
  top:100%;
  left:0;
  right:0;
  background:var(--navy-deep);
  flex-direction:column;
  padding:1rem var(--edge) 1.5rem;
  border-top:1px solid rgba(255,255,255,.1);
}
.main-nav.open ul{ flex-direction:column; gap:0; }
.main-nav.open a{ display:block; padding:.85rem 0; border-bottom:1px solid rgba(255,255,255,.08); }

/* ---------- Bouton WhatsApp flottant ---------- */
.whatsapp-float{
  position:fixed;
  right:1.5rem;
  bottom:1.5rem;
  z-index:60;
  width:56px;
  height:56px;
  border-radius:50%;
  background:#25D366; /* couleur officielle WhatsApp */
  color:var(--white);
  display:flex;
  align-items:center;
  justify-content:center;
  box-shadow:0 10px 24px rgba(0,0,0,.28);
  transition:transform .18s ease;
}
.whatsapp-float:hover{ transform:scale(1.08); }
.whatsapp-float svg{ width:28px; height:28px; }
@media (max-width: 760px){
  .whatsapp-float{ right:1rem; bottom:1rem; width:50px; height:50px; }
  .whatsapp-float svg{ width:24px; height:24px; }
}

/* ---------- Animations douces au défilement ---------- */
/* Par défaut : légèrement invisible et décalé vers le bas.
   Le JavaScript (js/main.js) ajoute la classe .in-view au bon moment,
   quand le bloc entre dans la partie visible de l'écran. */
.reveal{
  opacity:0;
  transform:translateY(22px);
  transition:opacity .7s ease, transform .7s ease;
}
.reveal.in-view{
  opacity:1;
  transform:translateY(0);
}
/* Si la personne a désactivé les animations dans son ordinateur,
   on affiche tout directement, sans aucun mouvement */
@media (prefers-reduced-motion: reduce){
  .reveal{ opacity:1; transform:none; transition:none; }
}