/* Little Job and Loc — feuille de style du site public.
   Les couleurs (--primaire, --accent, --soleil, --cactus, --ciel, --encre) sont
   réglées dans Admin > Personnaliser > Couleurs et injectées dans chaque page. */

@font-face { font-family: "Baloo 2"; src: url("../fonts/baloo2.woff2") format("woff2"); font-weight: 400 800; font-display: swap; }
@font-face { font-family: "Nunito"; src: url("../fonts/nunito.woff2") format("woff2"); font-weight: 200 1000; font-display: swap; }

:root {
  --primaire: #1769D1; --accent: #FF7A1A; --soleil: #FFC933; --cactus: #2BA84A; --ciel: #DDF1FF; --encre: #18245A;
  --sur-primaire: #fff; --sur-accent: #18245A; --sur-soleil: #18245A; --sur-cactus: #fff;
  --blanc: #fff;
  --texte: color-mix(in srgb, var(--encre) 86%, #000);
  --doux: color-mix(in srgb, var(--encre) 72%, #fff);
  --trait: 3px solid var(--encre);
  --ombre: 5px 5px 0 var(--encre);
  --rayon: 22px;
  --titre: "Baloo 2", "Nunito", system-ui, sans-serif;
  --corps: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 6rem; }
body { margin: 0; font-family: var(--corps); font-size: 1.0625rem; line-height: 1.6; color: var(--texte); background: var(--blanc); }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { font-family: var(--titre); color: var(--encre); line-height: 1.08; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 5.4vw, 4rem); font-weight: 800; letter-spacing: -.01em; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 800; }
h3 { font-size: 1.35rem; font-weight: 700; }
p { margin: 0 0 1em; }
a { color: var(--primaire); text-underline-offset: .18em; }
a:hover { color: var(--encre); }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.ico { flex: none; vertical-align: -.2em; }
.masque { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.evitement { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--encre); color: #fff; padding: .7rem 1rem; border-radius: 10px; }
.evitement:focus { top: 1rem; color: #fff; }

.conteneur { width: min(100% - 2.5rem, 1160px); margin-inline: auto; }
.conteneur.etroit { width: min(100% - 2.5rem, 760px); }
.centre { text-align: center; }
.section { padding-block: clamp(3rem, 7vw, 5.5rem); }
.fond-ciel { background: var(--ciel); }
.chapo { font-size: 1.2rem; color: var(--doux); max-width: 38em; }
.titre-section { margin-bottom: .35em; }
.entete-section { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1rem 2rem; margin-bottom: 2rem; }
.entete-section .chapo { margin: 0; }
.vide { font-size: 1.15rem; text-align: center; padding: 3rem 0; }

/* ---------- Boutons : on appuie dessus comme sur un gonflable ---------- */
.bouton { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; font: 800 1.05rem/1.1 var(--titre); padding: .78rem 1.35rem .7rem; border: var(--trait); border-radius: 16px; text-decoration: none; cursor: pointer; box-shadow: 0 4px 0 var(--encre); transition: transform .08s, box-shadow .08s; color: var(--encre); background: var(--blanc); }
.bouton:hover { transform: translateY(-1px); box-shadow: 0 5px 0 var(--encre); color: var(--encre); }
.bouton:active { transform: translateY(4px); box-shadow: 0 0 0 var(--encre); }
.bouton-accent, .bouton-accent:hover { background: var(--accent); color: var(--sur-accent); }
.bouton-primaire, .bouton-primaire:hover { background: var(--primaire); color: var(--sur-primaire); }
.bouton-clair { background: var(--blanc); }
.bouton-grand { font-size: 1.2rem; padding: .95rem 1.6rem .85rem; }
.bouton-large { width: 100%; }
.bouton-petit { font-size: .95rem; padding: .5rem .9rem .45rem; border-width: 2px; box-shadow: 0 3px 0 var(--encre); border-radius: 12px; }
.bouton-danger, .bouton-danger:hover { background: #fff; color: #B3261E; }

/* ---------- En-tête ---------- */
.entete { position: sticky; top: 0; z-index: 50; background: var(--blanc); border-bottom: var(--trait); }
.entete-in { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.6rem; }
.marque { display: flex; align-items: center; gap: .6rem; font: 800 1.4rem/1 var(--titre); color: var(--encre); text-decoration: none; }
.marque img { width: 84px; height: auto; }
.menu { display: flex; align-items: center; gap: 1.5rem; }
.menu ul { display: flex; gap: .3rem; }
.menu ul a { display: block; padding: .5rem .85rem; font: 700 1.1rem/1 var(--titre); color: var(--encre); text-decoration: none; border-radius: 12px; }
.menu ul a:hover { background: var(--ciel); }
.menu ul a[aria-current="page"] { background: var(--soleil); color: var(--sur-soleil); }
.menu-actions { display: flex; align-items: center; gap: 1rem; }
.lien-compte { display: inline-flex; align-items: center; gap: .35rem; font-weight: 700; color: var(--encre); text-decoration: none; }
.lien-compte:hover, .lien-compte[aria-current="page"] { text-decoration: underline; }
.burger { display: none; background: var(--blanc); border: var(--trait); border-radius: 12px; padding: .4rem; color: var(--encre); cursor: pointer; }

/* Guirlande de fanions : la signature de la fête */
.guirlande { position: absolute; left: 0; right: 0; top: 100%; height: 26px; pointer-events: none;
  background: repeating-linear-gradient(90deg, var(--accent) 0 44px, var(--soleil) 44px 88px, var(--cactus) 88px 132px, var(--primaire) 132px 176px);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='26'%3E%3Cpath d='M3 0h38L22 24z'/%3E%3C/svg%3E") 0 0 / 44px 26px repeat-x;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='26'%3E%3Cpath d='M3 0h38L22 24z'/%3E%3C/svg%3E") 0 0 / 44px 26px repeat-x; }

/* Rampe rayée, comme celle du château */
.rampe { height: 34px; border-block: var(--trait); background: repeating-linear-gradient(90deg, var(--soleil) 0 38px, var(--accent) 38px 76px); }

/* ---------- Haut de page d'accueil ---------- */
.hero { position: relative; background: var(--ciel); overflow: hidden; }
.hero-grille { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; padding-block: clamp(3.5rem, 8vw, 6rem) clamp(3rem, 6vw, 5rem); }
.hero h1 { margin-bottom: .35em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1.8rem; }
.hero-tel { margin: 1.4rem 0 0; font-weight: 700; }
.hero-tel a { font-family: var(--titre); font-size: 1.25rem; color: var(--encre); }
.hero-visuel { position: relative; justify-self: center; width: min(100%, 500px); animation: rebond 1.1s cubic-bezier(.3, 1.6, .5, 1) both; }
.hero-photo { border: var(--trait); border-width: 4px; border-radius: 34px; overflow: hidden; box-shadow: 9px 9px 0 var(--encre); transform: rotate(2deg); background: var(--blanc); }
.hero-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.etiquette { position: absolute; font: 800 1.05rem/1.1 var(--titre); padding: .6rem .95rem .5rem; border: var(--trait); border-radius: 14px; box-shadow: 4px 4px 0 var(--encre); }
.etiquette-1 { top: -1.1rem; left: -1.2rem; background: var(--soleil); color: var(--sur-soleil); transform: rotate(-7deg); }
.etiquette-2 { bottom: -1rem; right: -.6rem; background: var(--cactus); color: var(--sur-cactus); transform: rotate(4deg); }
@keyframes rebond { 0% { transform: translateY(-60px) scale(.94, 1.06); opacity: 0; } 55% { transform: translateY(0) scale(1.04, .95); opacity: 1; } 78% { transform: translateY(-9px) scale(.99, 1.01); } 100% { transform: none; } }
.nuages i { position: absolute; background: var(--blanc); border-radius: 999px; opacity: .85; }
.nuages i::before, .nuages i::after { content: ""; position: absolute; background: inherit; border-radius: 50%; }
.nuages i:nth-child(1) { width: 190px; height: 54px; top: 12%; left: 46%; }
.nuages i:nth-child(1)::before { width: 80px; height: 80px; left: 28px; top: -38px; }
.nuages i:nth-child(1)::after { width: 60px; height: 60px; right: 30px; top: -24px; }
.nuages i:nth-child(2) { width: 130px; height: 40px; top: 66%; left: 3%; }
.nuages i:nth-child(2)::before { width: 56px; height: 56px; left: 22px; top: -26px; }
.nuages i:nth-child(3) { width: 150px; height: 44px; top: 8%; right: -30px; }
.nuages i:nth-child(3)::before { width: 64px; height: 64px; left: 40px; top: -30px; }

/* ---------- Bandeau des pages intérieures ---------- */
.bandeau { background: var(--ciel); padding-block: clamp(3rem, 6vw, 4.5rem) clamp(2rem, 4vw, 3rem); border-bottom: var(--trait); }
.bandeau h1 { font-size: clamp(2.1rem, 4.6vw, 3.3rem); }
.bandeau .chapo { margin: 0; }
.fil ol { display: flex; flex-wrap: wrap; gap: .4rem; font-weight: 700; font-size: .95rem; margin-bottom: 1rem; }
.fil li + li::before { content: "/"; margin-right: .4rem; color: var(--doux); }
.fil a { color: var(--encre); }

/* ---------- Services ---------- */
.atouts { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 2rem 2.5rem; margin-top: 2rem; }
.atout-emoji { display: grid; place-items: center; width: 4.4rem; height: 4.4rem; font-size: 2.2rem; background: var(--soleil); border: var(--trait); border-radius: 50% 50% 50% 14px; margin-bottom: 1rem; }
.atouts li:nth-child(3n+2) .atout-emoji { background: color-mix(in srgb, var(--cactus) 35%, #fff); border-radius: 50% 14px 50% 50%; }
.atouts li:nth-child(3n) .atout-emoji { background: color-mix(in srgb, var(--accent) 40%, #fff); border-radius: 14px 50% 50% 50%; }
.atouts p { margin: 0; color: var(--doux); }

/* ---------- Cartes de location ---------- */
.grille-loc { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 2rem; }
.carte-loc { display: flex; flex-direction: column; background: var(--blanc); border: var(--trait); border-radius: var(--rayon); box-shadow: var(--ombre); overflow: hidden; }
.carte-loc-photo { position: relative; aspect-ratio: 4 / 3; background: var(--ciel); border-bottom: var(--trait); }
.carte-loc-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.carte-loc-emoji { display: grid; place-items: center; height: 100%; font-size: 5rem; }
.macaron { position: absolute; top: .8rem; right: .8rem; background: var(--accent); color: var(--sur-accent); font: 800 .95rem/1 var(--titre); padding: .5rem .75rem .4rem; border: var(--trait); border-radius: 999px; transform: rotate(4deg); }
.carte-loc-corps { display: flex; flex-direction: column; flex: 1; padding: 1.3rem 1.4rem 1.5rem; }
.carte-loc-titre { font-size: 1.5rem; margin-bottom: .3em; }
.carte-loc-corps > p { color: var(--doux); }
.coches { display: grid; gap: .35rem; margin-bottom: 1.3rem; }
.coches li { display: flex; gap: .5rem; align-items: baseline; }
.coches .ico { color: var(--cactus); stroke-width: 3.2; position: relative; top: .2em; }
.carte-loc-bas { margin-top: auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; }
/* Le prix, façon ticket de fête foraine */
.ticket { position: relative; margin: 0; display: inline-flex; flex-direction: column; background: var(--soleil); color: var(--sur-soleil); border: var(--trait); border-radius: 12px; padding: .35rem 1.15rem .3rem; line-height: 1.1; }
.ticket::before, .ticket::after { content: ""; position: absolute; top: 50%; width: 14px; height: 14px; margin-top: -7px; background: var(--blanc); border: var(--trait); border-radius: 50%; }
.ticket::before { left: -9px; clip-path: inset(-4px -4px -4px 50%); }
.ticket::after { right: -9px; clip-path: inset(-4px 50% -4px -4px); }
.ticket strong { font: 800 1.7rem/1.1 var(--titre); }
.ticket span { font-size: .85rem; font-weight: 700; }

/* ---------- Étapes (vraie séquence : numérotée) ---------- */
.etapes { counter-reset: etape; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 2.5rem 2rem; margin-top: 2.5rem; }
.etapes li { counter-increment: etape; position: relative; padding-top: 4.6rem; }
.etapes li::before { content: counter(etape); position: absolute; top: 0; left: 0; display: grid; place-items: center; width: 3.6rem; height: 3.6rem; font: 800 1.9rem/1 var(--titre); padding-top: .1em; color: var(--sur-primaire); background: var(--primaire); border: var(--trait); border-radius: 50%; box-shadow: 3px 3px 0 var(--encre); }
.etapes li:not(:last-child)::after { content: ""; position: absolute; top: 1.7rem; left: 4.4rem; right: -1rem; border-top: 3px dashed var(--encre); opacity: .35; }
.etapes p { margin: 0; color: var(--doux); }

/* ---------- Photos ---------- */
.mosaique, .galerie { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1.2rem; }
.mosaique a, .galerie a { display: block; border: var(--trait); border-radius: 18px; overflow: hidden; background: var(--blanc); color: var(--encre); text-decoration: none; transition: transform .12s, box-shadow .12s; }
.mosaique a:hover, .galerie a:hover { transform: translate(-2px, -2px) rotate(-.6deg); box-shadow: var(--ombre); }
.mosaique img, .galerie img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.galerie { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1.6rem; }
.galerie figure { margin: 0; }
.galerie figcaption { padding: .7rem 1rem .65rem; font: 700 1.05rem/1.25 var(--titre); border-top: var(--trait); }
.galerie li[hidden] { display: none; }
.filtres { display: flex; flex-wrap: wrap; gap: .7rem; margin-bottom: 2rem; }
.filtre { font: 700 1.05rem/1 var(--titre); padding: .6rem 1.1rem .5rem; border: var(--trait); border-radius: 999px; background: var(--blanc); color: var(--encre); cursor: pointer; }
.filtre:hover { background: var(--ciel); }
.filtre[aria-pressed="true"] { background: var(--encre); color: #fff; }
.visionneuse { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
.visionneuse::backdrop { background: color-mix(in srgb, var(--encre) 92%, transparent); }
.visionneuse[open] { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .5rem; padding: 1rem; }
.visionneuse figure { margin: 0; display: grid; justify-items: center; gap: .8rem; min-width: 0; }
.visionneuse img { max-height: 80vh; max-width: 100%; width: auto; border: 4px solid #fff; border-radius: 18px; }
.visionneuse figcaption { color: #fff; font: 700 1.2rem/1.2 var(--titre); text-align: center; }
.visionneuse button { background: #fff; color: var(--encre); border: var(--trait); border-radius: 50%; width: 3rem; height: 3rem; display: grid; place-items: center; cursor: pointer; }
.visionneuse-fermer { position: absolute; top: 1rem; right: 1rem; }

/* ---------- À propos ---------- */
.apropos { display: grid; grid-template-columns: minmax(0, 420px) 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.apropos-seul { grid-template-columns: 1fr; max-width: 760px; }
.apropos-photo { border: var(--trait); border-width: 4px; border-radius: 30px; overflow: hidden; box-shadow: -8px 8px 0 var(--cactus); transform: rotate(-2deg); }
.apropos-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.chiffres { display: flex; flex-wrap: wrap; gap: 1rem 2.5rem; margin: 1.5rem 0; }
.chiffres div { display: flex; flex-direction: column-reverse; }
.chiffres dd { margin: 0; font: 800 2.4rem/1 var(--titre); color: var(--primaire); }
.chiffres dt { font-weight: 700; }
.zones-titre { display: flex; align-items: center; gap: .4rem; margin-top: 1.6rem; }
.zones { display: flex; flex-wrap: wrap; gap: .5rem; }
.zones li { background: var(--ciel); border: 2px solid var(--encre); border-radius: 999px; padding: .2rem .8rem; font-weight: 700; }
.prose > :last-child { margin-bottom: 0; }
.prose ul { list-style: disc; padding-left: 1.3rem; margin-bottom: 1em; }
.prose li { margin-bottom: .35em; }
.prose-legale h2 { font-size: 1.6rem; margin-top: 2.2rem; }
.prose-legale { overflow-wrap: anywhere; }

/* ---------- Avis ---------- */
.avis { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.8rem; margin-top: 2rem; }
.avis figure { margin: 0; height: 100%; background: var(--blanc); border: var(--trait); border-radius: var(--rayon) var(--rayon) var(--rayon) 6px; padding: 1.5rem; }
.avis blockquote { margin: 0 0 1rem; font-size: 1.1rem; }
.avis figcaption { display: flex; flex-direction: column; }
.avis figcaption span { color: var(--doux); font-size: .95rem; }

/* ---------- Questions fréquentes ---------- */
.faq { margin-top: 1.5rem; display: grid; gap: .9rem; }
.faq details { border: var(--trait); border-radius: 18px; background: var(--blanc); }
.faq details[open] { box-shadow: var(--ombre); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 1rem; align-items: center; padding: 1rem 1.3rem .9rem; font: 700 1.2rem/1.25 var(--titre); color: var(--encre); border-radius: 15px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; display: grid; place-items: center; width: 2rem; height: 2rem; padding-top: .1em; font-size: 1.5rem; line-height: 1; background: var(--soleil); color: var(--sur-soleil); border: 2px solid var(--encre); border-radius: 50%; }
.faq details[open] summary::after { content: "–"; }
.faq details > div { padding: 0 1.3rem 1.2rem; }
.faq details > div > :last-child { margin-bottom: 0; }

/* ---------- Bandeau de fin ---------- */
.cta { background: var(--primaire); color: var(--sur-primaire); border-top: var(--trait); }
.cta h2 { color: inherit; }
.cta p { font-size: 1.15rem; max-width: 32em; margin: 0; }
.cta-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 2rem; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 1rem; }

.encart { background: var(--blanc); border: var(--trait); border-radius: var(--rayon); box-shadow: var(--ombre); padding: clamp(1.4rem, 4vw, 2.4rem); }
.encart h2 { font-size: 1.9rem; }
.encart > p:last-child { margin: 1rem 0 0; }

/* ---------- Pied de page ---------- */
.pied { background: var(--encre); color: #E8ECFA; }
.pied a { color: #fff; }
.pied a:hover { color: var(--soleil); }
.pied-grille { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2.5rem; padding-block: 3.5rem 2rem; }
.pied h2 { font-size: 1.2rem; color: var(--soleil); margin-bottom: .8rem; }
.pied-nom { font: 800 1.6rem/1.1 var(--titre); color: #fff; margin-bottom: .5rem; }
.pied-liste { display: grid; gap: .5rem; }
.pied-liste .ico { margin-right: .3rem; }
.pied-reseaux { display: flex; gap: 1rem; font-weight: 700; }
.pied-bas { border-top: 1px solid rgb(255 255 255 / .2); padding-block: 1.2rem 1.6rem; margin-bottom: 0; font-size: .92rem; }

/* ---------- Formulaires ---------- */
.champ { margin-bottom: 1.1rem; }
.champ label:not(.case) { display: block; font-weight: 800; color: var(--encre); margin-bottom: .3rem; }
.champ small { font-weight: 600; color: var(--doux); }
input[type="text"], input[type="email"], input[type="tel"], input[type="password"], input[type="date"], input[type="number"], input[type="url"], select, textarea {
  width: 100%; font: inherit; color: var(--texte); background: var(--blanc); border: 2px solid var(--encre); border-radius: 12px; padding: .7rem .9rem; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--accent); outline-offset: 1px; }
textarea { resize: vertical; min-height: 7rem; }
.champ-erreur input, .champ-erreur textarea { border-color: #B3261E; background: #FFF4F2; }
.erreur { color: #B3261E; font-weight: 700; margin: .3rem 0 0; font-size: .95rem; }
.aide { color: var(--doux); font-size: .92rem; margin: .3rem 0 0; }
.champs-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.2rem; }
.case { display: flex; gap: .7rem; align-items: flex-start; font-weight: 600; cursor: pointer; }
.case input { width: 1.35rem; height: 1.35rem; margin-top: .15rem; accent-color: var(--primaire); flex: none; }
.piege { position: absolute; left: -9999px; }
.carte-form { background: var(--blanc); border: var(--trait); border-radius: var(--rayon); box-shadow: var(--ombre); padding: clamp(1.4rem, 4vw, 2.4rem); }
.carte-form h1 { font-size: 2.3rem; }
.carte-form h2 { font-size: 1.7rem; }
.carte-compte { max-width: 470px; margin-inline: auto; }
.carte-compte-large { max-width: 680px; }
.sous-form { margin: 1.2rem 0 0; }
.sous-form + .sous-form { margin-top: .4rem; }
.alerte { border: 2px solid var(--encre); border-radius: 14px; padding: .85rem 1.1rem; margin-bottom: 1.3rem; font-weight: 700; background: var(--ciel); }
.alerte-ok { background: color-mix(in srgb, var(--cactus) 22%, #fff); }
.alerte-erreur { background: #FFE5E0; border-color: #B3261E; color: #7A1410; }

.contact { display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.coordonnees { display: grid; gap: 1.3rem; margin: 1.5rem 0 2rem; }
.coordonnees li { display: flex; gap: 1rem; align-items: flex-start; }
.coordonnees .ico { width: 3rem; height: 3rem; padding: .65rem; background: var(--soleil); color: var(--sur-soleil); border: var(--trait); border-radius: 50%; }
.coordonnees span { display: block; font-size: .92rem; font-weight: 700; color: var(--doux); }
.coordonnees a, .coordonnees div { font: 700 1.25rem/1.3 var(--titre); color: var(--encre); }
.note { background: var(--ciel); border-radius: 14px; padding: 1rem 1.2rem; }
.grand-emoji { font-size: 5rem; margin: 0; }

/* ---------- Espace client ---------- */
.espace { display: grid; grid-template-columns: 240px 1fr; gap: 2.5rem; align-items: start; }
.espace-nav { position: sticky; top: 6.5rem; display: grid; gap: .35rem; }
.espace-nav a { display: flex; align-items: center; gap: .6rem; padding: .65rem .9rem .55rem; font: 700 1.1rem/1.1 var(--titre); color: var(--encre); text-decoration: none; border: 2px solid transparent; border-radius: 12px; }
.espace-nav a:hover { background: var(--ciel); }
.espace-nav a[aria-current="page"] { background: var(--soleil); color: var(--sur-soleil); border-color: var(--encre); }
.espace-nav .deconnexion { margin-top: .8rem; color: var(--doux); font-size: 1rem; }
.espace h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); }
.tuiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.2rem; margin: 1.5rem 0 2.5rem; }
.tuile { display: block; padding: 1.2rem 1.3rem; border: var(--trait); border-radius: 18px; text-decoration: none; color: var(--encre); background: var(--blanc); }
.tuile:hover { box-shadow: var(--ombre); transform: translate(-2px, -2px); }
.tuile strong { display: block; font: 800 2.2rem/1 var(--titre); }
.tuile span { font-weight: 700; }
.fiches { display: grid; gap: 1rem; }
.fiche { display: grid; grid-template-columns: 1fr auto; gap: .6rem 1.5rem; align-items: center; padding: 1.1rem 1.3rem; border: var(--trait); border-radius: 18px; background: var(--blanc); }
.fiche h3 { margin: 0 0 .2rem; font-size: 1.25rem; }
.fiche p { margin: 0; color: var(--doux); }
.fiche-actions { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; justify-content: flex-end; }
.fiche-actions form { display: contents; }
.lignes-client { width: 100%; border-collapse: collapse; margin: .9rem 0 .6rem; font-size: .98rem; }
.lignes-client th, .lignes-client td { padding: .4rem .6rem; text-align: right; border-bottom: 1px solid color-mix(in srgb, var(--encre) 18%, #fff); }
.lignes-client th:first-child, .lignes-client td:first-child { text-align: left; padding-left: 0; }
.lignes-client thead th { font-size: .88rem; color: var(--doux); }
.lignes-client tfoot th, .lignes-client tfoot td { border-bottom: 0; border-top: 2px solid var(--encre); font: 800 1.1rem var(--titre); color: var(--encre); }
.fiche:has(.lignes-client) { grid-template-columns: 1fr; }
.fiche:has(.lignes-client) .fiche-actions { justify-content: flex-start; }
/* ---------- Signature en ligne ---------- */
.titre-signature { font-size: clamp(1.9rem, 4vw, 2.7rem); }
.resume-document { margin-bottom: 2rem; }
.resume-document h2 { font-size: 1.4rem; margin-top: 1.2rem; }
.resume-liste { margin: 0; display: grid; gap: .5rem; }
.resume-liste div { display: grid; grid-template-columns: 9rem 1fr; gap: 1rem; }
.resume-liste dt { font-weight: 800; color: var(--doux); }
.resume-liste dd { margin: 0; font-weight: 700; }
.trace-tete { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .6rem; margin-bottom: .5rem; }
.faux-label { font-weight: 800; color: var(--encre); }
.zone-signature { display: block; width: 100%; height: 220px; background: #fff; border: 3px dashed var(--encre); border-radius: 16px; touch-action: none; cursor: crosshair; }
.zone-signature.signee { border-style: solid; }
.signe-le { display: block; font-size: .92rem; font-weight: 700; color: var(--doux); }
.pastille { display: inline-block; font-weight: 800; font-size: .88rem; padding: .2rem .7rem; border-radius: 999px; border: 2px solid var(--encre); background: #fff; white-space: nowrap; }
.pastille-ok { background: color-mix(in srgb, var(--cactus) 30%, #fff); }
.pastille-attente { background: var(--soleil); color: var(--sur-soleil); }
.pastille-non { background: #FFD9D3; }
.pastille-neutre { background: #ECEEF5; }
.vide-bloc { border: 3px dashed color-mix(in srgb, var(--encre) 40%, #fff); border-radius: 18px; padding: 2rem; text-align: center; }
.vide-bloc p { margin-bottom: 1rem; }

/* ---------- Adaptation mobile ---------- */
@media (max-width: 900px) {
  .burger { display: grid; }
  .menu { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 1rem; background: var(--blanc); border-bottom: var(--trait); padding: 1rem 1.25rem 1.5rem; max-height: calc(100vh - 4.6rem); overflow: auto; }
  .menu.ouvert { display: flex; }
  .menu ul { flex-direction: column; }
  .menu ul a { font-size: 1.3rem; padding: .8rem 1rem; }
  .menu-actions { flex-direction: column; align-items: stretch; }
  .menu-actions .lien-compte { padding: .5rem 1rem; }
  .menu.ouvert ~ .guirlande, .entete:has(.menu.ouvert) .guirlande { display: none; }
  .hero-grille, .apropos, .contact, .espace { grid-template-columns: 1fr; }
  .hero-visuel { width: min(88%, 420px); }
  .apropos-photo { max-width: 340px; }
  .pied-grille { grid-template-columns: 1fr 1fr; }
  .etapes li:not(:last-child)::after { display: none; }
  .espace-nav { position: static; grid-auto-flow: column; grid-auto-columns: max-content; overflow-x: auto; padding-bottom: .5rem; }
  .espace-nav .deconnexion { margin-top: 0; }
  .visionneuse[open] { grid-template-columns: 1fr; }
  .visionneuse-nav { position: absolute; bottom: 1rem; }
  .visionneuse-nav.precedent { left: 1rem; }
  .visionneuse-nav.suivant { right: 1rem; }
}
@media (max-width: 560px) {
  body { font-size: 1rem; }
  .marque span { font-size: 1.15rem; }
  .marque img { width: 62px; }
  .champs-2, .pied-grille { grid-template-columns: 1fr; }
  .fiche { grid-template-columns: 1fr; }
  .fiche-actions { justify-content: flex-start; }
  .hero-actions .bouton, .cta-actions .bouton { width: 100%; }
  .etiquette { font-size: .9rem; }
  .etiquette-1 { left: -.6rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media print {
  .entete, .pied, .cta, .guirlande, .rampe { display: none; }
}
