/* ==========================================================================
   POLICE — Inter, auto-hébergée (aucun appel externe).
   Source : Fontsource (@fontsource/inter v5). Fichiers dans assets/fonts/.
   Le navigateur ne télécharge le sous-ensemble latin-ext que si un caractère
   l'exige (unicode-range). Le latin seul couvre déjà tous les accents FR.
   ========================================================================== */
@font-face { font-family:'Inter'; font-style:normal; font-weight:400; font-display:swap;
  src:url('fonts/inter-latin-400-normal.woff2') format('woff2');
  unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family:'Inter'; font-style:normal; font-weight:500; font-display:swap;
  src:url('fonts/inter-latin-500-normal.woff2') format('woff2');
  unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family:'Inter'; font-style:normal; font-weight:600; font-display:swap;
  src:url('fonts/inter-latin-600-normal.woff2') format('woff2');
  unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family:'Inter'; font-style:normal; font-weight:700; font-display:swap;
  src:url('fonts/inter-latin-700-normal.woff2') format('woff2');
  unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family:'Inter'; font-style:normal; font-weight:400; font-display:swap;
  src:url('fonts/inter-latin-ext-400-normal.woff2') format('woff2');
  unicode-range:U+0100-02AF,U+0304,U+0308,U+0329,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family:'Inter'; font-style:normal; font-weight:500; font-display:swap;
  src:url('fonts/inter-latin-ext-500-normal.woff2') format('woff2');
  unicode-range:U+0100-02AF,U+0304,U+0308,U+0329,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family:'Inter'; font-style:normal; font-weight:600; font-display:swap;
  src:url('fonts/inter-latin-ext-600-normal.woff2') format('woff2');
  unicode-range:U+0100-02AF,U+0304,U+0308,U+0329,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family:'Inter'; font-style:normal; font-weight:700; font-display:swap;
  src:url('fonts/inter-latin-ext-700-normal.woff2') format('woff2');
  unicode-range:U+0100-02AF,U+0304,U+0308,U+0329,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }

/* ==========================================================================
   EmbraceIA — design system
   HTML/CSS pur. Aucun framework, aucune étape de build.
   Pour modifier une couleur ou un espacement : changez la variable ci-dessous.
   ========================================================================== */

:root {
  /* Couleurs de marque */
  --orange: #f06020;
  --orange-dark: #c74e17;
  --orange-light: #fdece0;
  --orange-tint: #fff7f2;

  /* Neutres */
  --ink: #1f2933;
  --body: #4a5568;
  --muted: #7b8794;
  --line: #e4e7eb;
  --bg: #ffffff;
  --bg-alt: #f9fafb;

  /* Accents secondaires (usage parcimonieux) */
  --teal: #2fb6a3;
  --blue: #3d9be9;

  /* Typographie */
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --h1: clamp(2.1rem, 5vw, 3.4rem);
  --h2: clamp(1.5rem, 3vw, 2.1rem);
  --h3: 1.15rem;

  /* Rythme */
  --gap: 1.5rem;
  --section-y: 5rem;
  --radius: 14px;
  --max: 1120px;
  --shadow: 0 1px 3px rgba(31, 41, 51, .06), 0 8px 24px rgba(31, 41, 51, .05);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.02rem;
  line-height: 1.65;
  color: var(--body);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { color: var(--ink); line-height: 1.2; margin: 0 0 .6em; font-weight: 700; letter-spacing: -.015em; }
h1 { font-size: var(--h1); }
h2 { font-size: var(--h2); }
h3 { font-size: var(--h3); }
p { margin: 0 0 1rem; }
a { color: var(--orange-dark); }
img { max-width: 100%; height: auto; display: block; }
strong { color: var(--ink); font-weight: 600; }

/* ---------- Mise en page ---------- */
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 1.25rem; }
.section { padding: var(--section-y) 0; }
.section--alt { background: var(--bg-alt); }
.section--tint { background: var(--orange-tint); }
.lead { font-size: 1.15rem; color: var(--body); max-width: 46rem; }
.center { text-align: center; }
.mt-0 { margin-top: 0; }

.grid { display: grid; gap: var(--gap); }
@media (min-width: 720px) {
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 980px) {
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
  .grid--sidebar { grid-template-columns: 1.2fr .8fr; }
  /* Portrait étroit à gauche, texte à droite */
  .grid--portrait { grid-template-columns: 340px 1fr; gap: 2.5rem; }
}

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .85rem 1.6rem; border-radius: 999px;
  font-weight: 600; font-size: 1rem; text-decoration: none;
  border: 1.5px solid transparent; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--orange); color: #fff; box-shadow: 0 6px 18px rgba(240, 96, 32, .28); }
