/* ==========================================================================
   Grilloo Clarté — adaptation de la maquette (grilloo.css, inchangée) au balisage des blocs WordPress.
   Ce fichier ne redessine rien : il fait correspondre les blocs natifs (Groupe, Titre, Paragraphe, Boutons,
   Détails, Liste…) aux classes de la maquette, et corrige ce que WordPress ajoute (barre d'admin, marges).
   ========================================================================== */

/* Planches d'icônes : chemin relatif au thème (la maquette pointait vers ../../shared/). */
.ico { background-image: url(../img/sprites/a-icons-1.webp); }
.ico--a2 { background-image: url(../img/sprites/a-icons-2.webp); }

/* Structure : les parties de modèle n'ajoutent aucune boîte. */
.site-head, .wp-site-blocks > div.wp-block-template-part:first-child { display: contents; }
.wp-site-blocks { overflow-x: clip; }
.wp-site-blocks > * { margin-block: 0; }
:where(.wp-block-group) { margin: 0; }
.site-main { display: block; }
.grilloo-logo { display: block; color: inherit; }
.wp-block-heading { margin: 0; }

/* Barre d'administration (connecté) : le menu fixe descend d'autant. */
body.admin-bar .nav { top: 48px; }
body.admin-bar.is-scrolled .nav, .is-scrolled body.admin-bar .nav { top: 42px; }
@media (max-width: 782px) { body.admin-bar .nav { top: 62px; } }
@media (max-width: 600px) { body.admin-bar .nav { top: 16px; } }

