/* ==========================================================================
   Cabinet Fouchez — Landing pages sectorielles
   Socle : tokens, typographie, mise en page, boutons.
   Direction artistique : composition sobre, type large, respiration généreuse.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Typographie
   SF Pro Display est utilisée si elle est installée (cas des machines Apple)
   ou si les fichiers sont déposés dans assets/fonts (voir fonts/README.md).
   À défaut, -apple-system fournit SF sur iOS/macOS et system-ui prend le
   relais sur Windows/Android. Aucune police tierce n'est chargée : pas de
   requête vers un service externe, pas de dépendance de rendu.
   -------------------------------------------------------------------------- */

:root {
  --font-display: 'SF Pro Display', -apple-system, BlinkMacSystemFont,
    'Segoe UI Variable Display', 'Segoe UI', system-ui, 'Helvetica Neue', Arial, sans-serif;
  --font-text: 'SF Pro Text', -apple-system, BlinkMacSystemFont,
    'Segoe UI Variable Text', 'Segoe UI', system-ui, 'Helvetica Neue', Arial, sans-serif;

  /* Couleurs ------------------------------------------------------------- */
  --ink: #1d1d1f;
  --ink-2: #51525a;
  --ink-3: #86868b;
  --bg: #ffffff;
  --bg-alt: #f5f5f7;
  --line: rgba(0, 0, 0, 0.1);
  --line-soft: rgba(0, 0, 0, 0.06);

  --navy-900: #04101f;
  --navy-800: #082039;
  --navy-700: #0d3058;
  --navy-600: #14416f;
  --on-navy: #ffffff;
  --on-navy-2: rgba(255, 255, 255, 0.72);
  --on-navy-3: rgba(255, 255, 255, 0.52);
  --navy-line: rgba(255, 255, 255, 0.16);

  /* Couleur réservée à l'action de contact ------------------------------- */
  --accent: #0071e3;
  --accent-hover: #0061c3;
  --accent-ink: #ffffff;
  --accent-soft: rgba(0, 113, 227, 0.1);

  --danger: #b3261e;
  --success: #0b6b3a;

  /* Rayons et ombres ----------------------------------------------------- */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 22px;
  --r-xl: 28px;
  --r-pill: 980px;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04), 0 2px 8px -4px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 1px 2px rgba(0, 0, 0, 0.05), 0 12px 32px -16px rgba(0, 0, 0, 0.18);
  --shadow-lg: 0 2px 4px rgba(0, 0, 0, 0.06), 0 32px 64px -24px rgba(4, 16, 31, 0.42);

  /* Mise en page --------------------------------------------------------- */
  --container: 1200px;
  --gutter: 22px;
  --header-h: 62px;

  /* Échelle typographique ------------------------------------------------ */
  --t-display: clamp(2.1rem, 1.25rem + 3.1vw, 3.6rem);
  --t-h2: clamp(1.65rem, 1.15rem + 1.8vw, 2.6rem);
  --t-h3: clamp(1.1rem, 1rem + 0.4vw, 1.3rem);
  --t-lead: clamp(1.0625rem, 1rem + 0.45vw, 1.3rem);
  --t-body: 1.0625rem;
  --t-sm: 0.9375rem;
  --t-xs: 0.8125rem;
}

/* --------------------------------------------------------------------------
   Reset mesuré
   -------------------------------------------------------------------------- */

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: var(--t-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  margin: 0;
  letter-spacing: -0.022em;
  line-height: 1.1;
  text-wrap: balance;
}

p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img, svg { max-width: 100%; height: auto; display: block; }

a { color: inherit; text-decoration: none; }
a:not([class]) {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

button, input, select, textarea { font: inherit; color: inherit; }

:focus-visible {
  outline: 3px solid rgba(0, 113, 227, 0.55);
  outline-offset: 2px;
  border-radius: 6px;
}

[hidden] { display: none !important; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 12px; top: -64px;
  z-index: 200;
  padding: 12px 18px;
  background: var(--bg);
  color: var(--ink);
  border-radius: var(--r-sm);
  box-shadow: var(--shadow-md);
  transition: top 0.15s ease;
}
.skip-link:focus-visible { top: 12px; }

/* --------------------------------------------------------------------------
   Mise en page
   -------------------------------------------------------------------------- */

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: clamp(56px, 4vw + 36px, 104px);
}
.section--alt { background: var(--bg-alt); }
.section--navy {
  background: linear-gradient(170deg, var(--navy-800) 0%, var(--navy-900) 100%);
  color: var(--on-navy);
}
.section--navy h2, .section--navy h3 { color: var(--on-navy); }

