/* ═══════════════════════════════════════════════════════════
   INITIAL SOLUTIONS — Système CSS global (nav, footer, boutons,
   typographie, tokens). Partagé par toutes les pages du site.
   ═══════════════════════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

:root {
  /* Couleurs — un seul accent, gris chauds neutres, plus de bleus multiples/pastels.
     Noms de variables conservés pour compatibilité avec les autres pages du site. */
  --blue: #1B1B18;         /* encre quasi-noire — titres, texte fort (anciennement navy) */
  --dark: #14130F;         /* neutre très sombre — fonds sombres (footer, CTA) */
  --green: #1B1B18;        /* alias neutre — anciennement vert, aligné sur l'encre */
  --accent: #1F3A5C;       /* accent unique — bleu profond et sobre */
  --accent-ink: #12253B;   /* état hover de l'accent */
  --bg: #F7F4EE;           /* papier blanc cassé, légèrement chaud */
  --white: #fff;
  --muted: #5B584F;        /* gris chaud — texte secondaire */
  --faint: #8C897E;        /* gris chaud clair — mentions discrètes */
  --border: #E3DED2;       /* filet — séparateurs, contours */

  /* Rayons — réduits, plus architecturaux */
  --r: 6px;
  --rl: 10px;

  /* Ombres — deux niveaux seulement, jamais de glow coloré */
  --shadow-sm: 0 1px 2px rgba(20,19,15,.07);
  --shadow-md: 0 12px 32px rgba(20,19,15,.09);

  /* Transition */
  --t: .2s ease;

  /* Largeurs de contenu */
  --w-content: 1160px;
  --w-wide: 1320px;
  --w-narrow: 720px;
  --w-text: 640px;

  /* Échelle d'espacement */
  --space-1: .5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2rem;
  --space-5: 3rem;
  --space-6: 4rem;
  --space-7: 6rem;
}

body {
  font-family: 'DM Sans', ui-sans-serif, system-ui, sans-serif;
  background: var(--bg);
  color: var(--blue);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; height: auto; }
ul { list-style: none; }

.wrap { max-width: var(--w-content); margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: var(--w-narrow); margin: 0 auto; padding: 0 24px; }
.wrap-wide { max-width: var(--w-wide); margin: 0 auto; padding: 0 24px; }

section { padding: clamp(4rem, 3rem + 4vw, 7rem) 0; }

h1, h2, h3, h4 { font-family: 'Playfair Display', Georgia, serif; line-height: 1.2; letter-spacing: -.01em; font-weight: 700; }

.sh { font-size: clamp(1.85rem, 1.5rem + 1.6vw, 2.75rem); font-weight: 800; color: var(--blue); margin-bottom: var(--space-2); }
.ss { font-size: 17px; color: var(--muted); font-weight: 400; line-height: 1.7; max-width: 560px; }
.eyebrow { font-family: 'DM Sans', ui-sans-serif, sans-serif; font-size: 13px; font-weight: 600; color: var(--accent); letter-spacing: .08em; text-transform: uppercase; margin-bottom: var(--space-2); }

