/* ================================================================
   AVOPPS — Design System v3
   Rebrand : carré, éditorial, corporate
   ================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Playfair+Display:wght@700;800&display=swap');

/* ----------------------------------------------------------------
   1. TOKENS
   ---------------------------------------------------------------- */
:root {
  /* Couleurs */
  --ink:         #0e0e0e;
  --green:       #1b5e2b;
  --green-dark:  #0e3518;
  --green-mid:   #2d7a44;
  --gold:        #b8892a;
  --gold-light:  #d4a94a;
  --off-white:   #f2f1ed;
  --gray-1:      #e4e3de;
  --gray-2:      #a8a89f;
  --gray-3:      #5e5e58;
  --white:       #ffffff;

  /* Typographie */
  --font-sans:   'Inter', 'Segoe UI', sans-serif;
  --font-serif:  'Playfair Display', Georgia, serif;

  /* Espacements */
  --container:   1280px;
  --pad-x:       clamp(1.5rem, 6vw, 5rem);
  --pad-section: clamp(4rem, 8vw, 7rem);

  /* Transitions */
  --ease:        cubic-bezier(.4, 0, .2, 1);
  --t-fast:      0.18s;
  --t-base:      0.28s;

  /* Bordures */
  --radius: 0;   /* Système carré global */
  --border-ui:   1px solid var(--gray-1);

  /* Legacy — pour fichiers secondaires */
  --primary-color:  #1b5e2b;
  --secondary-color:#ffffff;
  --accent-color:   #2d7a44;
  --text-color:     #0e0e0e;
  --light-gray:     #f2f1ed;
  --dark-gray:      #5e5e58;
  --primary-light:  #2d7a44;
}

/* ----------------------------------------------------------------
   2. RESET
   ---------------------------------------------------------------- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  scroll-padding-top: 68px;
}

body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--t-fast) var(--ease);
}

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

ul { list-style: none; }

/* ----------------------------------------------------------------
   3. TYPOGRAPHIE — utilitaires
   ---------------------------------------------------------------- */
.tag {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: .75rem;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 800;
  line-height: 1.12;
  color: var(--ink);
  margin-bottom: 1rem;
}

.section-title.light { color: var(--white); }

.lead {
  font-size: 1.05rem;
  color: var(--gray-3);
  max-width: 580px;
  line-height: 1.8;
}

.lead.light { color: rgba(255,255,255,.72); }

/* Séparateur horizontal éditorial */
.h-rule {
  display: block;
  width: 48px;
  height: 3px;
  background: var(--gold);
  margin: 1.2rem 0 2rem;
}

/* ----------------------------------------------------------------
   4. CONTAINER
   ---------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

/* ----------------------------------------------------------------
   5. HEADER
   ---------------------------------------------------------------- */
.header {
  position: fixed;
  top: 0; left: 0; width: 100%;
  z-index: 1000;
  background: var(--white);
  border-bottom: var(--border-ui);
  transition: border-color var(--t-base) var(--ease),
              box-shadow var(--t-base) var(--ease);
}

.header.scrolled {
  border-bottom-color: var(--gray-2);
  box-shadow: 0 2px 20px rgba(0,0,0,.07);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  padding: 0 var(--pad-x);
  max-width: var(--container);
  margin: 0 auto;
}

/* Logo */
.logo-container {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo {
  height: 42px;
  width: 42px;
  object-fit: contain;
  border-radius: 0;
}

.org-name h1 {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--green);
  line-height: 1;
  letter-spacing: -.5px;
}

.org-name p {
  font-size: .68rem;
  color: var(--gray-2);
  font-weight: 400;
  letter-spacing: .4px;
  margin-top: 2px;
}

/* Nav */
.navbar { display: flex; align-items: center; }

.nav-links {
  display: flex;
  gap: 0;
}

.nav-links a {
  display: block;
  font-size: .88rem;
  font-weight: 500;
  color: var(--gray-3);
  padding: .5rem 1.1rem;
  border-bottom: 2px solid transparent;
  transition: color var(--t-fast) var(--ease),
              border-color var(--t-fast) var(--ease);
}

.nav-links a:hover {
  color: var(--green);
  border-bottom-color: var(--green);
}

.nav-links a.active {
  color: var(--green);
  font-weight: 600;
  border-bottom-color: var(--gold);
}

/* Burger */
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: .5rem;
}

