:root{
  --gold: #ceab5d;
  --yellow: #ecc747;
  --brown: #92542a;
  --olive: #909b25;
  --olive-dark: #45521f;
  --blue-soft: #7ca7b9;
  --grey-light: #c8cdd0;
  --offwhite: #f6f4ef;
  --red-deep: #78151e;
  --black: #000000;
  --text: #222222;
  --shadow: 0 16px 40px rgba(0,0,0,0.12);
  --radius: 20px;
  --max: 1240px;
}

*{
  box-sizing: border-box;
}

html{
  scroll-behavior: smooth;
}

body{
  margin: 0;
  font-family: "Roboto", sans-serif;
  color: var(--text);
  background: linear-gradient(to bottom, #f3f0e9, #ffffff);
  line-height: 1.6;
}

a{
  text-decoration: none;
  color: inherit;
}

img{
  max-width: 100%;
  display: block;
}

.container{
  width: min(100% - 60px, var(--max));
  margin: 0 auto;
}


.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease;
  box-shadow: var(--shadow);
}

.btn:hover{
  transform: translateY(-2px);
}

.btn-primary{
  background: var(--gold);
  color: var(--black);
}

.btn-secondary{
  background: rgba(255,255,255,0.12);
  color: white;
  border: 1px solid rgba(255,255,255,0.18);
}



/* Quick facts */
.facts{
  position: relative;
  margin-top: -54px;
  z-index: 2;
}

.facts-grid{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.fact{
  background: white;
  border-radius: 20px;
  padding: 24px;
  box-shadow: var(--shadow);
  border-top: 6px solid var(--gold);
}

.fact:nth-child(2){ border-top-color: var(--olive); }
.fact:nth-child(3){ border-top-color: var(--brown); }
.fact:nth-child(4){ border-top-color: var(--blue-soft); }

.fact-number{
  font-size: 2rem;
  font-weight: 900;
  color: var(--olive-dark);
  line-height: 1;
  margin-bottom: 8px;
}

.fact-label{
  font-weight: 700;
  margin-bottom: 6px;
}

.fact small{
  color: #666;
}

/* =====================================================
   SECTIONS FORMATIONS
   Espacement général des blocs
===================================================== */

section:not(.hero){
  padding: 78px 0;
}

.section-head{
  margin-bottom: 28px;
}

.section-kicker{
  color: var(--olive);
  font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  font-size: 0.82rem;
  margin-bottom: 10px;
}

/* Hero */
.hero{
  position: relative;
  min-height: calc(100vh - 90px);
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 0;
  background:
    linear-gradient(90deg, rgba(0,0,0,0.62) 0%, rgba(0,0,0,0.46) 36%, rgba(0,0,0,0.18) 100%),
    url("https://images.unsplash.com/photo-1500382017468-9049fed747ef?auto=format&fit=crop&w=1600&q=80") center/cover no-repeat;
  color: white;
}

.hero::after{
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 120px;
  background: linear-gradient(to top, rgba(246,244,239,1), rgba(246,244,239,0));
}

.hero-inner{
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 90px 0 118px;
}

.hero-grid{
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 36px;
  align-items: end;
}

.eyebrow{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.4px;
  margin-bottom: 18px;
}

.hero h1{
  margin: 0 0 12px;
  font-family: "Roboto Slab", serif;
  font-size: clamp(2.4rem, 5vw, 4.8rem);
  line-height: 0.98;
}

.hero-accent{
  display: block;
  font-family: "Knewave", cursive;
  color: var(--yellow);
  margin-top: 14px;
  font-size: clamp(1.6rem, 4vw, 3rem);
  line-height: 1.05;
}

.hero p{
  max-width: 720px;
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  color: rgba(255,255,255,0.92);
  margin: 20px 0 28px;
}

.hero-actions{
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}

.hero-card{
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 24px;
  padding: 22px;
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow);
}