/* Titres de section : pastille « eyebrow » écrite en paragraphe (le point est dessiné en CSS). */
p.eyebrow { justify-self: start; }
.shead--center > p.eyebrow { justify-self: center; }
p.eyebrow::before { content: ''; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 0 rgba(18, 184, 203, .6); animation: ping 2.2s infinite; }
.shead--sticky { position: sticky; top: 110px; }
.pt-div { padding-top: clamp(40px, 6vw, 80px); }
.fams--short { padding-bottom: clamp(60px, 8vw, 100px); }
.about-hero h1 em, .phero h1 em { font-style: normal; color: var(--brand-600); }
.spot__copy > p.badge-new { font-size: 12.5px; color: #5a3d00; }
.cta__note { text-align: center; opacity: .85; font-weight: 600; font-size: 13.5px; }

/* Boutons natifs = .btn de la maquette (dégradé turquoise par défaut). */
.wp-block-buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.wp-block-button__link, .wp-element-button {
	--mx: 0px; --my: 0px; position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	padding: 16px 26px; border-radius: 99px; font: 700 15.5px/1 var(--body); white-space: nowrap; overflow: hidden; isolation: isolate;
	background: linear-gradient(135deg, var(--brand), var(--brand-600)); color: #fff; text-decoration: none;
	box-shadow: 0 10px 24px -8px rgba(10, 154, 174, .7), inset 0 1px 0 rgba(255, 255, 255, .35);
	transform: translate(var(--mx), var(--my)); transition: transform .45s var(--spring), box-shadow .3s, background .3s, color .3s;
}
.wp-block-button__link::before { content: ''; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: radial-gradient(circle at 50% 120%, rgba(255, 255, 255, .55), transparent 60%); transform: translateY(100%); transition: transform .5s var(--ease); }
.wp-block-button__link:hover::before { transform: none; }
.wp-block-button__link:hover { color: #fff; box-shadow: 0 18px 34px -10px rgba(10, 154, 174, .8), inset 0 1px 0 rgba(255, 255, 255, .35); }
.wp-block-button__link:active { transform: translate(var(--mx), var(--my)) scale(.96); }
.is-style-ghost .wp-block-button__link { background: rgba(255, 255, 255, .75); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); backdrop-filter: blur(8px); }
.is-style-ghost .wp-block-button__link:hover { box-shadow: inset 0 0 0 1.5px var(--brand); color: var(--brand-800); }
.is-style-light .wp-block-button__link { background: #fff; color: var(--brand-800); box-shadow: var(--shadow); }
.is-style-light .wp-block-button__link:hover { color: var(--brand-800); }
.is-style-dark .wp-block-button__link { background: var(--ink); color: #fff; box-shadow: none; }
.has-arrow .wp-block-button__link::after { content: ''; width: 1.15em; height: 1.15em; flex: none; background: currentColor; transition: transform .4s var(--spring);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat; }
.has-arrow .wp-block-button__link:hover::after { transform: translateX(4px); }
.cta__side .wp-block-buttons, .cta__side .wp-block-button, .cta__side .wp-block-button__link { width: 100%; }

/* Méga menu et pied de page : titres en <p>/<h2> (ordre des titres correct), même apparence que les h4 de la maquette. */
.mega .mega__h { margin: 0 0 12px; font: 800 12px var(--body); letter-spacing: .1em; text-transform: uppercase; color: var(--brand-600); }
.mega__foot .mega__cta { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; padding: 11px 18px; border-radius: 99px; background: var(--ink); color: #fff; font-weight: 700; font-size: 14px; transition: background .3s; }
.mega__foot .mega__cta:hover { background: var(--brand-800); color: #fff; }
.mega__foot .mega__cta svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.foot .foot__title { font: 800 12.5px var(--body); letter-spacing: .1em; text-transform: uppercase; color: var(--brand); margin: 0 0 14px; }
.foot__brand > p { font: 700 22px/1.2 var(--display); max-width: 18ch; letter-spacing: -.02em; }
.foot__base p { margin: 0; } .foot__base a:hover { color: #fff; }
.foot .wp-block-list { margin: 0; padding: 0; list-style: none; }
.socials.wp-block-social-links { display: flex; gap: 8px; margin: 16px 0 0; padding: 0; list-style: none; }
.socials .wp-social-link { margin: 0; background: transparent !important; }
.socials .wp-social-link a { display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border-radius: 50%; background: rgba(255, 255, 255, .08); color: #cfe6ea; transition: background .3s, transform .4s var(--spring); }
.socials .wp-social-link a:hover { background: var(--brand); color: #fff; transform: translateY(-4px); }
.socials .wp-social-link svg { width: 18px; height: 18px; fill: currentColor; }

/* Valeurs, services, étapes : cartes en blocs Groupe. */
.val > p.val__n { position: absolute; right: 22px; top: 14px; font: 800 64px/1 var(--display); color: var(--mist); letter-spacing: -.05em; transition: color .4s; }
.val:hover > p.val__n { color: var(--brand-100); }
.svc .wp-block-list { display: grid; gap: 6px; margin-top: 4px; font-weight: 600; font-size: 14.5px; }
.stepc > * { margin: 0; }

/* Accordéons : blocs Détails avec l'apparence des .acc__it de la maquette. */
:root { interpolate-size: allow-keywords; }
.acc .wp-block-details { border-radius: var(--r-md); background: #fff; box-shadow: var(--shadow); overflow: hidden; transition: box-shadow .3s; margin: 0; }
.acc .wp-block-details[open] { box-shadow: var(--shadow-lg); }
.acc .wp-block-details > summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 24px; cursor: pointer; list-style: none; font: 700 19px var(--display); letter-spacing: -.01em; }
.acc .wp-block-details > summary::-webkit-details-marker { display: none; }
.acc .wp-block-details > summary::after { content: ''; flex: none; width: 34px; height: 34px; border-radius: 50%; transition: background .3s, transform .5s var(--spring);
	background: var(--mist) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2306667a' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M7 12h10M12 7v10'/%3E%3C/svg%3E") center / 16px no-repeat; }
.acc .wp-block-details[open] > summary::after { transform: rotate(180deg); background: var(--brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M7 12h10'/%3E%3C/svg%3E") center / 16px no-repeat; }
.acc .wp-block-details > :not(summary) { padding: 0 24px 22px; margin: 0; color: var(--ink-2); }
.acc .wp-block-details::details-content { block-size: 0; overflow: hidden; transition: block-size .5s var(--ease), content-visibility .5s allow-discrete; }
.acc .wp-block-details[open]::details-content { block-size: auto; }

/* Fiche machine : description sur plusieurs paragraphes. */
.pd__desc p + p { margin-top: .8em; }
.pd__info h1 small { margin-right: .1em; }

/* Catalogue : liens et formulaire (fonctionne aussi sans JavaScript). */
.filters__reset[aria-disabled='true'] { opacity: .4; pointer-events: none; }
.cat .grid[hidden], .cat .list[hidden] { display: none !important; }

/* Tiroir de devis : s'ouvre aussi sans JavaScript (lien #devis), champ piège invisible, messages. */
.drawer:target { visibility: visible; transition-delay: 0s; }
.drawer:target .drawer__veil { opacity: 1; }
.drawer:target .drawer__panel { transform: none; }
.drawer__veil { display: block; }
.dform__hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.dform__error { padding: 12px 16px; border-radius: 14px; background: #fdecea; color: #8c2a1f; font-weight: 600; font-size: 14px; }

/* Page simple (mentions légales…) : texte lisible. */
.phero--page h1 { font-size: clamp(40px, 6vw, 78px); }
.phero--404 .phero__ico { width: 120px; }
.prose-sec { padding: clamp(40px, 6vw, 80px) 0 clamp(60px, 8vw, 110px); background: var(--foam); }
.prose { max-width: 760px; }
.prose > * + * { margin-top: 1em; }
.prose h2 { font-size: clamp(26px, 3vw, 36px); margin-top: 1.6em; }
.prose h3 { font-size: 22px; margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.4em; list-style: disc; }
.prose ol { list-style: decimal; }
.prose a { color: var(--brand-800); text-decoration: underline; text-underline-offset: 3px; }
.placeholder-note { padding: 18px 22px; border-radius: var(--r-md); background: #fff8e6; box-shadow: inset 0 0 0 1.5px var(--sun); font-weight: 600; }

/* Accessibilité : texte réservé aux lecteurs d'écran. */
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Carrousel : le premier élément s'aligne sur la colonne de contenu (l'aimantation le collait au bord de l'écran). */
.rail { scroll-padding-inline: max(24px, (100vw - 1240px) / 2); }

/* Carte de téléchargement du catalogue PDF : l'étiquette « PDF » est un paragraphe (la maquette colorait tous les p de .dl). */
.dl > p.dl__ico { color: #fff; margin: 0; }
.dl .wp-block-buttons { margin: 0; }