/* ── Boutons — plats, sans glow, hover discret ── */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 26px; border-radius: var(--r); font-family: 'DM Sans', ui-sans-serif, sans-serif; font-size: 15px; font-weight: 500; cursor: pointer; border: 1.5px solid transparent; transition: background var(--t), border-color var(--t), color var(--t), transform var(--t); white-space: nowrap; }
.btn svg { width: 17px; height: 17px; transition: transform var(--t); flex-shrink: 0; }
.btn:hover svg { transform: translateX(3px); }
.btn-lg { padding: 16px 34px; font-size: 16px; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-ink); }
.btn-ghost { background: transparent; color: var(--blue); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-white { background: #fff; color: var(--blue); }
.btn-white:hover { border-color: var(--white); background: var(--bg); }
.btn-dim { background: transparent; color: #fff; border-color: rgba(255,255,255,.28); }
.btn-dim:hover { border-color: #fff; }

/* ── Révélation légère au scroll (opacité + translation, seule animation autorisée) ── */
.rev { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.rev.in { opacity: 1; transform: translateY(0); }
.d1 { transition-delay: .1s; } .d2 { transition-delay: .2s; } .d3 { transition-delay: .3s; }

/* ── Navigation ── */
#nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; padding: 14px 0; background: rgba(247,244,238,.96); backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--border); }
.nav-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.logo { display: flex; align-items: center; flex-shrink: 0; }
.logo img { height: 38px; width: auto; }
.nav-links { display: flex; gap: 0; margin: 0 auto; }
.nav-links a { font-size: 15px; color: var(--muted); padding: 8px 14px; border-radius: var(--r); transition: color var(--t), background var(--t); white-space: nowrap; font-weight: 400; display: inline-block; }
.nav-links a:hover { color: var(--blue); background: rgba(27,27,24,.05); }
.nav-end { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.btn-nav-ghost { background: transparent; color: var(--blue); border: 1.5px solid var(--border); padding: 9px 20px; border-radius: var(--r); font-size: 14px; font-weight: 600; transition: border-color var(--t), color var(--t); white-space: nowrap; display: inline-block; }
.btn-nav-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-nav-cta { background: var(--accent); color: #fff; padding: 9px 20px; border-radius: var(--r); font-size: 14px; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; transition: background var(--t); white-space: nowrap; }
.btn-nav-cta:hover { background: var(--accent-ink); }
.btn-nav-cta svg { width: 15px; height: 15px; flex-shrink: 0; }
.ham { display: none; background: none; border: none; cursor: pointer; padding: 8px; flex-direction: column; gap: 5px; min-width: 44px; min-height: 44px; align-items: center; justify-content: center; }
.ham span { display: block; width: 22px; height: 2px; background: var(--blue); border-radius: 2px; }
#mob { visibility: hidden; opacity: 0; position: fixed; inset: 0; z-index: 99; background: #fff; padding: 96px 24px 40px; display: flex; flex-direction: column; gap: 4px; transition: opacity var(--t), visibility var(--t); }
#mob.open { visibility: visible; opacity: 1; }
#mob a { font-family: 'Playfair Display', Georgia, serif; font-size: 22px; font-weight: 700; color: var(--blue); padding: 14px 0; border-bottom: 1px solid var(--border); display: block; }
#mob .btn-mob-cta { margin-top: 24px; background: var(--accent); color: #fff; text-align: center; padding: 16px; border-radius: var(--r); font-family: 'DM Sans', ui-sans-serif, sans-serif; font-size: 16px; font-weight: 500; border-bottom: none; }

/* ── Footer ── */
footer { background: var(--dark); }
.foot-top { padding: var(--space-6) 0 var(--space-5); display: grid; grid-template-columns: 2fr 1fr 1fr; gap: var(--space-5); }
.foot-logo { display: flex; align-items: center; margin-bottom: var(--space-2); }
.foot-logo img { height: 52px; width: auto; filter: brightness(0) invert(1); opacity: .95; }
.foot-desc { font-size: 14px; color: rgba(255,255,255,.45); line-height: 1.7; max-width: 270px; margin-bottom: var(--space-3); }
.foot-contact { display: flex; flex-direction: column; gap: 10px; }
.foot-ci { display: flex; align-items: center; gap: 10px; font-size: 14px; color: rgba(255,255,255,.55); transition: color var(--t); }
.foot-ci:hover { color: #fff; }
.foot-ci svg { width: 13px; height: 13px; flex-shrink: 0; opacity: .6; }
.foot-col h4 { font-family: 'DM Sans', ui-sans-serif, sans-serif; font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.35); margin-bottom: var(--space-2); }
.foot-links { display: flex; flex-direction: column; gap: 11px; }
.foot-links a { font-size: 14px; color: rgba(255,255,255,.5); transition: color var(--t); }
.foot-links a:hover { color: #fff; }
.foot-expertise { border-top: 1px solid rgba(255,255,255,.08); padding: var(--space-3) 0 var(--space-1); }
.foot-expertise h4 { font-family: 'DM Sans', ui-sans-serif, sans-serif; font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.35); margin-bottom: var(--space-2); }
.foot-expertise-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px 16px; }
.foot-expertise-grid a { font-size: 13px; color: rgba(255,255,255,.45); transition: color var(--t); }
.foot-expertise-grid a:hover { color: #fff; }
.foot-bot { padding: 18px 0; border-top: 1px solid rgba(255,255,255,.08); display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.foot-bot-l { font-size: 13px; color: rgba(255,255,255,.3); }
.foot-bot-r { display: flex; gap: 18px; }
.foot-bot-r a { font-size: 13px; color: rgba(255,255,255,.3); transition: color var(--t); }
.foot-bot-r a:hover { color: rgba(255,255,255,.65); }

/* ── Séparateur fin, réutilisable ── */
.hr { height: 1px; background: var(--border); border: none; }

/* ── Responsive — un seul jeu de points de rupture pour tout le site ── */
@media (max-width: 959px) {
  section { padding: clamp(3rem, 2.4rem + 3vw, 5rem) 0; }
  .nav-links, .nav-end { display: none; }
  .ham { display: flex; }
  .foot-top { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
  .foot-expertise-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 639px) {
  .foot-top { grid-template-columns: 1fr; gap: var(--space-4); }
  .foot-bot { flex-direction: column; text-align: center; }
  .foot-expertise-grid { grid-template-columns: 1fr; }
}
