
@font-face { font-family: "General Sans"; src: url("/polices/GeneralSans-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "General Sans"; src: url("/polices/GeneralSans-Semibold.woff2") format("woff2"); font-weight: 600; font-display: swap; }
:root { --bleu: #243CFF; --ivoire: #F3EFE6; --noir: #000; --fond: #F3F0F2; --marge: clamp(16px, 4vw, 48px); color-scheme: light; }
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; min-height: 100svh; display: grid; grid-template-rows: 1fr auto; background: var(--fond); color: var(--noir);
  font: 500 17px/1.45 "General Sans", system-ui, sans-serif; -webkit-font-smoothing: antialiased; }

s121-degrade { display: block; position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.scene { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  padding: max(48px, env(safe-area-inset-top)) var(--marge) 32px; }
.logo { margin: 0; width: min(88vw, 760px); line-height: 0; }
.devise { margin: clamp(32px, 6vh, 64px) 0 0; font-weight: 600; font-size: clamp(20px, 2.6vw, 34px); line-height: 1.2; letter-spacing: 0.01em; text-wrap: balance; }
.devise span[aria-hidden] { margin: 0 0.18em; }
.contacts { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px clamp(20px, 3vw, 40px); margin: clamp(28px, 5vh, 48px) 0 0; padding: 0; list-style: none; }
.contacts a { display: inline-block; line-height: 44px; min-height: 44px; color: var(--noir); font-size: clamp(16px, 1.3vw, 18px);
  text-decoration: underline; text-decoration-thickness: 1px; text-decoration-color: rgb(0 0 0 / 45%); text-underline-offset: 0.3em;
  transition: text-decoration-color 160ms cubic-bezier(0.23, 1, 0.32, 1); }
.contacts li:first-child a { font-weight: 600; }
.compte { opacity: 1; }
a:focus-visible, summary:focus-visible { outline: 2px solid var(--noir); outline-offset: 4px; }
@media (hover: hover) and (pointer: fine) { .contacts a:hover { text-decoration-color: var(--noir); } }
.pied { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 0 24px;
  padding: 8px var(--marge) max(16px, env(safe-area-inset-bottom)); font-size: 13px; color: var(--noir); }
.pied p { margin: 0; min-height: 44px; display: flex; align-items: center; }
.mentions { text-align: right; max-width: 560px; }
.mentions summary { min-height: 44px; display: inline-flex; align-items: center; cursor: pointer; list-style: none; text-decoration: underline; text-underline-offset: 0.3em; text-decoration-color: rgb(0 0 0 / 45%); }
.mentions summary::-webkit-details-marker { display: none; }
.mentions-texte { padding: 8px 0; } 
.mentions-texte p { min-height: 0; display: block; margin: 0 0 4px; }
.lecteur { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 599px) {
  .contacts { flex-direction: column; align-items: center; }
  .pied { flex-direction: column; align-items: center; text-align: center; }
  .mentions { text-align: center; }
}

.logo, .devise, .contacts { animation: arrivee 600ms cubic-bezier(0.23, 1, 0.32, 1) both; }
.devise { animation-delay: 120ms; }
.contacts { animation-delay: 220ms; }
@keyframes arrivee { from { opacity: 0; transform: translateY(12px); } }
@media (prefers-reduced-motion: reduce) { .logo, .devise, .contacts { animation: none; } }

.copie { position: fixed; left: 50%; bottom: max(24px, env(safe-area-inset-bottom)); margin: 0; padding: 10px 16px; transform: translate(-50%, 8px);
  background: var(--noir); color: var(--ivoire); font: 600 13px/1.2 "General Sans", system-ui, sans-serif; letter-spacing: 0.04em; pointer-events: none;
  opacity: 0; transition: opacity 180ms cubic-bezier(0.23, 1, 0.32, 1), transform 180ms cubic-bezier(0.23, 1, 0.32, 1); }
.copie[data-visible] { opacity: 1; transform: translate(-50%, 0); }
.copie:empty { padding: 0; }
@media (prefers-reduced-motion: reduce) { .copie { transition: none; transform: translate(-50%, 0); } }

.logo { position: relative; z-index: 2; animation: none; }
.logo svg { display: block; width: 100%; height: auto; overflow: visible; }

.aimants-actifs .logo svg { touch-action: none; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
:root { --sortie: cubic-bezier(0.23, 1, 0.32, 1); }

.devise, .contacts { animation: none; }
@keyframes fondu { from { opacity: 0; } }
@keyframes monte { from { opacity: 0; transform: translateY(12px); } }

@media (prefers-reduced-motion: reduce) {
  .logo svg, .devise, .contacts, .pied { animation: fondu 500ms var(--sortie) both; }
}

@media (prefers-reduced-motion: no-preference) {
  
  :root { --ep: 2.3; }
  .logo path { animation: croquis var(--f) linear, trace var(--d) cubic-bezier(0.45, 0, 0.3, 1) var(--t) backwards,
    encre 420ms var(--sortie) var(--f); }
  .logo [data-nom="1-gauche"] { --t: 60ms; --d: 300ms; --f: 1240ms; }
  .logo [data-nom="2"] { --t: 190ms; --d: 340ms; --f: 1255ms; }
  .logo [data-nom="1-droite"] { --t: 360ms; --d: 280ms; --f: 1274ms; }
  .logo [data-nom="S"] { --t: 470ms; --d: 560ms; --f: 1288ms; }
  .logo [data-nom="T"] { --t: 600ms; --d: 300ms; --f: 1304ms; }
  .logo [data-nom="D"] { --t: 670ms; --d: 400ms; --f: 1304ms; }
  .logo [data-nom="U"] { --t: 780ms; --d: 260ms; --f: 1324ms; }
  .logo [data-nom="I"] { --t: 870ms; --d: 220ms; --f: 1357ms; }
  .logo [data-nom="point"] { --t: 960ms; --d: 120ms; --f: 1346ms; }
  .logo [data-nom="P"] { --t: 1000ms; --d: 180ms; --f: 1354ms; }
  .logo [data-nom="A"] { --t: 1050ms; --d: 180ms; --f: 1360ms; }
  .logo [data-nom="R"] { --t: 1100ms; --d: 180ms; --f: 1369ms; }
  .logo [data-nom="I2"] { --t: 1150ms; --d: 120ms; --f: 1378ms; }
  .logo [data-nom="S2"] { --t: 1185ms; --d: 180ms; --f: 1382ms; }
  .logo #o { --t: 1130ms; --d: 300ms; --f: 1460ms; }
  .logo #croix { --t: 1330ms; --d: 220ms; --f: 1540ms; }
  .devise { animation: monte 520ms var(--sortie) 900ms backwards; }
  .contacts { animation: monte 520ms var(--sortie) 990ms backwards; }
  .pied { animation: fondu 520ms var(--sortie) 1080ms backwards; }
}
@media (prefers-reduced-motion: no-preference) and (max-width: 599px) { :root { --ep: 4.2; } }

@keyframes croquis {
  from, to { fill-opacity: 0; stroke: #000; stroke-width: var(--ep); stroke-linejoin: round; stroke-dasharray: 1 2; }
}
@keyframes trace { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }

@keyframes encre {
  from { fill-opacity: 0; stroke: #000; stroke-opacity: 1; stroke-width: var(--ep); stroke-linejoin: round; stroke-dasharray: 1 2; }
  55% { fill-opacity: 1; stroke-opacity: 1; }
  to { fill-opacity: 1; stroke: #000; stroke-opacity: 0; stroke-width: var(--ep); stroke-linejoin: round; stroke-dasharray: 1 2; }
}

.o-curseur-o { position: fixed; left: 0; top: 0; z-index: 1000; width: 32px; height: 48px; overflow: visible; pointer-events: none; visibility: hidden; }
.o-curseur-o.o-curseur-visible { visibility: visible; }
.o-curseur-plein { fill: var(--noir); }
.o-curseur-contour { fill: none; stroke: var(--ivoire); stroke-width: 10; stroke-opacity: 0.7; }

.o-curseur-negatif { position: fixed; inset: 0; z-index: 1000; width: 100%; height: 100%; overflow: visible; pointer-events: none; visibility: hidden; }
.o-curseur-negatif.o-curseur-visible { visibility: visible; }
.o-curseur-blanc { fill: var(--ivoire); }
.o-curseur-corps { transform-box: fill-box; transform-origin: 50% 50%; transition: transform 120ms cubic-bezier(0.23, 1, 0.32, 1); }
.o-curseur-lien .o-curseur-corps { transform: scale(1.15); }

.o-curseur-o.o-curseur-lien .o-curseur-plein { fill: var(--ivoire); }
.o-curseur-o.o-curseur-lien .o-curseur-contour { stroke: var(--noir); stroke-opacity: 1; }
.o-curseur-appui .o-curseur-corps { transform: scale(0.86); }
html.o-curseur, html.o-curseur * { cursor: none; }
html.o-curseur :is(input, textarea, [contenteditable]) { cursor: text; }
@media (prefers-reduced-motion: reduce) { .o-curseur-corps { transition: none; } }

.ecrire-ouvrir { margin: clamp(20px, 3.5vh, 32px) 0 0; min-height: 44px; padding: 0 22px; border: 1px solid var(--noir); border-radius: 0;
  background: transparent; color: var(--noir); font: 600 16px/1 "General Sans", system-ui, sans-serif; letter-spacing: 0.01em; cursor: pointer;
  transition: box-shadow 160ms var(--sortie); }
.ecrire-ouvrir[hidden] { display: none; }
@media (hover: hover) and (pointer: fine) { .ecrire-ouvrir:hover { box-shadow: inset 0 0 0 1px var(--noir); } }
.ecrire-ouvrir:active { box-shadow: inset 0 0 0 2px var(--noir); }
@media (prefers-reduced-motion: no-preference) { .ecrire-ouvrir { animation: monte 520ms var(--sortie) 1040ms backwards; } }
@media (prefers-reduced-motion: reduce) { .ecrire-ouvrir { animation: fondu 500ms var(--sortie) both; } }

@font-face { font-family: "Anton"; src: url("/polices/Anton-121.woff2") format("woff2"); font-weight: 400; font-display: swap; }
html:has(.ecrire[open]) { overflow: hidden; }

.scene, .pied { transition: opacity 240ms var(--sortie); }
html:has(.ecrire[open]) :is(.scene, .pied) { opacity: 0; visibility: hidden; transition: opacity 240ms var(--sortie), visibility 0s linear 240ms; }
.ecrire { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: transparent; color: var(--noir); overflow: auto; overscroll-behavior: contain; }
.ecrire[open] { display: flex; flex-direction: column; } 
.ecrire [hidden] { display: none !important; }
.ecrire::backdrop { background: rgb(243 240 242 / 24%); }

.ecrire-panneau { position: relative; flex: none; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); column-gap: clamp(40px, 6vw, 112px);
  align-items: start; width: min(100% - 2 * var(--marge), 1240px); min-height: 100%; margin: 0 auto; padding: clamp(72px, 10vh, 112px) 0 clamp(40px, 6vh, 72px);
  font: 500 16px/1.45 "General Sans", system-ui, sans-serif; }
.ecrire-tete { position: sticky; top: clamp(72px, 10vh, 112px); }

.ecrire-titre { margin: 0; font: 400 clamp(52px, 7.4vw, 118px)/1.15 "Anton", "Arial Narrow", sans-serif; text-transform: uppercase;
  letter-spacing: 0; text-wrap: balance; }
.ecrire-titre:focus { outline: none; }
.ecrire p { margin: 0; }
.ecrire .ecrire-intro { max-width: 30ch; margin-top: clamp(16px, 2.4vh, 28px); font-weight: 600; font-size: 18px; line-height: 1.4; text-wrap: pretty; }
.ecrire:has(.ecrire-merci:not([hidden])) .ecrire-intro { display: none; }
.ecrire-fermer { position: absolute; top: max(clamp(16px, 3vh, 32px), env(safe-area-inset-top)); right: -8px; z-index: 2; min-height: 44px; margin: 0; padding: 0 8px;
  border: 0; background: none; color: var(--noir); cursor: pointer;
  font: 600 16px/1 "General Sans", system-ui, sans-serif; text-decoration: underline; text-decoration-thickness: 1px;
  text-decoration-color: rgb(0 0 0 / 45%); text-underline-offset: 0.3em; }
@media (hover: hover) and (pointer: fine) { .ecrire-fermer:hover { text-decoration-color: var(--noir); } }

.ecrire-verre { padding: clamp(28px, 4vw, 48px); background: rgb(243 239 230 / 62%);
  -webkit-backdrop-filter: blur(22px) saturate(1.15); backdrop-filter: blur(22px) saturate(1.15); }
.ecrire-formulaire { display: grid; gap: 24px; margin: 0; }

.champ { display: grid; gap: 4px; scroll-margin-top: 24px; }
.champ label { font-weight: 600; font-size: 15px; }
.facultatif { font-weight: 500; }

.champ input:not([type="checkbox"]), .champ textarea { display: block; width: 100%; min-height: 52px; margin: 0; padding: 12px 12px 10px; border: 0;
  border-bottom: 2px solid var(--noir); border-radius: 0; background: transparent; color: var(--noir); font: 500 18px/1.4 "General Sans", system-ui, sans-serif;
  transition: border-color 160ms var(--sortie), background-color 160ms var(--sortie); }
.champ textarea { min-height: 128px; resize: vertical; background: rgb(243 239 230 / 40%); }

.champ [aria-invalid="true"] { border-color: var(--bleu); box-shadow: inset 0 0 0 1px var(--bleu); }
.champ [aria-invalid="true"]:not([type="checkbox"]) { border-bottom: 4px solid var(--bleu); box-shadow: none; padding-bottom: 8px; }

.champ-erreur { padding-top: 4px; padding-left: 16px; text-indent: -16px; font-weight: 600; font-size: 15px; line-height: 1.4; text-wrap: pretty; }
.champ-erreur::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 8px; background: var(--bleu); vertical-align: 0.08em; }
.champ-case { grid-template-columns: 24px 1fr; column-gap: 12px; align-items: start; padding-top: 4px; }
.champ-case input { width: 24px; height: 24px; margin: 1px 0 0; accent-color: var(--noir); cursor: pointer; }
.champ-case label { font-weight: 500; font-size: 15px; line-height: 1.45; padding: 2px 0 8px; cursor: pointer; }
.champ-case .champ-erreur { grid-column: 1 / -1; }
.champ-case [aria-invalid="true"] { outline: 2px solid var(--bleu); outline-offset: 2px; }
.ecrire-note { margin-top: -10px !important; font-size: 14px; text-wrap: pretty; } 
.ecrire-envoyer { justify-self: start; min-height: 56px; padding: 0 28px; border: 2px solid var(--noir); border-radius: 0; background: transparent; color: var(--noir);
  font: 400 24px/1 "Anton", "Arial Narrow", sans-serif; text-transform: uppercase; letter-spacing: 0.01em; cursor: pointer;
  transition: background-color 160ms var(--sortie); }
@media (hover: hover) and (pointer: fine) { .ecrire-envoyer:hover { background: rgb(0 0 0 / 6%); } }
.ecrire-envoyer[aria-disabled="true"] { cursor: progress; background: rgb(0 0 0 / 6%); }
.ecrire-statut { font-weight: 600; text-wrap: pretty; }
.ecrire a { color: var(--noir); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.2em; overflow-wrap: anywhere; }
.ecrire-merci-texte { font-size: 20px; line-height: 1.4; text-wrap: pretty; }
.ecrire-merci-mail { font-weight: 600; overflow-wrap: anywhere; }

.ecrire :is(button, input, textarea, a):focus-visible { outline: 2px solid var(--noir); outline-offset: 3px; }
.champ [aria-invalid="true"]:focus-visible { outline-color: var(--noir); }

.ecrire .champ input:not([type="checkbox"]):focus-visible, .ecrire .champ textarea:focus-visible { outline: none; border-bottom-width: 4px; padding-bottom: 8px;
  background: rgb(243 239 230 / 85%); }

.o-curseur-negatif.o-curseur-eteint { display: none; }

@media (max-width: 899px) {
  .ecrire-panneau { grid-template-columns: minmax(0, 1fr); width: 100%; padding: max(64px, calc(env(safe-area-inset-top) + 52px)) 0 0; }
  .ecrire-tete { position: static; padding: 0 var(--marge) 24px; }
  .ecrire-fermer { top: max(12px, env(safe-area-inset-top)); right: calc(var(--marge) - 8px); }
  .ecrire-titre { font-size: clamp(48px, 13.4vw, 88px); }
  .ecrire .ecrire-intro { font-size: 17px; }
  .ecrire-verre { padding: 24px var(--marge) max(32px, env(safe-area-inset-bottom)); }
}
@media (max-width: 599px) {
  .ecrire-panneau { grid-template-rows: auto 1fr; }
  .ecrire-envoyer { justify-self: stretch; }
}

@media (prefers-reduced-motion: no-preference) {
  .ecrire[open] .ecrire-tete { animation: monte 360ms var(--sortie) backwards; }
  .ecrire[open] .ecrire-verre { animation: monte 360ms var(--sortie) 60ms backwards; }
  .ecrire[open]::backdrop { animation: fondu 320ms var(--sortie) both; }
}

@media (prefers-reduced-motion: reduce) {
  .ecrire[open] .ecrire-panneau { animation: fondu 200ms linear backwards; }
}

@media (max-width: 599px) {
  :root { --bas-pied: max(clamp(4px, 1.5dvh, 16px), env(safe-area-inset-bottom)); }
  html { height: 100%; overflow: hidden; overscroll-behavior: none; }
  body { height: 100vh; height: 100dvh; min-height: 0; overflow: hidden; overscroll-behavior: none; }
  .scene { min-height: 0; padding: max(clamp(12px, 5dvh, 48px), env(safe-area-inset-top)) var(--marge) clamp(8px, 2.5dvh, 24px); }
  .logo { width: min(88vw, 52dvh); }
  .devise { margin-top: clamp(14px, 4.5dvh, 48px); }
  .contacts { gap: 0; margin-top: clamp(10px, 3.5dvh, 40px); }
  .ecrire-ouvrir { margin-top: clamp(10px, 3dvh, 32px); }
  
  .pied { flex-direction: row; justify-content: center; align-items: center; gap: 0 16px; padding: 0 var(--marge) var(--bas-pied); }
  
  .mentions[open] .mentions-texte { position: fixed; z-index: 3; left: 0; right: 0; bottom: calc(var(--bas-pied) + 44px);
    max-height: calc(100vh - var(--bas-pied) - 44px - max(12px, env(safe-area-inset-top)));
    max-height: calc(100dvh - var(--bas-pied) - 44px - max(12px, env(safe-area-inset-top)));
    overflow: auto; overscroll-behavior: contain; padding: 16px var(--marge); text-align: start;
    background: var(--ivoire); border-top: 1px solid var(--noir); }
  .mentions[open] .mentions-texte p { margin-bottom: 8px; }
}

@media (max-width: 599px) and (max-height: 519px) {
  html, body { height: auto; overflow: visible; }
  body { min-height: 100vh; min-height: 100dvh; }
}
