/* ════════════════════════════════
   CHARTE GRAPHIQUE AMP CONSEIL
   #6381a8  bleu ardoise
   #b69957  or/bronze
   #ffffff  blanc
   Polices : DM Sans (texte) + Cormorant Garamond (titres)
════════════════════════════════ */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,300;1,400&family=DM+Sans:wght@200;300;400;500&display=swap');
:root {
  --blue:       #6381a8;
  --blue-dark:  #4a6185;
  --blue-deep:  #2d4462;
  --blue-pale:  #edf1f7;
  --blue-light: #c9d5e5;
  --gold:       #b69957;
  --gold-light: #cdb47a;
  --gold-pale:  #f7f2e8;
  --white:      #ffffff;
  --off-white:  #f8f7f5;
  --border:     #e2ddd6;
  --text:       #2a3645;
  --text-mid:   #5a6a7e;
  --text-light: #8a9aac;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
strong { font-weight: 600; }
html { scroll-behavior: smooth; }
body { font-family: 'DM Sans', sans-serif; background: var(--white); color: var(--text); overflow-x: hidden; }

/* ── TOPBAR ── */
.topbar {
  background: var(--blue-deep);
  padding: 9px 52px;
  display: flex; justify-content: flex-end; gap: 40px;
}
.topbar a {
  color: var(--blue-light); text-decoration: none;
  font-size: .72rem; font-weight: 500; letter-spacing: .06em;
  display: flex; align-items: center; gap: 7px; transition: color .2s;
}
.topbar a:hover { color: #fff; }
.topbar svg { width: 13px; height: 13px; fill: currentColor; flex-shrink: 0; }

/* ── NAV ── */
nav {
  position: sticky; top: 0; z-index: 200;
  background: var(--white); border-bottom: 1px solid var(--border);
  height: 110px; padding: 0 52px;
  display: flex; align-items: center; justify-content: space-between;
  box-shadow: 0 2px 20px rgba(99,129,168,.08);
}
.logo-link { text-decoration: none; display: flex; align-items: center; }
.logo-svg  { height: 56px; width: auto; }

.nav-links { display: flex; list-style: none; align-items: center; gap: 44px; }
.nav-links a {
  text-decoration: none; font-size: .68rem; font-weight: 500;
  letter-spacing: .18em; text-transform: uppercase; color: var(--blue-deep);
  position: relative; padding-bottom: 3px; transition: color .2s;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: 0; left: 0;
  width: 0; height: 1.5px; background: var(--gold); transition: width .3s;
}
.nav-links a:hover, .nav-links a.active { color: var(--blue); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-cta { background: var(--blue) !important; color: #fff !important; padding: 11px 28px !important; }
.nav-cta::after { display: none !important; }
.nav-cta:hover { background: var(--gold) !important; }
.nav-cta.active { background: var(--gold) !important; }

/* ── PAGE HEADER (bannière des sous-pages) ── */
.page-header {
  background: var(--blue-deep);
  padding: 64px 52px 56px;
  position: relative; overflow: hidden;
}
.page-header::before {
  content: ''; position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23b69957' fill-opacity='0.04'%3E%3Ccircle cx='30' cy='30' r='20'/%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}
.page-header-inner { max-width: 1080px; margin: 0 auto; position: relative; }
.breadcrumb {
  font-size: .65rem; font-weight: 600; letter-spacing: .2em;
  text-transform: uppercase; color: rgba(255,255,255,.4);
  margin-bottom: 14px; display: flex; align-items: center; gap: 8px;
}
.breadcrumb a { color: var(--gold); text-decoration: none; transition: color .2s; }
.breadcrumb a:hover { color: var(--gold-light); }
.breadcrumb span { color: rgba(255,255,255,.25); }
.page-header h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.2rem, 4vw, 3.6rem);
  font-weight: 300; color: #fff; line-height: 1.1;
  letter-spacing: 0.01em;
}
.page-header h1 em { font-style: italic; color: var(--gold-light); }
.ph-rule { width: 44px; height: 2px; background: var(--gold); margin-top: 20px; }

/* ── SECTIONS ── */
.sec { padding: 88px 52px; }
.sec-inner { max-width: 1080px; margin: 0 auto; }
.sec-pale  { background: var(--blue-pale); }
.sec-off   { background: var(--off-white); }
.sec-deep  { background: var(--blue-deep); }

.ey {
  display: flex; align-items: center; gap: 12px;
  font-size: 1rem; font-weight: 700; letter-spacing: .28em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 14px;
}
.ey::before { content: ''; width: 22px; height: 1.5px; background: var(--gold); }
h2.tt {
  font-family: 'Cormorant Garamound', serif;
  font-size: clamp(2rem, 2.8vw, 3rem);
  font-weight: 300; line-height: 1.15; color: var(--blue-deep); margin-bottom: 16px;
  letter-spacing: 0.01em;
}
h2.tt.light { color: #fff; }
.rule { width: 40px; height: 2px; background: var(--gold); margin-bottom: 20px; }
.lead { font-size: .88rem; line-height: 2; color: var(--text-mid); font-weight: 300; max-width: 560px; }
.lead.wide { max-width: 720px; }
.lead.light { color: rgba(255,255,255,.6); }

/* ── BOUTONS ── */
.btn {
  display: inline-block; text-decoration: none;
  font-family: 'DM Sans', sans-serif; font-size: .68rem; font-weight: 500;
  letter-spacing: .2em; text-transform: uppercase;
  padding: 13px 30px; cursor: pointer; border: none; transition: all .22s;
}
.btn-blue { background: var(--blue); color: #fff; }
.btn-blue:hover { background: var(--blue-dark); }
.btn-outline { background: transparent; color: var(--blue-deep); border: 1.5px solid var(--blue-light); }
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }
.btn-gold { background: var(--gold); color: #fff; }
.btn-gold:hover { background: var(--gold-light); }

/* ── FOOTER ── */
footer { background: var(--blue-deep); color: rgba(255,255,255,.4); }
.ft { padding: 56px 52px 40px; max-width: 1184px; margin: 0 auto; display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 60px; }
.f-nm { font-family: 'DM Sans',sans-serif; font-size: 1.1rem; font-weight: 500; letter-spacing: .22em; color: rgba(255,255,255,.85); margin-bottom: 5px; }
.f-nm span { color: var(--gold-light); }
.f-sub { font-size: .66rem; font-weight: 600; letter-spacing: .12em; color: var(--gold); text-transform: uppercase; margin-bottom: 16px; }
.f-svc { font-size: .76rem; line-height: 2; font-weight: 300; }
.f-soc { display: flex; gap: 10px; margin-top: 18px; }
.soc { width: 34px; height: 34px; border: 1px solid rgba(255,255,255,.12); display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.35); text-decoration: none; font-size: .7rem; font-weight: 700; transition: all .2s; }
.soc:hover { border-color: var(--gold); color: var(--gold-light); }
.fc h5 { font-size: .61rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--gold-light); margin-bottom: 14px; }
.fc ul { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.fc ul li a { color: rgba(255,255,255,.4); text-decoration: none; font-size: .78rem; font-weight: 300; transition: color .2s; }
.fc ul li a:hover { color: var(--gold-light); }
.fb { border-top: 1px solid rgba(255,255,255,.07); padding: 17px 52px; max-width: 1184px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; font-size: .68rem; }
.fb a { color: rgba(255,255,255,.35); text-decoration: none; transition: color .2s; }
.fb a:hover { color: var(--gold-light); }
.fb-links { display: flex; gap: 18px; }
.stat-num { font-family: 'DM Sans', sans-serif; font-size: 2.8rem; font-weight: 300; color: var(--blue); line-height: 1; margin-bottom: 8px; }
.stat-num span { font-family: 'DM Sans', sans-serif; color: var(--gold); font-size: 1.8rem; font-weight: 300; }

/* ════════════════════════════════
   RESPONSIVE — MOBILE FIRST
   Breakpoints :
   • < 768px  → mobile
   • 768–1024px → tablette
   • > 1024px  → desktop (styles ci-dessus)
════════════════════════════════ */

/* ── BURGER BUTTON ── */
.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
  z-index: 300;
}
.burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--blue-deep);
  transition: transform .3s, opacity .3s;
  border-radius: 2px;
}
.burger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ── TABLETTE (768–1024px) ── */
@media (max-width: 1024px) {
  .logo-link img {height: 68px !important}
  .topbar { padding: 8px 28px; gap: 24px; }
  nav { padding: 0 28px; height: 90px; }
  .sec { padding: 64px 28px; }
  .page-header { padding: 52px 28px 44px; }
  .ft { padding: 48px 28px 32px; grid-template-columns: 1fr 1fr; gap: 40px; }
  .ft > div:first-child { grid-column: 1 / -1; }
  .fb { padding: 17px 28px; }
  .nav-links { gap: 28px; }
  .nav-links a { font-size: .64rem; letter-spacing: .14em; }
}

/* ── MOBILE (< 768px) ── */
@media (max-width: 768px) {
  .logo-link img {height: 52px !important;}
  .sec {padding-top: 36px !important; padding-bottom: 36px !important}
  footer {margin-top: 0}

  /* Topbar */
  .topbar {
    padding: 8px 20px;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
  }
  .topbar a { font-size: .68rem; }

  /* Nav */
  nav {
    position: sticky; top: 0; z-index: 200;
    padding: 0 20px;
    height: 72px;
  }
  .burger { display: flex; }

  .nav-links {
    display: none;
    position: fixed;
    top: 72px; left: 0; right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    border-top: 2px solid var(--gold);
    box-shadow: 0 8px 32px rgba(45,68,98,.12);
    z-index: 199;
    padding: 8px 0 16px;
    max-height: calc(100vh - 72px);
    overflow-y: auto;
  }
  .nav-links.open { display: flex; }

  .nav-links li { border-bottom: 1px solid var(--border); }
  .nav-links li:last-child { border-bottom: none; margin: 12px 20px 0; }

  .nav-links a {
    display: block;
    padding: 15px 24px;
    font-size: .72rem;
    letter-spacing: .14em;
  }
  .nav-links a::after { display: none; }
  .nav-links a.active { color: var(--gold); }

  .nav-cta {
    display: block !important;
    text-align: center !important;
    padding: 14px 24px !important;
    border-radius: 2px;
  }

  /* Page header */
  .page-header { padding: 44px 20px 36px; }
  .page-header h1 { font-size: clamp(1.9rem, 7vw, 2.8rem); }
  .ph-rule { margin-top: 16px; }

  /* Sections */
  .sec { padding: 52px 20px; }

  /* Titres & textes */
  h2.tt { font-size: clamp(1.7rem, 6vw, 2.4rem); }
  .lead { font-size: .85rem; line-height: 1.9; max-width: 100%; }
  .lead.wide { max-width: 100%; }
  .ey { font-size: .8rem; letter-spacing: .2em; }

  /* Grilles génériques → 1 colonne */
  .grid-2, .grid-3, .grid-4,
  [class*="col-2"], [class*="col-3"], [class*="col-4"] {
    grid-template-columns: 1fr !important;
  }

  /* Stats */
  .stats-grid,
  .stats-row {
    grid-template-columns: 1fr 1fr !important;
    gap: 24px !important;
  }
  .stat-num { font-size: 2.2rem; }
  .stat-num span { font-size: 1.5rem; }

  /* Cartes domaines / services */
  .domaines-grid,
  .services-grid,
  .cards-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  /* Boutons */
  .btn { padding: 13px 24px; font-size: .66rem; width: 100%; text-align: center; display: block; }
  .btn + .btn { margin-top: 10px; }

  /* Footer */
  .ft {
    padding: 44px 20px 28px;
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .ft > div:first-child { grid-column: auto; }
  .fb {
    padding: 17px 20px;
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
  .fb-links { flex-direction: column; gap: 8px; justify-content: center; }

  /* Formulaire contact — évite le zoom iOS */
  input, textarea, select {
    font-size: 16px !important;
  }

  /* Iframe Google Maps */
  iframe { width: 100% !important; height: 280px !important; }

  /* Articles grid */
  .articles-grid { grid-template-columns: 1fr !important; gap: 20px !important; }
}

/* ── TRÈS PETIT MOBILE (< 480px) ── */
@media (max-width: 480px) {
  .topbar { display: none; } /* Topbar masquée sur très petit écran */

  .stats-grid,
  .stats-row { grid-template-columns: 1fr !important; }

  .page-header h1 { font-size: clamp(1.6rem, 8vw, 2.2rem); }
}