.btn--primary:hover { background: var(--orange-dark); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--orange); color: var(--orange-dark); }
.btn--onDark { background: #fff; color: var(--orange-dark); }

/* ---------- En-tête ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .92); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .8rem 0; }
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--ink); font-weight: 700; font-size: 1.05rem; }
.brand img { width: 32px; height: 32px; }
.nav-links { display: none; gap: 1.6rem; align-items: center; }
.nav-links a { color: var(--body); text-decoration: none; font-size: .95rem; font-weight: 500; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--orange-dark); }
@media (min-width: 900px) { .nav-links { display: flex; } }
.nav-cta { display: none; }
@media (min-width: 900px) { .nav-cta { display: inline-flex; } }

/* ---------- Sélecteur de langue ---------- */
.lang-switch {
  display: inline-flex; align-items: center; gap: .3rem;
  font-size: .82rem; font-weight: 600; letter-spacing: .04em;
  color: var(--muted); text-decoration: none; text-transform: uppercase;
  padding: .3rem .55rem; border: 1px solid var(--line); border-radius: 999px;
}
.lang-switch:hover { color: var(--orange-dark); border-color: var(--orange); }
@media (max-width: 899px) {
  .lang-switch.is-open { display: inline-flex; order: 5; margin-bottom: .8rem; }
  .lang-switch { display: none; }
}

/* ---------- Menu mobile ---------- */
.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; padding: 0;
  background: transparent; border: 1px solid var(--line); border-radius: 10px;
  color: var(--ink); cursor: pointer;
}
.nav-toggle svg { width: 22px; height: 22px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }
@media (min-width: 900px) { .nav-toggle { display: none; } }

/* Panneau déroulant : occupe toute la largeur sous l'en-tête */
@media (max-width: 899px) {
  .nav { flex-wrap: wrap; }
  .nav-links.is-open {
    display: flex; flex-direction: column; align-items: stretch; gap: 0;
    width: 100%; order: 3; margin: .4rem 0 .6rem;
    border-top: 1px solid var(--line);
  }
  .nav-links.is-open a { padding: .85rem .2rem; border-bottom: 1px solid var(--line); font-size: 1rem; }
  .nav-links.is-open a:last-child { border-bottom: none; }
  .nav-cta.is-open { display: inline-flex; width: 100%; justify-content: center; order: 4; margin-bottom: .8rem; }
}

/* ---------- Hero ---------- */
.hero { background: linear-gradient(165deg, var(--orange) 0%, var(--orange-dark) 100%); color: #fff; padding: 5.5rem 0 5rem; }
.hero h1 { color: #fff; max-width: 20ch; }
.hero p { color: rgba(255, 255, 255, .93); font-size: 1.2rem; max-width: 46rem; }
.hero .btn-row { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2rem; }
.eyebrow { text-transform: uppercase; letter-spacing: .1em; font-size: .78rem; font-weight: 700; color: rgba(255, 255, 255, .85); margin-bottom: .9rem; }
.eyebrow--dark { color: var(--orange-dark); }

/* ---------- Cartes ---------- */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; box-shadow: var(--shadow); }
.card h3 { margin-bottom: .4rem; }
.card p:last-child { margin-bottom: 0; }
.card--flat { box-shadow: none; }
.card__rule { width: 40px; height: 3px; border-radius: 2px; background: var(--orange); margin-bottom: 1rem; }
.card__num {
  width: 40px; height: 40px; border-radius: 999px; background: var(--orange); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 700; margin-bottom: 1rem;
}

/* ---------- Listes ---------- */
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: .7rem; }
.ticks li { position: relative; padding-left: 1.5rem; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .62em; width: 8px; height: 8px; border-radius: 999px; background: var(--orange); }