.burger div {
  width: 24px;
  height: 2px;
  background: var(--ink);
  transition: var(--t-base) var(--ease);
}

.burger.toggle .line1 { transform: rotate(-45deg) translate(-4px, 5px); }
.burger.toggle .line2 { opacity: 0; }
.burger.toggle .line3 { transform: rotate(45deg) translate(-4px, -5px); }

/* ----------------------------------------------------------------
   6. HERO — page d'accueil
   ---------------------------------------------------------------- */
.hero {
  margin-top: 68px;
  min-height: calc(100vh - 68px);
  background: var(--green-dark);
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
  position: relative;
  background-image:
    radial-gradient(circle, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 28px 28px;
}

.hero-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 5rem var(--pad-x);
  border-left: 3px solid var(--gold);
}

.hero-tag {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 1.5rem;
}

.hero h2 {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 3vw, 3.6rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 1.5rem;
}

.hero h2 em {
  font-style: normal;
  color: var(--gold-light);
}

.hero-desc {
  font-size: .95rem;
  color: rgba(255,255,255,.6);
  line-height: 1.85;
  max-width: 400px;
  margin-bottom: 2.5rem;
  font-weight: 300;
}

.hero-actions {
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
}

.hero-visual {
  position: relative;
  overflow: hidden;
}

.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.hero-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(14, 53, 24, .55) 0%,
    rgba(14, 53, 24, .2) 45%,
    rgba(14, 53, 24, .05) 100%
  );
}

/* ----------------------------------------------------------------
   PAGE HERO — pages internes (services, contact…)
   ---------------------------------------------------------------- */
.page-hero {
  margin-top: 68px;
  background: var(--green-dark);
  padding: 4rem var(--pad-x) 3.5rem;
  border-bottom: 3px solid var(--gold);
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../pictures/Programme_éducation1.jpg') center/cover no-repeat;
  opacity: .12;
}

.page-hero-inner {
  position: relative;
  z-index: 1;
  max-width: var(--container);
  margin: 0 auto;
}

.page-hero .tag    { color: var(--gold-light); }
.page-hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: .5rem;
}

.page-hero p {
  font-size: .95rem;
  color: rgba(255,255,255,.65);
  max-width: 520px;
  line-height: 1.7;
  margin-top: .5rem;
}

/* ----------------------------------------------------------------
   7. BOUTONS
   ---------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: var(--green);
  color: var(--white);
  font-size: .88rem;
  font-weight: 600;
  letter-spacing: .3px;
  padding: .8rem 1.8rem;
  border: 2px solid var(--green);
  cursor: pointer;
  transition: background var(--t-fast) var(--ease),
              border-color var(--t-fast) var(--ease),
              color var(--t-fast) var(--ease),
              transform var(--t-fast) var(--ease);
}

.btn:hover {
  background: var(--green-dark);
  border-color: var(--green-dark);
  color: var(--white);
  transform: translateY(-1px);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: transparent;
  color: var(--white);
  font-size: .88rem;
  font-weight: 600;
  padding: .8rem 1.8rem;
  border: 2px solid rgba(255,255,255,.5);
  transition: background var(--t-fast) var(--ease),
              border-color var(--t-fast) var(--ease);
}

.btn-ghost:hover {
  background: rgba(255,255,255,.1);
  border-color: var(--white);
  color: var(--white);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: transparent;
  color: var(--green);
  font-size: .88rem;
  font-weight: 600;
  padding: .75rem 1.6rem;
  border: 2px solid var(--green);
  transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}

.btn-outline:hover {
  background: var(--green);
  color: var(--white);
}

.btn-sm {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: var(--green);
  color: var(--white);
  font-size: .8rem;
  font-weight: 600;
  padding: .55rem 1.1rem;
  border: 2px solid var(--green);
  margin-top: 1.2rem;
  transition: background var(--t-fast) var(--ease);
}

.btn-sm:hover {
  background: var(--green-dark);
  border-color: var(--green-dark);
  color: var(--white);
}

/* Alias legacy */
.btn-small { display: inline-flex; align-items: center; gap: .4rem; background: var(--green); color: var(--white); font-size: .8rem; font-weight: 600; padding: .55rem 1.1rem; border: 2px solid var(--green); margin-top: 1.2rem; transition: background var(--t-fast) var(--ease); }
.btn-small:hover { background: var(--green-dark); border-color: var(--green-dark); color: var(--white); }