.hero-card h3{
  margin: 0 0 10px;
  font-family: "Roboto Slab", serif;
  font-size: 1.15rem;
}

.mini-list{
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.mini-item{
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.14);
  font-size: 0.98rem;
}

.mini-item:last-child{
  border-bottom: 0;
}

.mini-item strong{
  color: white;
}

.section-head{
  margin-bottom: 28px;
}

.section-kicker{
  color: var(--olive);
  font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  font-size: 0.82rem;
  margin-bottom: 10px;
}

.section-title{
  margin: 0;
  font-family: "Roboto Slab", serif;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  line-height: 1.1;
}

.section-subtitle{
  max-width: 100%;
  color: #5f5f5f;
  margin-top: 12px;
  font-size: 1.02rem;
  line-height: 1.7;
}

.section-head .section-subtitle{
  max-width: 1100px;
  color: #5f5f5f;
  margin-top: 12px;
  font-size: 1.02rem;
  line-height: 1.7;
}

/* Intro split */
.split{
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 28px;
  align-items: center;
}

/* Split formation : 2 colonnes desktop */
@media (min-width: 900px){
  .split{
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  }

  .split > .panel{
    min-width: 0;
  }
}

.panel{
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.panel-content{
  padding: 30px;
}

.badge{
  display: inline-block;
  background: #eef1db;
  color: var(--olive-dark);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.82rem;
  font-weight: 800;
  margin-bottom: 14px;
}

.lead{
  font-size: 1.08rem;
  color: #444;
}

.check-list{
  display: grid;
  gap: 12px;
  margin-top: 22px;
}

.check-item{
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.check-dot{
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--gold);
  margin-top: 8px;
  flex-shrink: 0;
}

/* Cards */
.cards-3{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

/* Cards 2 colonnes */
.cards-2{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.cards-2 .info-card{
  min-width: 0;
}

.info-card{
  background: white;
  padding: 28px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.info-card::before{
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 7px;
  background: var(--gold);
}

.info-card:nth-child(2)::before{ background: var(--olive); }
.info-card:nth-child(3)::before{ background: var(--brown); }

.info-card h3{
  margin: 0 0 14px;
  font-family: "Roboto Slab", serif;
  font-size: 1.3rem;
}

.info-card ul{
  margin: 0;
  padding-left: 18px;
}

/* =====================================================
   BLOCS MISE EN AVANT FORMATIONS
   Highlight band + micro cards
===================================================== */

.highlight-band{
  background:
    linear-gradient(135deg, rgba(246,244,239,0.98), rgba(255,255,255,0.96));
  border-radius: 28px;
  padding: 38px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(0,0,0,0.05);
  position: relative;
  overflow: hidden;
}

.highlight-band::before{
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 8px;
  background: linear-gradient(to bottom, var(--gold), var(--olive));
}

.highlight-band .section-kicker,
.highlight-band .section-title{
  position: relative;
  z-index: 1;
}

.micro-grid{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  margin-top: 26px;
  position: relative;
  z-index: 1;
}

.micro-card{
  background: white;
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 12px 28px rgba(0,0,0,0.08);
  border: 1px solid rgba(0,0,0,0.05);
}

.micro-card h4{
  margin: 0 0 12px;
  font-family: "Roboto Slab", serif;
  font-size: 1.15rem;
  color: var(--olive-dark);
}

.micro-card ul{
  margin: 0;
  padding-left: 18px;
}

.micro-card li{
  margin-bottom: 8px;
}

/* Timeline */
.timeline{
  position: relative;
  display: grid;
  gap: 22px;
  margin-top: 22px;
}

.timeline::before{
  content: "";
  position: absolute;
  left: 22px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, var(--gold), var(--olive), var(--brown));
  border-radius: 999px;
}

.timeline-item ul{
  margin: 0;
  padding-left: 18px;
}

.timeline-item{
  position: relative;
  background: white;
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 22px 22px 22px 70px;
  margin-bottom: 6px;
}

.timeline-item::before{
  content: "";
  position: absolute;
  left: 14px;
  top: 24px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--olive-dark);
  border: 4px solid white;
  box-shadow: 0 0 0 3px rgba(69,82,31,0.18);
}

.timeline-item h3{
  margin: 0 0 8px;
  font-family: "Roboto Slab", serif;
}

/* Stats banner */
.stats-banner{
  background:
    linear-gradient(135deg, rgba(69,82,31,0.95), rgba(144,155,37,0.88)),
    url("https://images.unsplash.com/photo-1500530855697-b586d89ba3ee?auto=format&fit=crop&w=1400&q=80") center/cover;
  color: white;
  border-radius: 28px;
  box-shadow: var(--shadow);
  padding: 34px;
  overflow: hidden;
}

.stats-grid{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 20px;
}

.stat-box{
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 18px;
  padding: 20px;
}

.stat-box strong{
  display: block;
  font-size: 2rem;
  line-height: 1;
  margin-bottom: 8px;
}

/* CTA */
.cta{
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  background:
    linear-gradient(rgba(120,21,30,0.78), rgba(120,21,30,0.7)),
    url("https://images.unsplash.com/photo-1494526585095-c41746248156?auto=format&fit=crop&w=1400&q=80") center/cover;
  color: white;
  box-shadow: var(--shadow);
}

.cta-inner{
  padding: 56px 32px;
  text-align: center;
}

.cta h2{
  margin: 0 0 12px;
  font-family: "Roboto Slab", serif;
  font-size: clamp(2rem, 3vw, 3rem);
}

.cta p{
  max-width: 760px;
  margin: 0 auto 26px;
  color: rgba(255,255,255,0.92);
}

/* Reveal */
.reveal{
  opacity: 0;
  transform: translateY(28px);
  transition: 0.7s ease;
}

.reveal.visible{
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 1080px){
  .hero-grid,
  .split,
  .cards-3,
  .facts-grid,
  .stats-grid{
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px){

  .hero{
    min-height: auto;
    padding: 0;
    align-items: flex-start;
  }

  .hero-grid,
  .split,
  .cards-2,
  .cards-3,
  .facts-grid,
  .stats-grid{
    grid-template-columns: 1fr;
  }

  .hero-grid{
    gap: 20px;
  }

  .hero-inner{
    padding: 45px 0 80px;
  }

  .facts{
    margin-top: -30px;
  }

  .timeline::before{
    left: 18px;
  }

  .timeline-item{
    padding-left: 56px;
  }

  .timeline-item::before{
    left: 10px;
  }

  .highlight-band{
    padding: 28px 22px;
    border-radius: 22px;
  }

  .micro-grid{
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .micro-card{
    padding: 20px;
  }

}

/* =====================================================
   CORRECTION HERO FORMATIONS
   Marge intérieure + eyebrow mobile
===================================================== */

/* Marge latérale uniquement dans le hero */
.hero .container{
  width: min(100% - 120px, var(--max));
  margin: 0 auto;
}

/* Eyebrow mieux séparé du titre */
.hero .eyebrow{
  margin-bottom: 34px;
  white-space: normal;
}

/* Mobile */
@media (max-width: 768px){

  .hero .container{
    width: min(100% - 40px, var(--max));
  }

  .hero-inner{
    padding-top: 120px !important;
  }

  .hero .eyebrow{
    font-size: 12px;
    line-height: 1.25;
    padding: 8px 13px;
    margin-bottom: 30px;
    white-space: normal;
  }
}

/* =====================================================
   CTA FORMATIONS - Centrage des boutons
===================================================== */

.cta .hero-actions,
.cta-inner .hero-actions{
  justify-content: center;
  align-items: center;
}

@media (max-width: 768px){
  .cta .hero-actions,
  .cta-inner .hero-actions{
    flex-direction: column;
    align-items: stretch;
  }

  .cta .hero-actions .btn,
  .cta-inner .hero-actions .btn{
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
  }
}