/* Aura97
   Direction : lumière du jour. Fond clair, encre violet nuit tirée du logo,
   et une « aura » (champ de couleur flou et granuleux) qui change avec
   l'activité choisie. Une seule famille : Bricolage Grotesque.
   Tout le contenu est aligné à gauche sur une grille de 12 colonnes. */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("fonts/bricolage-grotesque.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}

@property --a1 { syntax: "<color>"; inherits: true; initial-value: #17c3b2; }
@property --a2 { syntax: "<color>"; inherits: true; initial-value: #7a45e0; }
@property --a3 { syntax: "<color>"; inherits: true; initial-value: #e8388f; }

@view-transition { navigation: auto; }

:root {
  color-scheme: light;
  --jour: #f7f7fa;
  --papier: #ffffff;
  --nuit: #17122e;
  --nuit-2: #241d45;
  --gris: #57526f;
  --trait: #e2e0ec;
  --outremer: #2b5ce6;

  --lagon: #17c3b2;
  --azur: #2a7df0;
  --violet: #7a45e0;
  --bougain: #e8388f;
  --mangue: #ff8a3d;
  --soleil: #ffc24a;

  --bon: #0b7a63;
  --corriger: #a45a00;
  --manquant: #c22a55;

  --police: "Bricolage Grotesque", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --doux: cubic-bezier(.2, .8, .2, 1);
  --rayon: 28px;
  --gouttiere: clamp(1.25rem, 4vw, 3rem);
  --nav: 4.75rem;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 6rem; }

body {
  margin: 0;
  background: var(--jour);
  color: var(--nuit);
  font: 400 1.0625rem/1.55 var(--police);
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

h1, h2, h3, p, ul, ol, fieldset, legend { margin: 0; padding: 0; }
ul, ol { list-style: none; }
fieldset { border: 0; min-width: 0; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }

h1, h2, h3 { text-wrap: balance; }
h1 { font-size: clamp(2.75rem, 5.9vw, 5.25rem); font-weight: 720; line-height: .98; letter-spacing: -.028em; }
h2 { font-size: clamp(2rem, 3.9vw, 3.4rem); font-weight: 680; line-height: 1.02; letter-spacing: -.032em; }
h3 { font-size: 1.3125rem; font-weight: 660; line-height: 1.2; letter-spacing: -.015em; }
p { text-wrap: pretty; }

:focus-visible { outline: 3px solid var(--outremer); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: 80rem; margin-inline: auto; padding-inline: var(--gouttiere); }

.evitement { position: fixed; left: -999px; top: .75rem; z-index: 100; background: var(--nuit); color: #fff; padding: .7rem 1rem; border-radius: 10px; }
.evitement:focus { left: .75rem; }

.chapo { font-size: clamp(1.125rem, 1.45vw, 1.3125rem); line-height: 1.45; color: var(--gris); max-width: 34rem; }

/* ---------- Boutons et liens ---------- */

.bouton {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 3.5rem; padding: 0 1.75rem;
  background: var(--nuit); color: #fff;
  border: 0; border-radius: 999px;
  font-weight: 620; font-size: 1.0625rem; letter-spacing: -.01em;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background .25s, transform .25s var(--doux), box-shadow .25s;
}
.bouton:hover { background: var(--nuit-2); transform: translateY(-2px); box-shadow: 0 14px 30px -14px rgba(23, 18, 46, .55); }
.bouton:active { transform: none; }
.bouton-petit { min-height: 2.75rem; padding: 0 1.15rem; font-size: .9375rem; }

.lien { display: inline-block; font-weight: 620; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .28em; text-decoration-color: var(--violet); transition: text-decoration-color .2s; }
.lien:hover { text-decoration-color: var(--bougain); }
.lien-clair { text-decoration-color: var(--lagon); }

/* ---------- Navigation ---------- */

.nav { position: sticky; top: 0; z-index: 50; transition: background .3s, box-shadow .3s; }
.nav-rang { display: flex; align-items: center; gap: 1.5rem; min-height: var(--nav); }
.nav.est-collee { background: rgba(247, 247, 250, .82); backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4); box-shadow: 0 1px 0 var(--trait); }

.marque { display: inline-flex; align-items: center; gap: .6rem; font-weight: 720; font-size: 1.25rem; letter-spacing: -.035em; text-decoration: none; }
.marque img { width: 36px; height: 36px; border-radius: 10px; }
.marque-claire { color: #fff; }

.nav-liens { display: flex; gap: 1.75rem; margin-left: auto; font-size: .9875rem; font-weight: 520; }
.nav-liens a { text-decoration: none; padding: .4rem 0; background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat; transition: background-size .3s var(--doux); }
.nav-liens a:hover, .nav-liens a[aria-current] { background-size: 100% 2px; }
.nav-contact { display: none; }

/* ---------- L'aura ---------- */

.aura { position: absolute; pointer-events: none; z-index: 0; filter: blur(64px); transition: --a1 .9s, --a2 .9s, --a3 .9s; }
.aura i { position: absolute; display: block; border-radius: 50%; }
.aura i:nth-child(1) { background: var(--a1); }
.aura i:nth-child(2) { background: var(--a2); }
.aura i:nth-child(3) { background: var(--a3); }

.aura-hero {
  inset: -6rem -8% 0 44%;
  opacity: .78;
  translate: calc(var(--px, 0) * 26px) calc(var(--py, 0) * 20px);
  transition: --a1 .9s, --a2 .9s, --a3 .9s, translate 1.2s var(--doux);
}
.aura-hero i:nth-child(1) { width: 52%; aspect-ratio: 1; left: 2%; top: 14%; animation: derive-a 17s ease-in-out infinite alternate; }
.aura-hero i:nth-child(2) { width: 48%; aspect-ratio: 1; right: 4%; top: 30%; animation: derive-b 21s ease-in-out infinite alternate; }
.aura-hero i:nth-child(3) { width: 40%; aspect-ratio: 1; left: 24%; bottom: 2%; animation: derive-c 19s ease-in-out infinite alternate; }

@keyframes derive-a { to { transform: translate(14%, 10%) scale(1.12); } }
@keyframes derive-b { to { transform: translate(-16%, -8%) scale(.9); } }
@keyframes derive-c { to { transform: translate(10%, -14%) scale(1.15); } }

/* ---------- Héros ---------- */

.hero { position: relative; margin-top: calc(var(--nav) * -1); padding: clamp(7rem, 10vw, 8.75rem) 0 clamp(4rem, 7vw, 6rem); overflow: clip; }
.hero::after { /* grain posé sur l'aura */
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: .5; mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 220 220' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
}

.hero:has(#m-restaurant:checked) { --a1: #ff8a3d; --a2: #e8388f; --a3: #ffc24a; }
.hero:has(#m-artisan:checked) { --a1: #2a7df0; --a2: #ffb627; --a3: #17c3b2; }
.hero:has(#m-hebergement:checked) { --a1: #17c3b2; --a2: #2a7df0; --a3: #ffd98a; }
.hero:has(#m-sante:checked) { --a1: #7a45e0; --a2: #5fc4f5; --a3: #9decd2; }

.hero-grille { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.hero-texte h1 { max-width: 11.5ch; }
.hero-texte .chapo { margin-top: 1.5rem; }

.essai { margin-top: 2rem; max-width: 33rem; display: grid; gap: 1.25rem; }
.essai label, .essai legend { font-size: .9375rem; font-weight: 620; }
.essai-champ { display: grid; gap: .55rem; }
.essai-champ input {
  width: 100%; height: 4rem; padding: 0 1.25rem;
  background: var(--papier); border: 2px solid var(--nuit); border-radius: 18px;
  font-size: 1.3125rem; font-weight: 560; letter-spacing: -.02em;
  box-shadow: 6px 6px 0 var(--a1);
  transition: box-shadow .9s, --a1 .9s;
}
.essai-champ input::placeholder { color: #9d99b3; font-weight: 420; }
.essai-champ input:focus { outline: none; box-shadow: 6px 6px 0 var(--a2); }

.metiers legend { margin-bottom: .6rem; }
.metiers { display: flex; flex-wrap: wrap; gap: .5rem; }
.metiers legend { float: left; width: 100%; }
.metiers label { position: relative; cursor: pointer; }
.metiers input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.metiers span {
  display: block; padding: .62rem 1.05rem; border-radius: 999px;
  background: rgba(255, 255, 255, .7); border: 1.5px solid var(--trait);
  font-size: .9875rem; font-weight: 560;
  transition: background .25s, color .25s, border-color .25s;
}
.metiers label:hover span { border-color: var(--nuit); }
.metiers input:checked + span { background: var(--nuit); border-color: var(--nuit); color: #fff; }
.metiers input:focus-visible + span { outline: 3px solid var(--outremer); outline-offset: 3px; }

.essai-suite { display: flex; align-items: center; gap: 1.25rem; padding-top: .25rem; }
.essai-suite p { font-size: .8125rem; line-height: 1.4; color: var(--gris); max-width: 17rem; }

/* Le téléphone */

.scene { position: relative; display: grid; justify-items: center; }
.tel {
  position: relative; width: min(19.5rem, 78vw); aspect-ratio: 312 / 640;
  padding: 10px; border-radius: 52px; background: var(--nuit);
  box-shadow: 0 50px 90px -40px color-mix(in srgb, var(--a2) 70%, var(--nuit)), 0 30px 50px -30px rgba(23, 18, 46, .5), inset 0 0 0 1.5px rgba(255, 255, 255, .14);
  animation: monte 1s var(--doux) both;
  transition: --a2 .9s;
}
.tel::before { content: ""; position: absolute; z-index: 3; top: 20px; left: 50%; width: 84px; height: 24px; margin-left: -42px; border-radius: 20px; background: var(--nuit); }
.tel-ecran { position: relative; height: 100%; border-radius: 42px; overflow: hidden; background: #fff; container-type: inline-size; }

@keyframes monte { from { opacity: 0; transform: translateY(46px) rotate(2.5deg); } }

.mq { position: absolute; inset: 0; display: flex; flex-direction: column; background: var(--mq-fond); color: var(--mq-encre); opacity: 0; visibility: hidden; transform: scale(1.03); transition: opacity .45s, visibility .45s, transform .6s var(--doux); }
.hero:has(#m-restaurant:checked) .mq-restaurant,
.hero:has(#m-artisan:checked) .mq-artisan,
.hero:has(#m-hebergement:checked) .mq-hebergement,
.hero:has(#m-sante:checked) .mq-sante { opacity: 1; visibility: visible; transform: none; }

.mq-barre { display: flex; align-items: flex-end; justify-content: space-between; gap: .75rem; padding: 58px 20px 12px; font-size: 13px; }
.mq-barre b { font-size: 16px; line-height: 1.1; letter-spacing: -.02em; overflow-wrap: anywhere; }
.mq-barre span { flex: none; font-weight: 560; }
.mq-photo { position: relative; flex: none; }
.mq-photo img { width: 100%; height: 100%; object-fit: cover; }
.mq-corps { display: flex; flex-direction: column; gap: 12px; padding: 20px 20px 24px; flex: 1; }
.mq-titre { font-size: 25px; line-height: 1.04; letter-spacing: -.03em; }
.mq-texte { font-size: 13.5px; line-height: 1.4; opacity: .82; }
.mq-bouton { align-self: flex-start; padding: 11px 18px; background: var(--mq-accent); color: var(--mq-sur-accent); font-size: 14px; font-weight: 640; }
.nom-long .mq-barre b { font-size: 13.5px; }

/* Restaurant : sombre et chaud, titres fins */
.mq-restaurant { --mq-fond: #1d1410; --mq-encre: #f7ecdd; --mq-accent: #f4a640; --mq-sur-accent: #1d1410; }
.mq-restaurant .mq-barre b { font-weight: 500; }
.mq-restaurant .mq-photo { height: 36%; }
.mq-restaurant .mq-titre { font-weight: 300; font-size: 29px; }
.mq-restaurant .mq-bouton { border-radius: 999px; }
.mq-lignes { margin-top: auto; font-size: 13px; }
.mq-lignes li { display: flex; justify-content: space-between; padding: 9px 0; border-top: 1px solid rgba(247, 236, 221, .2); }

/* Artisan : clair, dense, titres lourds */
.mq-artisan { --mq-fond: #f1f0ec; --mq-encre: #14171c; --mq-accent: #f2641a; --mq-sur-accent: #fff; }
.mq-artisan .mq-barre b { font-weight: 800; }
.mq-artisan .mq-barre span { padding: 5px 11px; border-radius: 6px; background: #14171c; color: #fff; }
.mq-artisan .mq-photo { height: 33%; }
.mq-artisan .mq-titre { font-weight: 800; font-size: 28px; letter-spacing: -.04em; }
.mq-artisan .mq-bouton { border-radius: 8px; align-self: stretch; text-align: center; padding-block: 13px; }
.mq-etiquettes { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; font-size: 12px; font-weight: 600; }
.mq-etiquettes li { padding: 6px 10px; border: 1.5px solid #14171c; border-radius: 6px; }

/* Hébergement : la photo d'abord */
.mq-hebergement { --mq-fond: #fbf6ec; --mq-encre: #0d3640; --mq-accent: #0d3640; --mq-sur-accent: #fbf6ec; }
.mq-hebergement .mq-photo { height: 50%; }
.mq-hebergement .mq-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8, 40, 48, .5), transparent 40%, transparent 55%, rgba(8, 40, 48, .65)); }
.mq-hebergement .mq-photo b { position: absolute; z-index: 1; left: 20px; right: 20px; bottom: 16px; color: #fff; font-size: 27px; font-weight: 560; line-height: 1; letter-spacing: -.035em; overflow-wrap: anywhere; }
.nom-long .mq-hebergement .mq-photo b { font-size: 21px; }
.mq-hebergement .mq-titre { font-weight: 620; font-size: 23px; }
.mq-hebergement .mq-bouton { border-radius: 14px; align-self: stretch; text-align: center; padding-block: 13px; margin-top: auto; }
.mq-dates { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; font-size: 12px; }
.mq-dates li { display: grid; gap: 2px; padding: 9px 12px; border-radius: 12px; background: #fff; box-shadow: inset 0 0 0 1px rgba(13, 54, 64, .14); }
.mq-dates b { font-size: 15px; }

/* Santé : blanc, net, créneaux */
.mq-sante { --mq-fond: #ffffff; --mq-encre: #11304b; --mq-accent: #2a6fe8; --mq-sur-accent: #fff; }
.mq-sante .mq-barre b { font-weight: 660; }
.mq-sante .mq-barre span { color: #2a6fe8; }
.mq-sante .mq-photo { height: 25%; margin: 0 14px; border-radius: 18px; overflow: hidden; }
.mq-sante .mq-titre { font-weight: 660; font-size: 24px; }
.mq-sante .mq-bouton { border-radius: 999px; align-self: stretch; text-align: center; padding-block: 13px; margin-top: auto; }
.mq-creneaux { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; font-size: 14px; font-weight: 600; }
.mq-creneaux li { padding: 10px; text-align: center; border-radius: 12px; background: #eef4ff; }
.mq-creneaux .choisi { background: #11304b; color: #fff; }

/* La demande qui arrive */
.notif {
  position: absolute; z-index: 4; left: -6.5rem; top: 23%;
  display: none; align-items: center; gap: .8rem;
  width: 15.5rem; padding: .85rem 1rem;
  background: rgba(255, 255, 255, .92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-radius: 18px; box-shadow: 0 22px 44px -18px rgba(23, 18, 46, .45), inset 0 0 0 1px rgba(23, 18, 46, .06);
  font-size: .8125rem; line-height: 1.3; color: var(--gris);
}
.notif i { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--a1); box-shadow: 0 0 0 5px color-mix(in srgb, var(--a1) 22%, transparent); }
.notif b { display: block; color: var(--nuit); font-size: .9375rem; font-weight: 660; }
.hero:has(#m-restaurant:checked) .notif-restaurant,
.hero:has(#m-artisan:checked) .notif-artisan,
.hero:has(#m-hebergement:checked) .notif-hebergement,
.hero:has(#m-sante:checked) .notif-sante { display: flex; animation: arrive .7s .55s var(--doux) both; }
@keyframes arrive { from { opacity: 0; transform: translateY(18px) scale(.94); } }

/* ---------- Blocs ---------- */

.bloc { position: relative; padding-block: clamp(4.5rem, 9vw, 8.5rem); }
.bloc-serre { padding-top: clamp(2rem, 4vw, 3.5rem); }

.titre-rang { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 2rem; align-items: end; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.titre-rang h2 { max-width: 18ch; }
.titre-rang p { color: var(--gris); max-width: 26rem; }

/* Audit */

.audit-grille { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.audit-texte { display: grid; gap: 1.25rem; justify-items: start; }
.audit-texte h2 { max-width: 13ch; margin-bottom: .5rem; }
.audit-texte p { color: var(--gris); max-width: 28rem; }

.feuille { background: var(--papier); border-radius: var(--rayon); padding: clamp(1.5rem, 3vw, 2.5rem); box-shadow: 0 40px 80px -50px rgba(23, 18, 46, .4), inset 0 0 0 1px var(--trait); rotate: 1.2deg; }
.feuille-tete { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; padding-bottom: 1.5rem; color: var(--gris); }
.feuille-tete b { display: block; color: var(--nuit); font-size: 1.5rem; font-weight: 680; letter-spacing: -.025em; line-height: 1.15; }
.feuille-fictif { flex: none; padding: .3rem .7rem; border-radius: 999px; border: 1.5px dashed #b9b5cc; font-size: .8125rem; font-weight: 560; }
.feuille-lignes li { display: grid; grid-template-columns: 9.5rem 1fr auto; gap: .5rem 1.25rem; align-items: baseline; padding: 1.05rem 0; border-top: 1px solid var(--trait); }
.feuille-lignes b { font-weight: 640; }
.feuille-lignes p { color: var(--gris); font-size: .9875rem; }
.feuille-lignes span { display: inline-flex; align-items: center; gap: .45rem; font-size: .875rem; font-weight: 640; white-space: nowrap; }
.feuille-lignes span::before { content: ""; width: .6rem; height: .6rem; border-radius: 50%; background: currentColor; }
.etat-bon span { color: var(--bon); }
.etat-corriger span { color: var(--corriger); }
.etat-manquant span { color: var(--manquant); }
.feuille-bilan { padding-top: 1.25rem; border-top: 2px solid var(--nuit); font-weight: 640; }

/* Offres */

.offres { background: var(--papier); }
.tuiles { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 1.25rem; }
.tuile { position: relative; display: flex; flex-direction: column; gap: .9rem; min-height: 26rem; padding: clamp(1.5rem, 2.6vw, 2.25rem); border-radius: var(--rayon); overflow: hidden; transition: transform .45s var(--doux); }
.tuile:hover { transform: translateY(-5px); }
.tuile h3 { font-size: clamp(1.5rem, 2.2vw, 1.9rem); font-weight: 680; letter-spacing: -.03em; line-height: 1.08; max-width: 16ch; }
.tuile h3 a { text-decoration: none; }
.tuile h3 a::after { content: ""; position: absolute; inset: 0; z-index: 2; }
.tuile > p { max-width: 25rem; color: color-mix(in srgb, var(--nuit) 74%, transparent); }
.tuile-site { grid-column: span 7; background: #e9f0ff; }
.tuile-resa { grid-column: span 5; background: #fff0e2; }
.tuile-assistant { grid-column: span 5; background: #efe9ff; }
.tuile-appli { grid-column: span 7; background: #e2f6f1; }

.frag { margin-top: auto; background: var(--papier); border-radius: 20px; padding: 1.25rem; box-shadow: 0 24px 40px -28px rgba(23, 18, 46, .35); font-size: .9375rem; }

.frag-fiche { align-self: flex-start; width: min(100%, 22rem); display: grid; gap: .35rem; }
.frag-fiche b { font-size: 1.5rem; font-weight: 700; letter-spacing: -.03em; line-height: 1.1; overflow-wrap: anywhere; }
.frag-fiche p { color: var(--bon); font-weight: 560; }
.frag-fiche div { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: .75rem; }
.frag-fiche span { padding: .5rem .9rem; border-radius: 999px; background: #e9f0ff; font-weight: 600; font-size: .875rem; }
.frag-fiche span:first-child { background: var(--azur); color: #fff; }

.frag-resa { display: grid; gap: .6rem; }
.frag-resa ul { display: flex; flex-wrap: wrap; gap: .45rem; }
.frag-resa li { padding: .5rem .8rem; border-radius: 12px; background: #fff0e2; font-weight: 600; font-size: .875rem; }
.frag-resa .choisi { background: var(--nuit); color: #fff; }

.frag-fil { display: grid; gap: .5rem; background: transparent; box-shadow: none; padding: 0; }
.bulle { max-width: 86%; padding: .65rem .95rem; border-radius: 18px; font-size: .9375rem; line-height: 1.35; }
.bulle-client { justify-self: end; background: var(--violet); color: #fff; border-bottom-right-radius: 6px; }
.bulle-assistant { justify-self: start; background: var(--papier); border-bottom-left-radius: 6px; box-shadow: 0 10px 22px -16px rgba(23, 18, 46, .4); }
.js .frag-fil .bulle { opacity: 0; transform: translateY(10px); }
.js .en-vue .bulle { animation: bulle .5s var(--doux) forwards; }
.js .en-vue .bulle:nth-child(2) { animation-delay: .9s; }
.js .en-vue .bulle:nth-child(3) { animation-delay: 2.1s; }
.js .en-vue .bulle:nth-child(4) { animation-delay: 3.1s; }
@keyframes bulle { to { opacity: 1; transform: none; } }

.frag-flux { align-self: flex-start; display: grid; gap: 0; padding: 1.1rem 1.4rem; counter-reset: flux; }
.frag-flux li { position: relative; padding: .55rem 0 .55rem 2rem; font-weight: 560; }
.frag-flux li::before { content: ""; position: absolute; left: 0; top: 50%; width: .8rem; height: .8rem; margin-top: -.4rem; border-radius: 50%; background: var(--lagon); }
.frag-flux li + li::after { content: ""; position: absolute; left: calc(.4rem - 1px); bottom: 50%; height: 100%; width: 2px; background: color-mix(in srgb, var(--lagon) 40%, transparent); z-index: -1; }
.frag-flux { isolation: isolate; }

/* Méthode (bande nuit) */

.methode { background: var(--nuit); color: #fff; overflow: clip; }
.methode .titre-rang { grid-template-columns: 1fr; }
.methode .titre-rang h2 { max-width: 22ch; }
.aura-coin { inset: auto -10% -45% 55%; height: 80%; opacity: .5; --a1: var(--violet); --a2: var(--lagon); }
.aura-coin i:nth-child(1) { width: 60%; aspect-ratio: 1; left: 0; top: 10%; }
.aura-coin i:nth-child(2) { width: 50%; aspect-ratio: 1; right: 0; top: 0; }
.methode .wrap { position: relative; z-index: 1; }

.etapes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem; counter-reset: etape; margin-bottom: 3rem; }
.etapes li { position: relative; padding-top: 4.25rem; border-top: 1px solid rgba(255, 255, 255, .22); counter-increment: etape; }
.etapes li::before { content: counter(etape); position: absolute; top: 1rem; left: 0; font-size: 2.5rem; font-weight: 300; line-height: 1; letter-spacing: -.04em; color: #b9a8ff; }
.etapes h3 { margin-bottom: .6rem; }
.etapes p { color: #c9c4e2; font-size: .9875rem; }

/* Ancrage local */

.ancrage-phrase { font-size: clamp(1.6rem, 3.3vw, 2.9rem); font-weight: 560; line-height: 1.13; letter-spacing: -.03em; max-width: 26ch; text-wrap: balance; }
.engagements { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; margin-top: clamp(3rem, 6vw, 5rem); }
.engagements li { padding-top: 1.25rem; border-top: 2px solid var(--nuit); }
.engagements h3 { margin-bottom: .5rem; }
.engagements p { color: var(--gris); max-width: 22rem; }

/* Appel final */

.appel { padding-bottom: clamp(3rem, 6vw, 5rem); }
.appel-cadre { position: relative; display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; flex-wrap: wrap; padding: clamp(2rem, 5vw, 4.5rem); border-radius: clamp(28px, 4vw, 44px); background: var(--papier); overflow: hidden; isolation: isolate; box-shadow: inset 0 0 0 1px var(--trait); }
.aura-appel { inset: -30% -10% -40% 35%; opacity: .7; z-index: -1; }
.aura-appel i:nth-child(1) { width: 45%; aspect-ratio: 1; left: 0; top: 20%; }
.aura-appel i:nth-child(2) { width: 50%; aspect-ratio: 1; left: 30%; top: 0; }
.aura-appel i:nth-child(3) { width: 42%; aspect-ratio: 1; right: 0; bottom: 0; }
.appel-texte { display: grid; gap: 1rem; }
.appel-texte h2 { max-width: 15ch; }
.appel-texte p { max-width: 26rem; color: var(--gris); }

/* ---------- Pages intérieures ---------- */

.entete { position: relative; margin-top: calc(var(--nav) * -1); padding: clamp(8.5rem, 14vw, 11.5rem) 0 clamp(2.5rem, 5vw, 4rem); overflow: clip; }
.entete .wrap { position: relative; z-index: 1; display: grid; gap: 1.5rem; }
.entete h1 { font-size: clamp(2.6rem, 6vw, 5rem); max-width: 16ch; }
.entete-sobre h1 { font-size: clamp(2.1rem, 4.2vw, 3.4rem); }
.aura-entete { inset: -40% -8% 10% 58%; opacity: .6; }
.aura-entete i:nth-child(1) { width: 60%; aspect-ratio: 1; left: 0; top: 20%; }
.aura-entete i:nth-child(2) { width: 55%; aspect-ratio: 1; right: 0; top: 0; background: var(--a3); }

/* Services */

.service { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 4fr) minmax(0, 4fr); gap: clamp(1.5rem, 4vw, 4rem); padding-block: clamp(2.25rem, 4.5vw, 3.75rem); border-top: 1px solid var(--trait); }
.service:first-child { border-top: 2px solid var(--nuit); }
.service h2 { font-size: clamp(1.75rem, 2.8vw, 2.5rem); }
.service-texte { display: grid; gap: 1.25rem; align-content: start; }
.pour-qui { color: var(--gris); font-size: .9875rem; }
.pour-qui strong { display: block; color: var(--nuit); font-weight: 640; }
.compris h3 { font-size: 1.0625rem; margin-bottom: .9rem; }
.compris li { position: relative; padding: .55rem 0 .55rem 1.75rem; border-top: 1px solid var(--trait); font-size: .9875rem; }
.compris li::before { content: ""; position: absolute; left: .15rem; top: 1.05rem; width: .7rem; height: .38rem; border-left: 2.5px solid var(--bon); border-bottom: 2.5px solid var(--bon); rotate: -45deg; }

/* Méthode détaillée */

.parcours { counter-reset: etape; max-width: 58rem; }
.parcours li { position: relative; counter-increment: etape; display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); column-gap: 1.5rem; padding-block: clamp(1.75rem, 3.5vw, 2.75rem); border-top: 1px solid var(--trait); }
.parcours li:first-child { border-top: 2px solid var(--nuit); }
.parcours li::before { content: counter(etape); grid-row: span 2; font-size: clamp(3.5rem, 6vw, 5.25rem); font-weight: 300; line-height: .82; letter-spacing: -.05em; color: var(--violet); }
.parcours h2 { font-size: clamp(1.6rem, 2.6vw, 2.25rem); margin-bottom: .75rem; }
.parcours p { color: var(--gris); max-width: 36rem; }

.encart { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(1.5rem, 4vw, 4rem); margin-top: clamp(2.5rem, 5vw, 4rem); padding: clamp(1.5rem, 3.5vw, 3rem); border-radius: var(--rayon); background: #efe9ff; }
.encart h2 { font-size: clamp(1.6rem, 2.6vw, 2.25rem); }
.encart div { display: grid; gap: 1rem; }
.encart a, .prose a, .a-cote a { text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: .22em; text-decoration-color: var(--violet); }

/* Contact */

.contact-grille { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.formulaire { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem 1.25rem; padding: clamp(1.5rem, 3.5vw, 3rem); border-radius: var(--rayon); background: var(--papier); box-shadow: 0 40px 80px -55px rgba(23, 18, 46, .4), inset 0 0 0 1px var(--trait); }
.champ { display: grid; gap: .5rem; align-content: start; }
.champ-large, .formulaire-erreurs, .essai-rappel { grid-column: 1 / -1; }
.champ label { font-size: .9375rem; font-weight: 620; }
.champ small { font-weight: 420; color: var(--gris); font-size: .8125rem; margin-left: .3rem; }
.champ input, .champ select, .champ textarea { width: 100%; min-height: 3.4rem; padding: .8rem 1rem; background: var(--jour); border: 1.5px solid var(--trait); border-radius: 14px; transition: border-color .2s, background .2s; }
.champ textarea { min-height: 9.5rem; resize: vertical; line-height: 1.45; }
.champ input:focus, .champ select:focus, .champ textarea:focus { outline: none; border-color: var(--nuit); background: var(--papier); box-shadow: 0 0 0 4px color-mix(in srgb, var(--violet) 18%, transparent); }
.champ-erreur input, .champ-erreur textarea { border-color: var(--manquant); }
.erreur { color: var(--manquant); font-size: .875rem; font-weight: 560; }
.formulaire-erreurs { padding: .9rem 1.1rem; border-radius: 14px; background: #fdecef; color: #8f1d3d; font-weight: 600; }
.essai-rappel { padding: .9rem 1.1rem; border-radius: 14px; background: #efe9ff; font-weight: 560; }
.piege { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }

.a-cote { display: grid; gap: 1.25rem; padding-top: .5rem; }
.a-cote h2 { font-size: 1.5rem; letter-spacing: -.02em; }
.a-cote ol { counter-reset: suite; display: grid; gap: .75rem; }
.a-cote li { counter-increment: suite; display: grid; grid-template-columns: 1.6rem 1fr; }
.a-cote li::before { content: counter(suite); font-weight: 680; color: var(--violet); }
.discret { font-size: .875rem; color: var(--gris); }

/* Mentions légales */

.prose { max-width: 46rem; }
.prose h2 { font-size: 1.5rem; letter-spacing: -.02em; margin: 2.75rem 0 .8rem; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose ul { color: #3d3857; margin-bottom: 1rem; }
.prose ul { display: grid; gap: .5rem; }
.prose li { position: relative; padding-left: 1.25rem; }
.prose li::before { content: ""; position: absolute; left: 0; top: .65em; width: .4rem; height: .4rem; border-radius: 50%; background: var(--violet); }
.a-completer { background: #fff1c9; padding: .1em .35em; border-radius: 4px; }

/* Pages de message (404, envoi, désinscription) */

.annonce { position: relative; margin-top: calc(var(--nav) * -1); min-height: 78svh; display: grid; align-items: center; padding: 9rem 0 5rem; overflow: clip; }
.annonce .wrap { position: relative; z-index: 1; display: grid; gap: 1.75rem; justify-items: start; }
.annonce h1 { font-size: clamp(2.5rem, 5.5vw, 4.5rem); max-width: 15ch; }

/* ---------- Pied ---------- */

.pied { background: var(--nuit); color: #c9c4e2; padding: clamp(3rem, 6vw, 5rem) 0; font-size: .9875rem; }
.pied-grille { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 3fr) minmax(0, 3fr); gap: 2.5rem; }
.pied-marque { display: grid; gap: 1rem; justify-items: start; }
.pied-marque p { max-width: 22rem; }
.pied-liens { display: grid; gap: .65rem; align-content: start; }
.pied-liens a { text-decoration: none; color: #fff; }
.pied-liens a:hover { text-decoration: underline; text-underline-offset: .25em; }
.pied :focus-visible { outline-color: var(--lagon); }

/* ---------- Écrans moyens ---------- */

@media (max-width: 960px) {
  .hero-grille { grid-template-columns: 1fr; gap: 3.5rem; }
  .hero-texte h1 { max-width: 14ch; }
  .aura-hero { inset: 42% -20% -4% -20%; }
  .notif { left: auto; right: -3.5rem; }
  .titre-rang, .audit-grille, .contact-grille, .encart { grid-template-columns: 1fr; }
  .tuile-site, .tuile-resa, .tuile-assistant, .tuile-appli { grid-column: span 12; min-height: 0; }
  .frag { margin-top: 1.5rem; }
  .etapes { grid-template-columns: 1fr 1fr; }
  .service { grid-template-columns: 1fr 1fr; }
  .service h2 { grid-column: 1 / -1; }
  .feuille { rotate: none; }
  .pied-grille { grid-template-columns: 1fr 1fr; }
  .pied-marque { grid-column: 1 / -1; }
}

/* ---------- Téléphones ---------- */

@media (max-width: 640px) {
  :root { --nav: 7rem; }
  .nav { position: static; }
  .nav-rang { flex-wrap: wrap; align-content: center; gap: .5rem 1rem; }
  .marque { font-size: 1.125rem; }
  .nav .bouton { margin-left: auto; min-height: 2.5rem; padding: 0 .95rem; font-size: .875rem; }
  .nav-liens { order: 3; width: 100%; margin-left: 0; gap: 1.5rem; font-size: .9375rem; }
  .nav-liens a { padding: .15rem 0; }
  .nav-contact { display: inline; }
  .hero { padding-top: 9.5rem; }
  .entete { padding-top: 10rem; }
  .essai-champ input { height: 3.6rem; font-size: 1.125rem; }
  .essai-suite { flex-direction: column; align-items: flex-start; }
  .essai-suite .bouton { width: 100%; }
  .essai-suite p { max-width: none; }
  .notif { right: -.5rem; width: 13.5rem; top: 21%; }
  .feuille-lignes li { grid-template-columns: 1fr auto; }
  .feuille-lignes p { grid-column: 1 / -1; grid-row: 2; }
  .etapes, .engagements, .service, .formulaire, .pied-grille { grid-template-columns: 1fr; }
  .parcours li { grid-template-columns: 3.75rem minmax(0, 1fr); column-gap: 1rem; }
  .appel-cadre .bouton { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; }
  @view-transition { navigation: none; }
}