/* ----------------------------------------------------------------
   8. BANDE STATS
   ---------------------------------------------------------------- */
.stats-band {
  background: var(--green);
  padding: 3.5rem var(--pad-x);
}

.stats-band-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.stat-item {
  padding: 1.5rem 2rem;
  border-right: 1px solid rgba(255,255,255,.15);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}

.stat-item:last-child { border-right: none; }
.stat-item.visible { opacity: 1; transform: translateY(0); }

.stat-number {
  font-family: var(--font-serif);
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--gold-light);
  line-height: 1;
  margin-bottom: .4rem;
}

.stat-suffix {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  color: var(--gold-light);
}

.stat-label {
  font-size: .82rem;
  color: rgba(255,255,255,.72);
  line-height: 1.5;
  font-weight: 400;
}

/* ----------------------------------------------------------------
   9. SECTION BASE
   ---------------------------------------------------------------- */
section {
  padding: var(--pad-section) var(--pad-x);
}

/* Header éditorial d'une section */
.section-header {
  margin-bottom: 3.5rem;
}

.section-header.center {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.section-header.center .h-rule {
  margin-left: auto;
  margin-right: auto;
}

.section-header.center .lead {
  margin: 0 auto;
}

/* ----------------------------------------------------------------
   10. MISSION
   ---------------------------------------------------------------- */
.mission {
  background: var(--off-white);
  padding-top: calc(var(--pad-section) + 2rem); /* compense le hero cut */
}

.mission-grid {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: start;
}

.mission-body p {
  font-size: 1rem;
  color: var(--gray-3);
  line-height: 1.85;
  margin-bottom: 1.3rem;
}

/* Points clés sous le texte */
.key-facts {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: var(--border-ui);
}

.key-fact {
  display: flex;
  gap: 1.2rem;
  padding: 1.1rem 0;
  border-bottom: var(--border-ui);
  transition: background var(--t-fast) var(--ease);
}

.key-fact:hover { background: rgba(27,94,43,.04); }

.key-fact-icon {
  width: 36px;
  height: 36px;
  background: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: .1rem;
}

.key-fact-icon i {
  color: var(--white);
  font-size: .9rem;
}

.key-fact h4 {
  font-size: .88rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: .2rem;
}

.key-fact p {
  font-size: .85rem;
  color: var(--gray-3);
  line-height: 1.55;
  margin: 0 !important;
}

/* Image côté droit */
.mission-visual { position: relative; }

.mission-img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  display: block;
}

/* Badge flottant */
.mission-stamp {
  position: absolute;
  bottom: 0;
  left: 0;
  background: var(--green);
  color: var(--white);
  padding: 1.4rem 1.8rem;
  min-width: 160px;
}

.mission-stamp strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--gold-light);
  line-height: 1;
}

.mission-stamp span {
  font-size: .78rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,.75);
}

/* ----------------------------------------------------------------
   11. SERVICES
   ---------------------------------------------------------------- */
.services-preview {
  background: var(--white);
}

.services-preview .section-header {
  max-width: var(--container);
  margin-left: auto;
  margin-right: auto;
}

.services-grid {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: var(--border-ui);
  border-left: var(--border-ui);
}

.service-card {
  padding: 2.4rem 2rem;
  border-right: var(--border-ui);
  border-bottom: var(--border-ui);
  transition: background var(--t-base) var(--ease);
  position: relative;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 0; height: 3px;
  background: var(--gold);
  transition: width .35s var(--ease);
}

.service-card:hover { background: var(--off-white); }
.service-card:hover::before { width: 100%; }

.service-num {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gray-2);
  margin-bottom: 1.2rem;
}

.service-icon-box {
  width: 48px;
  height: 48px;
  background: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.4rem;
  transition: background var(--t-fast) var(--ease);
}

.service-card:hover .service-icon-box { background: var(--gold); }

.service-icon-box i {
  color: var(--white);
  font-size: 1.2rem;
}

.service-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.3;
  margin-bottom: .8rem;
}

.service-card p {
  font-size: .9rem;
  color: var(--gray-3);
  line-height: 1.75;
}

/* ----------------------------------------------------------------
   12. RÉALISATIONS / NEWS
   ---------------------------------------------------------------- */
.news {
  background: var(--off-white);
  text-align: center;
}