.section-head { max-width: 46rem; margin-bottom: clamp(30px, 3vw, 52px); }
.section-head > * + * { margin-top: 14px; }

.eyebrow {
  font-family: var(--font-text);
  font-size: var(--t-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0;
}
.section--navy .eyebrow { color: rgba(132, 198, 255, 0.95); }

h2.section-title { font-size: var(--t-h2); letter-spacing: -0.028em; }

.lead {
  font-size: var(--t-lead);
  line-height: 1.5;
  color: var(--ink-2);
  letter-spacing: -0.012em;
}
.section--navy .lead { color: var(--on-navy-2); }

.grid { display: grid; gap: clamp(16px, 1.6vw, 24px); }
@media (min-width: 720px) { .grid--2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 860px) { .grid--3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 720px) and (max-width: 1059px) { .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1060px) { .grid--4 { grid-template-columns: repeat(4, 1fr); } }

/* --------------------------------------------------------------------------
   Cartes
   -------------------------------------------------------------------------- */

.card {
  background: var(--bg);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  padding: clamp(20px, 2vw, 28px);
  box-shadow: var(--shadow-sm);
}
.card > * + * { margin-top: 10px; }
.card h3 { font-size: var(--t-h3); letter-spacing: -0.016em; }
.card p { color: var(--ink-2); font-size: var(--t-sm); line-height: 1.55; }

.section--navy .card {
  /* Fond plus clair et bord plus marqué : les cartes se détachent nettement
     de l'aplat bleu nuit au lieu de s'y fondre. */
  background: linear-gradient(170deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.065));
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 18px 36px -24px rgba(0, 0, 0, 0.6);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}
.section--navy .card h3 { color: #ffffff; }
.section--navy .card p { color: rgba(255, 255, 255, 0.78); }

/* --------------------------------------------------------------------------
   Boutons
   -------------------------------------------------------------------------- */

.btn {
  --btn-bg: var(--accent);
  --btn-ink: var(--accent-ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  padding: 14px 26px;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  background: var(--btn-bg);
  color: var(--btn-ink);
  font-family: var(--font-text);
  font-size: 1.0625rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.18s ease, transform 0.18s ease, opacity 0.18s ease;
}
.btn:hover { --btn-bg: var(--accent-hover); }
.btn:active { transform: scale(0.985); }
.btn[disabled], .btn[aria-disabled='true'] { opacity: 0.55; cursor: not-allowed; }
.btn--block { width: 100%; }
.btn--lg { min-height: 54px; font-size: 1.09375rem; padding-inline: 32px; }

/* Secondaire : volontairement discret, pour ne pas concurrencer le devis. */
.btn--ghost {
  --btn-bg: transparent;
  --btn-ink: var(--ink);
  border-color: var(--line);
  font-weight: 450;
}
.btn--ghost:hover { --btn-bg: rgba(0, 0, 0, 0.04); }

.btn--on-navy {
  --btn-bg: rgba(255, 255, 255, 0.1);
  --btn-ink: var(--on-navy);
  border-color: var(--navy-line);
}
.btn--on-navy:hover { --btn-bg: rgba(255, 255, 255, 0.18); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent);
  font-size: var(--t-sm);
  font-weight: 500;
}
.link-arrow::after { content: '›'; font-size: 1.15em; line-height: 1; }
.link-arrow:hover { text-decoration: underline; text-underline-offset: 3px; }

/* --------------------------------------------------------------------------
   Listes de bénéfices et de garanties
   -------------------------------------------------------------------------- */

.ticks { display: grid; gap: 12px; }
.ticks li {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 11px;
  align-items: start;
  font-size: var(--t-sm);
  line-height: 1.5;
}
.ticks .tick {
  width: 22px; height: 22px;
  margin-top: 1px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent);
  flex: none;
}
.ticks .tick svg { width: 12px; height: 12px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 7px 13px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  font-size: var(--t-xs);
  color: var(--ink-2);
  background: var(--bg);
}
.section--alt .chip { background: var(--bg);}
.section--navy .chip {
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.9);
}

/* --------------------------------------------------------------------------
   Animations discrètes
   -------------------------------------------------------------------------- */

/* Le contenu est visible par défaut. L'apparition n'est armée que si le
   script a pu marquer le document : sans JavaScript, ou si le script échoue,
   rien ne reste masqué. */
.js .reveal { opacity: 0; transform: translateY(10px); }
.js .reveal.is-in {
  opacity: 1;
  transform: none;
  transition: opacity 0.6s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}

@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;
  }
  .js .reveal { opacity: 1; transform: none; }
}