/* ---------- Étiquette de cas ---------- */
.tag {
  display: inline-block; font-size: .78rem; font-weight: 600; letter-spacing: .02em;
  padding: .3rem .7rem; border-radius: 999px; background: var(--orange-light); color: var(--orange-dark); margin-bottom: .9rem;
}
.tag--warn { background: #fff4d6; color: #8a6100; }

/* ---------- Bandeau CTA ---------- */
.cta-band { background: var(--ink); color: #fff; border-radius: var(--radius); padding: 2.6rem; text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255, 255, 255, .8); max-width: 40rem; margin-left: auto; margin-right: auto; }

/* ---------- Pied de page ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-alt); padding: 3rem 0 2rem; font-size: .92rem; }
.site-footer h4 { color: var(--ink); font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; margin: 0 0 .8rem; }
.site-footer a { color: var(--body); text-decoration: none; display: block; padding: .18rem 0; }
.site-footer a:hover { color: var(--orange-dark); }
.footer-bottom { border-top: 1px solid var(--line); margin-top: 2rem; padding-top: 1.2rem; color: var(--muted); font-size: .85rem; display: flex; flex-wrap: wrap; gap: .8rem; justify-content: space-between; }

/* ==========================================================================
   VISUELS & MOUVEMENT
   Tout le mouvement est discret et se désactive si l'utilisateur a demandé
   une réduction des animations (accessibilité).
   ========================================================================== */

/* Hero en deux colonnes : texte + photo */
.hero__grid { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 980px) { .hero__grid { grid-template-columns: 1.05fr .95fr; } }
.hero__art { display: block; }

/* Animations de l'illustration */
.float { animation: float 7s ease-in-out infinite; }
.float--slow { animation-duration: 9s; }
.float--delay { animation-delay: -3s; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }

.blink { animation: blink 3.5s ease-in-out infinite; }
.blink--b { animation-delay: -1.2s; }
.blink--c { animation-delay: -2.4s; }
@keyframes blink { 0%, 100% { opacity: .28; } 50% { opacity: .95; } }

.flow { stroke-dasharray: 5 7; animation: flow 9s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -240; } }

/* Apparition au défilement */
[data-reveal] { opacity: 0; transform: translateY(14px); transition: opacity .55s ease, transform .55s ease; }
[data-reveal].is-in { opacity: 1; transform: none; }

/* Relief au survol des cartes */
.card { transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.card:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(31, 41, 51, .10); border-color: #f4cbb4; }

/* Icônes des piliers */
.icon { width: 34px; height: 34px; color: var(--orange); margin-bottom: .9rem; display: block; }

/* Respect des préférences d'accessibilité */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  [data-reveal] { opacity: 1; transform: none; }
}

/* ==========================================================================
   PHOTOGRAPHIES
   Toutes les photos passent par <figure class="photo">. Le ratio est réservé
   en CSS pour éviter que la page ne saute pendant le chargement.
   ========================================================================== */

.photo {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--orange-light);
  box-shadow: 0 14px 38px rgba(31, 41, 51, .14);
}
.photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}
.photo figcaption {
  padding: .7rem 1rem .9rem;
  background: #fff;
  color: var(--muted);
  font-size: .82rem;
  line-height: 1.45;
}

/* Variante sans ombre, pour les photos posées dans une carte */
.photo--flat { box-shadow: none; }

/* Portrait : format vertical, largeur bornée pour ne pas écraser le texte */
.photo--portrait { max-width: 340px; }
.photo--portrait img { aspect-ratio: 4 / 5; }
@media (max-width: 979px) { .photo--portrait { max-width: 260px; } }

/* Photo en tête de carte : elle occupe toute la largeur, bords alignés */
.card__photo {
  margin: -1.6rem -1.6rem 1.2rem;
  border-radius: var(--radius) var(--radius) 0 0;
  overflow: hidden;
  background: var(--orange-light);
}
.card__photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
/* Sur une carte pleine largeur, un bandeau plutôt qu'une grande photo */
@media (min-width: 720px) { .card__photo img { aspect-ratio: 3 / 1; } }

/* Photo du hero : cadre clair, léger relief, ratio plus large */
.hero__photo { margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: 0 22px 50px rgba(0, 0, 0, .28); }
.hero__photo img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; }

/* Bandeau photo pleine largeur de la colonne de lecture */
.photo-band { margin: 0; position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: 0 18px 44px rgba(31, 41, 51, .16); }
.photo-band img { display: block; width: 100%; height: auto; aspect-ratio: 21 / 9; object-fit: cover; }
@media (max-width: 700px) { .photo-band img { aspect-ratio: 3 / 2; } }

/* Texte posé sur le bandeau, lisible grâce au dégradé sombre */
.photo-band__text {
  position: absolute; inset: auto 0 0 0;
  padding: 2rem 1.6rem 1.5rem;
  background: linear-gradient(to top, rgba(20, 12, 8, .82), rgba(20, 12, 8, 0));
  color: #fff;
}
.photo-band__text p { margin: 0; color: rgba(255, 255, 255, .95); font-size: 1.05rem; font-weight: 500; max-width: 44rem; }