.news .section-header { margin-bottom: 3rem; }

.news-grid {
  max-width: var(--container);
  margin: 0 auto 3rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: var(--border-ui);
  border-left: var(--border-ui);
  text-align: left;
}

.news-card {
  background: var(--white);
  border-right: var(--border-ui);
  border-bottom: var(--border-ui);
  overflow: hidden;
  transition: background var(--t-base) var(--ease);
}

.news-card:hover { background: var(--off-white); }

.news-image {
  height: 200px;
  overflow: hidden;
}

.news-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .6s var(--ease);
  filter: grayscale(20%);
}

.news-card:hover .news-image img {
  transform: scale(1.04);
  filter: grayscale(0%);
}

.news-content { padding: 1.6rem; }

.news-date {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: .5rem;
}

.news-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.4;
  margin-bottom: .7rem;
}

.news-excerpt {
  font-size: .88rem;
  color: var(--gray-3);
  line-height: 1.7;
}

/* ----------------------------------------------------------------
   13. BANDE CTA
   ---------------------------------------------------------------- */
.cta-band {
  background: var(--green-dark);
  border-top: 4px solid var(--gold);
  padding: 5rem var(--pad-x);
}

.cta-band-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4rem;
  align-items: center;
}

.cta-band h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 2.5vw, 2.4rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: .8rem;
}

.cta-band p {
  font-size: .95rem;
  color: rgba(255,255,255,.65);
  max-width: 500px;
  line-height: 1.85;
}

.cta-actions {
  display: flex;
  flex-direction: column;
  gap: .75rem;
  flex-shrink: 0;
}

/* ----------------------------------------------------------------
   14. FOOTER
   ---------------------------------------------------------------- */
.footer {
  background: var(--ink);
  color: var(--white);
  border-top: 3px solid var(--gold);
  margin-top: auto;
}

.footer-main {
  max-width: var(--container);
  margin: 0 auto;
  padding: 4rem var(--pad-x) 3rem;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 4rem;
}

.footer-brand { padding-bottom: 1rem; }

.footer-brand p {
  font-size: .88rem;
  color: rgba(255,255,255,.55);
  line-height: 1.8;
  margin: .9rem 0 1.5rem;
  max-width: 340px;
}

.footer-logo-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: .25rem;
}

.footer-logo-row img {
  height: 38px;
  width: 38px;
  object-fit: contain;
}

.footer-logo-row strong {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--white);
}

.footer-social {
  display: flex;
  gap: 0;
}

.footer-social a {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255,255,255,.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.6);
  font-size: .95rem;
  transition: background var(--t-fast) var(--ease),
              color var(--t-fast) var(--ease),
              border-color var(--t-fast) var(--ease);
  margin-right: -1px; /* overlap borders */
}

.footer-social a:hover {
  background: var(--green);
  color: var(--white);
  border-color: var(--green);
  z-index: 1;
}

.footer-col h3 {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gray-2);
  margin-bottom: 1.4rem;
  padding-bottom: .8rem;
  border-bottom: 1px solid rgba(255,255,255,.1);
}

.footer-col ul { display: flex; flex-direction: column; gap: .5rem; }

.footer-col ul a {
  font-size: .88rem;
  color: rgba(255,255,255,.6);
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .25rem 0;
  transition: color var(--t-fast) var(--ease), padding-left var(--t-fast) var(--ease);
}

.footer-col ul a i { font-size: .65rem; color: var(--gold); }

.footer-col ul a:hover {
  color: var(--white);
  padding-left: .3rem;
}

.footer-col address {
  font-style: normal;
  display: flex;
  flex-direction: column;
  gap: .9rem;
}

.footer-col address p {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  font-size: .88rem;
  color: rgba(255,255,255,.6);
  line-height: 1.5;
}

.footer-col address i {
  color: var(--gold);
  margin-top: .2rem;
  min-width: 14px;
  font-size: .85rem;
}

/* Barre inférieure — border-top pleine largeur, contenu centré */
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 1.2rem var(--pad-x);
}

.footer-bottom p {
  max-width: var(--container);
  margin: 0 auto;
  font-size: .8rem;
  color: rgba(255,255,255,.35);
}

.footer-bottom a {
  color: rgba(255,255,255,.5);
  transition: color var(--t-fast);
}

.footer-bottom a:hover { color: var(--gold); }

