/*
 * Base du thème À ciel ouvert : variables de design, typographie et composants communs.
 * Tiré des maquettes validées (docs/accueil-v2, docs/pages). Les sections propres à chaque gabarit sont dans gabarits.css.
 *
 * Chaque variable annotée « @tweak » apparaît dans le panneau Ajuster (inc/ajuster.php) :
 *   / * @tweak Groupe | Libellé | range: min, max, pas, unité · color · select: police · toggle: oui, non * /
 */

:root {
	/* @tweak Couleurs | Rose | color */
	--aco-rose: #F7D2E5;
	/* @tweak Couleurs | Rouge | color */
	--aco-rouge: #BF3D3B;
	/* Anciennes teintes hors marque : alias du rouge et du bleu de la marque (2026-11-22). */
	--aco-rouge-fonce: var(--aco-rouge);
	/* @tweak Couleurs | Bleu pâle | color */
	--aco-ciel: #CFE6E9;
	/* @tweak Couleurs | Bleu | color */
	--aco-bleu: #0082B6;
	--aco-bleu-nuit: var(--aco-bleu);
	/* @tweak Couleurs | Texte | color */
	--aco-encre: #15283A;
	--aco-beige: #F5EBDA;
	--aco-blanc: #FFFFFF;

	/* @tweak Typographie | Police des titres | select: police */
	--font-titres: "Futura Gras", Jost, ui-sans-serif, system-ui, sans-serif;
	/* @tweak Typographie | Police du texte | select: police */
	--font-texte: Jost, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
	/* @tweak Typographie | Taille du texte | range: 15, 20, 1, px */
	--aco-texte: 17px;

	--aco-gouttiere: max(20px, env(safe-area-inset-left, 0px));
	--aco-gouttiere-d: max(20px, env(safe-area-inset-right, 0px));
	--aco-largeur: 1320px;
	--aco-rayon: 28px;
	--aco-ease: cubic-bezier(.16, 1, .3, 1);
	--aco-ressort: cubic-bezier(.34, 1.56, .64, 1);
	color-scheme: light;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: clip; }