/* ==========================================================================
   PAGES LÉGALES  (colonne de lecture étroite, texte dense)
   ========================================================================== */
.legal { max-width: 46rem; }
.legal h2 { font-size: 1.3rem; margin-top: 2.4rem; padding-top: 1.4rem; border-top: 1px solid var(--line); }
.legal h2:first-of-type { margin-top: 1rem; border-top: none; padding-top: 0; }
.legal h3 { font-size: 1.02rem; margin-top: 1.4rem; }
.legal p, .legal li { font-size: .98rem; }
.legal ul { padding-left: 1.2rem; }
.legal li { margin-bottom: .4rem; }
.legal dl { margin: 0; }
.legal dt { font-weight: 600; color: var(--ink); margin-top: .7rem; }
.legal dd { margin: 0 0 .2rem; }
.legal .updated { color: var(--muted); font-size: .9rem; }
.todo {
  background: #fff8e6; border: 1px solid #f0d79a; color: #7a5800;
  padding: .15rem .5rem; border-radius: 6px; font-size: .88rem; font-weight: 600;
}

/* ==========================================================================
   FORMULAIRE
   ========================================================================== */
.field { display: grid; gap: .35rem; margin-bottom: 1rem; }
.field label { font-size: .92rem; font-weight: 600; color: var(--ink); }
.field input, .field textarea {
  font-family: inherit; font-size: 1rem; color: var(--ink);
  padding: .75rem .9rem; border: 1.5px solid var(--line); border-radius: 10px;
  background: #fff; width: 100%; transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(240, 96, 32, .14);
}
.field textarea { resize: vertical; min-height: 120px; }
.form-note { font-size: .85rem; color: var(--muted); }
.form-msg { padding: .9rem 1.1rem; border-radius: 10px; font-size: .95rem; margin-bottom: 1rem; }
.form-msg--err { background: #fdecec; color: #a62121; border: 1px solid #f5c2c2; }
.form-ok { text-align: center; padding: 2rem 1rem; }
.form-ok h3 { color: var(--orange); }
.hidden { display: none; }

/* ==========================================================================
   UTILITAIRES  (petits ajustements réutilisables — évite les styles en ligne)
   ========================================================================== */
.mt-sm { margin-top: 1.2rem; }
.mt-md { margin-top: 1.6rem; }
.mt-lg { margin-top: 2.5rem; }
.mb-sm { margin-bottom: .8rem; }
.mb-md { margin-bottom: 1.4rem; }
.pt-0 { padding-top: 0; }
.items-center { align-items: center; }
.inline { display: inline; }
.muted-sm { color: var(--muted); font-size: .9rem; }
.note-sm { font-size: .92rem; color: var(--muted); }
.btn--ghostLight { color: #fff; border-color: rgba(255, 255, 255, .45); }
.btn--ghostLight:hover { color: #fff; border-color: #fff; }
.card--tint { background: var(--orange-tint); border-color: var(--orange-light); }

/* ---------- Divers ---------- */
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 1rem; top: 1rem; background: #fff; padding: .6rem 1rem; z-index: 100; border-radius: 8px; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }

/* ---------- Bandeau cookies ---------- */
.cookie-bar {
  position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 90;
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow);
  opacity: 0; transform: translateY(12px);
  transition: opacity .25s ease, transform .25s ease;
}
.cookie-bar.is-in { opacity: 1; transform: none; }
.cookie-bar__inner {
  max-width: var(--max); margin: 0 auto;
  display: flex; align-items: center; gap: var(--gap);
  padding: 1.1rem 1.4rem; flex-wrap: wrap;
}
.cookie-bar__text { flex: 1 1 22rem; min-width: 0; }
.cookie-bar__text strong { display: block; color: var(--ink); font-size: var(--h3); margin-bottom: .2rem; }
.cookie-bar__text p { margin: 0; color: var(--body); font-size: .95rem; line-height: 1.5; }
.cookie-bar__actions { display: flex; gap: .6rem; flex-shrink: 0; }
.cookie-bar__actions .btn { padding: .7rem 1.4rem; font-size: .95rem; }

@media (max-width: 640px) {
  .cookie-bar__inner { padding: 1rem; }
  .cookie-bar__actions { width: 100%; }
  .cookie-bar__actions .btn { flex: 1; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  .cookie-bar { transition: none; }
}