/* ----------------------------------------------------------------
   15. ANIMATIONS SCROLL
   ---------------------------------------------------------------- */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .65s var(--ease), transform .65s var(--ease);
}

.fade-up.visible { opacity: 1; transform: translateY(0); }

.fade-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity .65s var(--ease), transform .65s var(--ease);
}

.fade-left.visible { opacity: 1; transform: translateX(0); }

.fade-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity .65s var(--ease), transform .65s var(--ease);
}

.fade-right.visible { opacity: 1; transform: translateX(0); }

.stagger > * {
  transition-delay: calc(var(--i, 0) * 100ms);
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ----------------------------------------------------------------
   16. CONTACT PAGE
   ---------------------------------------------------------------- */
.contact-page {
  margin-top: 68px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: calc(100vh - 68px);
}

.contact-info {
  background: var(--off-white);
  padding: 4rem var(--pad-x);
  border-right: var(--border-ui);
}

.contact-info h2 {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: .5rem;
}

.contact-details {
  margin: 2rem 0;
  border-top: var(--border-ui);
}

.contact-details p {
  display: flex;
  align-items: flex-start;
  gap: .8rem;
  padding: 1rem 0;
  border-bottom: var(--border-ui);
  font-size: .9rem;
  color: var(--gray-3);
}

.contact-details i { color: var(--green); min-width: 16px; margin-top: .15rem; }

.social-links h3 {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gray-2);
  margin-bottom: 1rem;
}

.social-icons {
  display: flex;
  gap: 0;
}

.social-icons a {
  width: 40px; height: 40px;
  border: 1px solid var(--gray-1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-3);
  font-size: 1rem;
  margin-right: -1px;
  transition: background var(--t-fast), color var(--t-fast);
}

.social-icons a:hover {
  background: var(--green);
  color: var(--white);
  border-color: var(--green);
  z-index: 1;
}

iframe {
  width: 100%;
  height: 260px;
  border: none;
  display: block;
  margin-top: 2rem;
  filter: grayscale(20%);
}

.contact-form-section {
  background: var(--white);
  padding: 4rem var(--pad-x);
}

.contact-form-section h2 {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 2rem;
}

.contact-form { display: flex; flex-direction: column; gap: 1.2rem; }

.form-group { display: flex; flex-direction: column; gap: .4rem; }

.form-group label {
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .8px;
  text-transform: uppercase;
  color: var(--gray-3);
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: .85rem 1rem;
  border: 1px solid var(--gray-1);
  font-family: var(--font-sans);
  font-size: .95rem;
  color: var(--ink);
  background: var(--off-white);
  transition: border-color var(--t-fast) var(--ease);
  outline: none;
  border-radius: 0;
}

.form-group textarea { min-height: 130px; resize: vertical; }

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--green);
  background: var(--white);
}

.submit-btn {
  background: var(--green);
  color: var(--white);
  padding: 1rem 2rem;
  border: 2px solid var(--green);
  font-family: var(--font-sans);
  font-size: .9rem;
  font-weight: 700;
  letter-spacing: .5px;
  cursor: pointer;
  transition: background var(--t-fast) var(--ease);
  text-transform: uppercase;
}

.submit-btn:hover { background: var(--green-dark); border-color: var(--green-dark); }

.form-message {
  padding: 1rem;
  margin-top: 1rem;
  font-size: .9rem;
  display: none;
}