body { margin: 0; background: var(--aco-ciel); color: var(--aco-encre); font-family: var(--font-texte); font-size: var(--aco-texte); line-height: 1.55; -webkit-font-smoothing: antialiased; }
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-titres); font-weight: 700; text-transform: uppercase; letter-spacing: -.02em; line-height: 1.08; text-wrap: balance; padding-top: .08em; }
p { margin: 0; text-wrap: pretty; }
::selection { background: var(--aco-rouge); color: var(--aco-rose); }
:focus-visible { outline: 3px solid var(--aco-bleu); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.screen-reader-text:focus { position: fixed !important; z-index: 100; left: 12px; top: 12px; width: auto; height: auto; clip: auto; background: #fff; padding: 10px 14px; border-radius: 10px; }

.aco-in { padding-left: var(--aco-gouttiere); padding-right: var(--aco-gouttiere-d); }
.aco-max { max-width: var(--aco-largeur); margin-inline: auto; }
/* Conteneur avec ses propres gouttières (en-tête, pied, haut des pages) : même largeur de contenu que les sections. */
.aco-in.aco-max { max-width: calc(var(--aco-largeur) + var(--aco-gouttiere) + var(--aco-gouttiere-d)); }
.aco-label { display: inline-block; font: 700 .76rem/1.4 var(--font-titres); text-transform: uppercase; letter-spacing: .08em; }
.aco-chapeau { font-size: clamp(1.08rem, 1.4vw, 1.25rem); max-width: 44ch; }
.aco-corneille { fill: currentColor; flex: none; aspect-ratio: 367 / 273; height: auto; }

/* ---------- boutons : un rond de couleur part du curseur et remplit le bouton ---------- */
@property --aco-r { syntax: "<length>"; inherits: false; initial-value: 0px; }
/* Une seule couche : le rond est un dégradé du fond du bouton, la bordure est dessinée à l'intérieur. Aucun liseré possible. */
.aco-btn { --base: transparent; --bord: currentColor; --h-bg: #fff; --h-fg: var(--aco-rouge); --x: 50%; --y: 50%; --aco-r: 0px; display: inline-flex; align-items: center; gap: 10px; font: 700 .86rem/1 var(--font-titres); text-transform: uppercase; letter-spacing: .05em; text-decoration: none; border-radius: 999px; padding: 17.5px 26.5px; border: 0; color: inherit; cursor: pointer; background: radial-gradient(circle at var(--x) var(--y), var(--h-bg) var(--aco-r), var(--base) calc(var(--aco-r) + .5px)); box-shadow: inset 0 0 0 2.5px var(--bord); transition: --aco-r .9s var(--aco-ease), color .45s ease; }
.aco-btn:hover, .aco-btn:focus-visible { --aco-r: 420px; color: var(--h-fg) !important; }
.aco-btn svg { width: 18px; height: 18px; transition: transform .35s var(--aco-ease); }
.aco-btn:hover svg { transform: translateX(4px); }
.aco-btn--rose { --base: var(--aco-rose); --bord: transparent; color: var(--aco-rouge); --h-bg: var(--aco-bleu-nuit); --h-fg: #fff; }
.aco-btn--rouge { --base: var(--aco-rouge); --bord: transparent; color: var(--aco-rose); --h-bg: var(--aco-bleu-nuit); --h-fg: #fff; }
.aco-btn--nuit { --base: var(--aco-bleu-nuit); --bord: transparent; color: #fff; --h-bg: var(--aco-rose); --h-fg: var(--aco-rouge); }
.aco-btn--blanc { color: #fff; --bord: #fff; --h-bg: #fff; --h-fg: var(--aco-bleu); }
.aco-btn--contour { color: var(--aco-bleu); --bord: var(--aco-bleu); --h-bg: var(--aco-bleu); --h-fg: #fff; }

/* ---------- vagues entre les sections ---------- */
.aco-vague { display: block; width: 100%; height: clamp(28px, 5vw, 70px); margin-block: -1px; }

/* ---------- pastille ronde qui tourne ---------- */
.aco-pastille { width: clamp(96px, 9vw, 130px); aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; position: relative; background: var(--aco-rose); color: var(--aco-rouge); }
.aco-pastille--bleue { background: var(--aco-bleu); color: #fff; }
.aco-pastille svg.aco-anneau { position: absolute; inset: 0; width: 100%; height: 100%; animation: aco-tourne 22s linear infinite; }
.aco-pastille svg.aco-anneau text { font: 700 11.5px var(--font-titres); letter-spacing: .18em; text-transform: uppercase; }
.aco-pastille .aco-corneille { width: 40%; height: auto; }
@keyframes aco-tourne { to { transform: rotate(360deg); } }

/* ---------- bandeau qui défile ---------- */
.aco-bandeau { position: relative; z-index: 4; background: var(--aco-bleu); color: var(--aco-ciel); overflow: hidden; white-space: nowrap; font: 700 clamp(1.1rem, 2.2vw, 1.6rem)/1 var(--font-titres); text-transform: uppercase; padding-block: 14px; transform: rotate(-2deg); margin: 20px -3% -24px; }
.aco-bandeau__piste { display: inline-flex; animation: aco-defile 32s linear infinite; }
.aco-bandeau span { display: inline-flex; align-items: center; gap: .6em; padding-right: .6em; }
.aco-bandeau .aco-corneille { width: 1.1em; height: .82em; max-width: none; color: var(--aco-rose); }
@keyframes aco-defile { to { transform: translateX(-50%); } }

/* ---------- bandeau du jour (horaire modifiable) ---------- */
.aco-jour { background: var(--aco-bleu); overflow: hidden; max-height: 80px; transition: max-height .4s var(--aco-ease), padding .4s var(--aco-ease); color: #fff; text-align: center; padding: 8px 16px; font: 600 .86rem/1.3 var(--font-texte); display: flex; justify-content: center; align-items: center; gap: 8px; flex-wrap: wrap; }
.aco-jour b { font: 700 .74rem/1 var(--font-titres); text-transform: uppercase; letter-spacing: .08em; }
.aco-jour i { width: 9px; height: 9px; border-radius: 50%; background: #6EE7A1; }

/* ---------- en-tête ---------- */
.aco-entete { position: fixed; top: var(--wp-admin--admin-bar--height, 0px); left: 0; right: 0; z-index: 40; background: var(--aco-rouge); color: #fff; transition: background-color .45s ease, box-shadow .45s ease; }
.aco-contenu { padding-top: var(--aco-entete-h, 118px); }
.aco-accueil .aco-contenu { padding-top: 0; }
.aco-entete__ligne { transition: padding .4s var(--aco-ease); }
.aco-entete.est-defile { box-shadow: 0 10px 30px -18px rgba(21, 40, 58, .6); }
.aco-entete.est-defile .aco-jour { max-height: 0; padding-block: 0; }
.aco-entete.est-defile .aco-entete__ligne { padding-block: 8px; }
.aco-entete__logo svg { transition: width .4s var(--aco-ease); }
.aco-entete.est-defile .aco-entete__logo svg { width: 84px; }
.aco-entete__ligne { display: flex; align-items: center; gap: 22px; padding-block: 14px; }
.aco-entete__logo { display: block; color: #fff; }
.aco-entete__logo svg { width: 104px; height: auto; }
.aco-menu { margin-left: auto; }
.aco-entete__panier { position: relative; flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--aco-rose); color: var(--aco-rouge); text-decoration: none; transition: background-color .3s, color .3s; }
.aco-entete__panier:hover, .aco-entete__panier:focus-visible { background: #fff; }
.aco-entete__nb { position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: var(--aco-bleu); color: #fff; font: 700 .7rem/20px var(--font-titres); text-align: center; }
.aco-menu__liste { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; justify-content: flex-end; }
.aco-menu__liste a { display: block; text-decoration: none; font: 700 .78rem/1 var(--font-titres); text-transform: uppercase; letter-spacing: .05em; padding: 10px 12px; border-radius: 999px; }
/* Menu : un trait rose se dessine sous le mot au survol et reste sous la page active (le bouton Boutique garde sa pastille). */
.aco-menu__liste > li > a, .aco-menu__ouvrir { position: relative; }
.aco-menu__liste > li:not(:last-child) > a::after, .aco-menu__ouvrir::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 3px; height: 2.5px; border-radius: 2px; background: var(--aco-rose); transform: scaleX(0); transform-origin: left center; transition: transform .45s var(--aco-ease); }
.aco-menu__ouvrir::after { right: 26px; }
.aco-menu__liste > li:not(:last-child) > a:hover::after, .aco-menu__liste > li:not(:last-child) > a:focus-visible::after, .aco-menu__ouvrir:hover::after, .aco-menu__ouvrir:focus-visible::after,
.aco-menu__liste > li.current-menu-item:not(:last-child) > a::after, .aco-menu__liste > li.current-menu-ancestor > .aco-menu__ouvrir::after, .aco-menu__liste > li.current-menu-parent > .aco-menu__ouvrir::after, .aco-menu__liste > li:not(:last-child) > a[aria-current="page"]::after { transform: scaleX(1); }
.aco-menu__liste > li.current-menu-item:not(:last-child) > a, .aco-menu__liste > li:not(:last-child) > a[aria-current="page"] { color: var(--aco-rose); }
/* Entrée lente (le trait se dessine), sortie plus vive. */
.aco-menu__liste > li:not(:last-child) > a:hover::after, .aco-menu__ouvrir:hover::after { transition-duration: 1s; }
.aco-menu__liste > li:last-child > a { transition: background-color .3s, color .3s; }
.aco-menu__liste > li:last-child > a:hover, .aco-menu__liste > li:last-child > a:focus-visible, .aco-menu__liste > li.current-menu-item:last-child > a { background: #fff; }
@media (prefers-reduced-motion: reduce) { .aco-menu__liste > li > a::after, .aco-menu__ouvrir::after { transition: none; } }
.aco-menu__liste .aco-menu__cta > a { background: var(--aco-rose); color: var(--aco-rouge); }
.aco-menu__liste > li { position: relative; }
.aco-menu__ouvrir { display: inline-flex; align-items: center; gap: 6px; font: 700 .78rem/1 var(--font-titres); text-transform: uppercase; letter-spacing: .05em; padding: 10px 12px; border-radius: 999px; background: none; border: 0; color: inherit; cursor: pointer; }
.aco-menu__ouvrir svg { width: 10px; height: 8px; transition: transform .3s var(--aco-ease); }
.aco-menu__ouvrir[aria-expanded="true"] svg { transform: rotate(180deg); }
.aco-menu__liste .sub-menu { list-style: none; margin: 0; padding: 8px; position: absolute; top: calc(100% + 6px); left: 0; min-width: 220px; background: var(--aco-rose); border-radius: 18px; box-shadow: 0 20px 40px -18px rgba(21, 40, 58, .5); display: grid; gap: 2px; opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .25s, transform .3s var(--aco-ease), visibility .25s; z-index: 50; }
.aco-menu__liste .sub-menu a { color: var(--aco-rouge); padding: 12px 14px; border-radius: 12px; }
.aco-menu__liste .sub-menu a:hover, .aco-menu__liste .sub-menu .current-menu-item > a { background: #fff; color: var(--aco-rouge); }
.aco-menu__liste li.est-ouvert > .sub-menu, .aco-menu__liste li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
@media (hover: hover) and (min-width: 1001px) { .aco-menu__liste li:hover > .sub-menu { opacity: 1; visibility: visible; transform: none; } }
.aco-menu__liste > li:last-child > a { background: var(--aco-rose); color: var(--aco-rouge); margin-left: 6px; }
.aco-entete__burger { display: none; margin-left: auto; font: 700 .78rem/1 var(--font-titres); text-transform: uppercase; letter-spacing: .06em; background: var(--aco-rose); color: var(--aco-rouge); border: 0; border-radius: 999px; padding: 11px 16px; cursor: pointer; }
.aco-accueil:not(.menu-ouvert) .aco-entete:not(.est-defile) { background: transparent; }
.aco-accueil .aco-entete:not(.est-defile) .aco-jour { background: rgba(0, 130, 182, .85); }
.aco-accueil { --aco-fond-avant-pied: var(--aco-rose); }

/* ---------- FAQ ---------- */
.aco-faq { display: grid; color: var(--aco-rouge); }
.aco-faq details { border-bottom: 2px solid currentColor; }
.aco-faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 18px; align-items: center; padding: 20px 0; font: 700 clamp(1rem, 1.5vw, 1.15rem)/1.25 var(--font-titres); text-transform: uppercase; }
.aco-faq summary::-webkit-details-marker { display: none; }
.aco-faq summary::after { content: ""; flex: none; width: 18px; height: 18px; background: linear-gradient(currentColor, currentColor) center / 100% 3px no-repeat, linear-gradient(currentColor, currentColor) center / 3px 100% no-repeat; border-radius: 2px; transform-origin: 50% 50%; transition: transform .35s var(--aco-ease); }
.aco-faq details[open] summary::after { transform: rotate(45deg); }
.aco-faq .pencil-richtext, .aco-faq details > div { padding: 0 0 22px; max-width: none; color: var(--aco-encre); }

/* ---------- pied de page ---------- */
.aco-pied { background: var(--aco-rouge); color: #fff; padding-block: 60px 40px; }
.aco-pied__grille { display: grid; grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(0, 1fr)); gap: 36px; }
.aco-pied__logo svg { width: 170px; height: auto; color: var(--aco-rose); }
.aco-pied__slogan { font: 700 1.6rem/1 var(--font-titres); text-transform: uppercase; color: var(--aco-rose); margin-top: 18px; }
.aco-pied__phrase { margin-top: 8px; opacity: .9; max-width: 28ch; }
.aco-pied h2 { font: 700 .82rem/1 var(--font-titres); letter-spacing: .08em; margin-bottom: 12px; }
.aco-pied ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.aco-pied a { text-underline-offset: 3px; }
.aco-pied__statut { display: flex; align-items: flex-start; gap: 8px; font-weight: 600; margin-top: 10px; }
.aco-pied__statut i { margin-top: .5em; }
.aco-pied__statut i { width: 9px; height: 9px; border-radius: 50%; background: #6EE7A1; flex: none; }
.aco-jour.est-ferme i, .aco-pied__statut.est-ferme i { background: var(--aco-rose); }
.aco-reseaux { display: flex; gap: 10px; margin-top: 18px; }
.aco-reseaux a { width: 42px; height: 42px; border-radius: 50%; background: var(--aco-rose); color: var(--aco-rouge); display: grid; place-items: center; transition: transform .35s var(--aco-ressort), background-color .25s; }
.aco-reseaux a:hover { transform: translateY(-3px) rotate(-6deg); background: #fff; }
.aco-reseaux svg { width: 20px; height: 20px; }
.aco-pied__bas { margin-top: 44px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .3); font-size: .85rem; opacity: .8; }

/* ---------- cellulaire ---------- */
@media (max-width: 1000px) {
	.aco-menu { display: none; }
	.aco-entete__burger { display: inline-block; }
	body.menu-ouvert .aco-menu { display: block; position: absolute; left: 0; right: 0; top: 100%; background: var(--aco-rouge); padding: 10px var(--aco-gouttiere) 20px; max-height: calc(100dvh - var(--aco-entete-h, 118px)); overflow-y: auto; }
	body.menu-ouvert .aco-menu__liste { flex-direction: column; align-items: stretch; }
	body.menu-ouvert .aco-menu__liste a, body.menu-ouvert .aco-menu__ouvrir { font-size: 1rem; padding: 14px 12px; }
	body.menu-ouvert .aco-menu__liste .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; background: rgba(255, 255, 255, .12); margin: 0 0 6px 12px; }
	body.menu-ouvert .aco-menu__liste .sub-menu a { color: #fff; }
	body.menu-ouvert .aco-menu__ouvrir svg { display: none; }
	body.menu-ouvert .aco-menu__liste > li:last-child > a { margin: 8px 0 0; text-align: center; }
	.aco-pied__grille { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
	body { font-size: 16px; }
	.aco-pied__grille { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Tout ce qui se clique montre la main (boutons de WooCommerce et des formulaires compris). */
button:not(:disabled), [type="submit"]:not(:disabled), [type="button"]:not(:disabled), .button, summary, label[for], select { cursor: pointer; }