.form-message.success { background: #d4f0dd; color: #1b5e2b; display: block; border-left: 4px solid var(--green); }
.form-message.error   { background: #fde8e8; color: #8b1e1e; display: block; border-left: 4px solid #c0392b; }

/* ----------------------------------------------------------------
   Legacy footer (pages services / contact / realisations)
   Alias vers la nouvelle structure
   ---------------------------------------------------------------- */
.footer-content {
  max-width: var(--container);
  margin: 0 auto;
  padding: 4rem var(--pad-x) 3rem;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 4rem;
}

.footer-section { }

.footer-section h3 {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gray-2);
  margin-bottom: 1.4rem;
  padding-bottom: .8rem;
  border-bottom: 1px solid rgba(255,255,255,.1);
}

.footer-about p {
  font-size: .88rem;
  color: rgba(255,255,255,.55);
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.footer-links ul { display: flex; flex-direction: column; gap: .5rem; }

.footer-links li a {
  font-size: .88rem;
  color: rgba(255,255,255,.6);
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .25rem 0;
  transition: color var(--t-fast) var(--ease), padding-left var(--t-fast) var(--ease);
}

.footer-links li a i { font-size: .65rem; color: var(--gold); }
.footer-links li a:hover { color: var(--white); padding-left: .3rem; }

.footer-contact p {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  font-size: .88rem;
  color: rgba(255,255,255,.6);
  line-height: 1.5;
  margin-bottom: .9rem;
}

.footer-contact i { color: var(--gold); margin-top: .2rem; min-width: 14px; }

/* ----------------------------------------------------------------
   17. HERO ANIMATIONS
   ---------------------------------------------------------------- */
@keyframes heroIn {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes heroImgIn {
  from { opacity: 0; transform: scale(1.05); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(7px); }
}

.hero-tag     { animation: heroIn .65s var(--ease) .15s both; }
.hero h2      { animation: heroIn .65s var(--ease) .30s both; }
.hero-desc    { animation: heroIn .65s var(--ease) .45s both; }
.hero-actions { animation: heroIn .65s var(--ease) .60s both; }
.hero-visual  { animation: heroImgIn 1s var(--ease) .1s both; }

/* Scroll hint */
.scroll-hint {
  margin-top: 3rem;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,.35);
  text-decoration: none;
  transition: color var(--t-base) var(--ease);
  animation: heroIn .65s var(--ease) .8s both;
}
.scroll-hint:hover { color: var(--gold-light); }
.scroll-hint i { animation: bounce 2s ease-in-out infinite; }

/* ----------------------------------------------------------------
   18. BACK TO TOP
   ---------------------------------------------------------------- */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 48px;
  height: 48px;
  background: var(--green);
  color: var(--white);
  border: 2px solid var(--green);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .9rem;
  z-index: 900;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity var(--t-base) var(--ease),
              transform var(--t-base) var(--ease),
              background var(--t-fast) var(--ease);
}
.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.back-to-top:hover { background: var(--green-dark); border-color: var(--green-dark); }

/* ----------------------------------------------------------------
   19. NAV BACKDROP (mobile)
   ---------------------------------------------------------------- */
.nav-backdrop {
  position: fixed;
  inset: 68px 0 0 0;
  background: rgba(0,0,0,.38);
  z-index: 998;
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s var(--ease);
}
.nav-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

/* ----------------------------------------------------------------
   20. RESPONSIVE
   ---------------------------------------------------------------- */
@media (max-width: 1024px) {
  .mission-grid { grid-template-columns: 1fr; gap: 3rem; }
  .mission-img { height: 380px; }
  .cta-band-inner { grid-template-columns: 1fr; }
  .footer-main { grid-template-columns: 1fr 1fr; gap: 3rem; }
}

@media (max-width: 900px) {
  .nav-links {
    position: fixed;
    top: 68px; right: 0;
    height: calc(100vh - 68px);
    width: 280px;
    background: var(--white);
    flex-direction: column;
    border-left: var(--border-ui);
    padding: 2rem 0;
    transform: translateX(100%);
    transition: transform .35s var(--ease);
    z-index: 999;
    gap: 0;
  }

  .nav-links.active { transform: translateX(0); }

  .nav-links a {
    padding: .9rem 2rem;
    border-bottom: var(--border-ui);
    border-left: none;
  }

  .nav-links a.active { border-left: 3px solid var(--gold); padding-left: 1.7rem; }

  .burger { display: flex; }

  .stats-band-inner {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat-item:nth-child(2) { border-right: none; }
  .stat-item:nth-child(3) { border-right: 1px solid rgba(255,255,255,.15); }

  .services-grid { grid-template-columns: 1fr; }
  .news-grid { grid-template-columns: 1fr; }

  .contact-page { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-visual { min-height: 260px; order: -1; }
  .hero-text {
    padding: 3rem var(--pad-x) 4rem;
    border-left: none;
    border-top: 3px solid var(--gold);
  }
  .scroll-hint { display: none; }
}

@media (max-width: 640px) {
  .hero h2 { font-size: 2rem; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .stats-band-inner { grid-template-columns: 1fr 1fr; }
  .stat-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,.15); }
  .stat-item:last-child { border-bottom: none; }
  .footer-main { grid-template-columns: 1fr; gap: 2.5rem; }
  .cta-actions { flex-direction: row; }
}
