/*
 * Pages du pack de design autres que l'accueil (tarifs, agence, études de cas, Com'promis, domaines), intégrées le 22/10/2026.
 * S'ajoute à accueil.css (jetons --ac-*, bandes, boutons, contact, bandes d'image), chargé sur les mêmes pages (functions.php).
 * Règles reprises de reference/pack-design/theme-divi/groupe-echo-divi/assets/site.css, classes préfixées « ac- ».
 * Écarts volontaires avec le pack (décisions du 22/10/2026) : accents sur fond clair en or-texte AA (--ac-ort), contours de
 * boutons et pastille « non inclus » en --ac-contour (3,7:1), pas de poussière d'or, de parallaxe ni de mots animés ;
 * images en balises <img>. Source du contenu : outils/generer-pages-pack.php.
 */
.ac-sec { --ac-contour-corrige: #8a8377; } /* utilisé par les contrastes corrigés (accueil.css, fin de fichier) */

/* Boutons en HTML (ils portent des attributs data-demande que les blocs natifs n'acceptent pas) : même rendu que .wp-block-button__link */
.ac-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; font-family: var(--titre); font-weight: 600; font-size: 15px; line-height: 1.6; padding: 16px 28px; border: 1.5px solid var(--ac-or); background: var(--ac-or); color: var(--ac-noir); text-decoration: none; transition: background .25s, color .25s, border-color .25s; }
.ac-btn:hover { background: var(--ac-orc); border-color: var(--ac-orc); color: var(--ac-noir); }
.ac-btn.ac-sm { padding: 11px 18px; font-size: 13.5px; }
.ac-btn.ac-ligne { background: transparent; color: var(--ac-encre); border-color: var(--ac-contour); }
.ac-btn.ac-ligne:hover { border-color: var(--ac-or); background: var(--ac-or); color: var(--ac-noir); }
.ac-plx .ac-btn { margin-top: 28px; }
.ac-sec .ac-lien { margin-top: 28px; }

/* Textes courants */
.ac-sec .ac-note { margin-top: 22px; color: var(--ac-gris); font-size: 14.5px; max-width: 80ch; }
.ac-sec .ac-t.ac-petit { font-size: clamp(26px, 3vw, 38px); margin-bottom: 10px; max-width: none; }
.ac-sec .ac-lead { margin: 0; }
.ac-etroit { max-width: 860px; }

/* En-tête de page (image à droite, titre H1 et introduction) */
.ac-ph { background: var(--ac-noir); color: #fff; isolation: isolate; }
.ac-ph-bg { position: absolute; top: -14%; bottom: -14%; right: -2%; width: min(64%, 940px); z-index: -2; margin: 0; }
.ac-ph-bg figure, .ac-ph-bg img { width: 100%; height: 100%; margin: 0; }
.ac-ph-bg img { object-fit: cover; object-position: center 30%; max-width: none; }
.ac-ph-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--ac-noir) 0%, rgba(11, 10, 9, .45) 40%, rgba(11, 10, 9, 0) 75%); }
.ac-ph .wrap { padding-block: clamp(80px, 10vw, 136px); }
.ac-ph-t { font-size: clamp(36px, 5.4vw, 70px); font-weight: 600; letter-spacing: -.03em; line-height: 1.05; max-width: 15ch; }
.ac-sec .ac-ph-t em { font-family: var(--italique); font-style: italic; font-weight: 500; color: var(--ac-orc); letter-spacing: 0; font-size: 1.1em; }
.ac-ph-p { max-width: 46ch; color: #d8d2c7; margin-top: 22px; font-size: 17px; }
@media (max-width: 760px) { .ac-ph-bg { width: 130%; right: -30%; opacity: .55; } }

/* Onglets des formules */
.ac-tabs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-bottom: 56px; }
.ac-tabs button { position: relative; display: block; aspect-ratio: 4/3; padding: 0; border: 0; background: var(--ac-noir); cursor: pointer; overflow: hidden; text-align: left; font: inherit; color: #fff; }
.ac-tabs img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; filter: brightness(.45) saturate(.7); transition: filter .5s; }
.ac-tabs span { position: absolute; left: 16px; right: 16px; bottom: 14px; font-family: var(--titre); font-weight: 600; font-size: clamp(15px, 1.4vw, 19px); line-height: 1.2; color: #fff; }
.ac-tabs button::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--ac-orc); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ac-ease); }
.ac-tabs button:hover img { filter: brightness(.65); }
.ac-tabs button[aria-selected="true"] img { filter: brightness(.8) saturate(1); }
.ac-tabs button[aria-selected="true"]::after { transform: scaleX(1); }
.ac-tabs button[aria-selected="true"] span { color: var(--ac-orp); }
.ac-tabs button:focus-visible { outline: 3px solid var(--ac-encre); outline-offset: 3px; }
@media (max-width: 860px) {
	.ac-tabs { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; margin-right: -20px; padding: 0 20px 4px 0; scrollbar-width: none; }
	.ac-tabs button { flex: 0 0 46%; scroll-snap-align: start; }
}
.ac-panel { scroll-margin-top: 96px; }
@media (prefers-reduced-motion: no-preference) {
	.ac-panel:not([hidden]) { animation: ac-up .5s var(--ac-ease) both; }
}

/* Tableaux comparatifs */
.ac-cmp-wrap { overflow-x: auto; margin-top: 32px; border-radius: 18px; background: #fff; box-shadow: 0 0 0 1px var(--ac-filet), 0 40px 80px -50px rgba(11, 10, 9, .45); -webkit-overflow-scrolling: touch; }
.ac-cmp-wrap:focus-visible { outline: 3px solid var(--ac-encre); outline-offset: 3px; }
.ac-cmp { width: 100%; border-collapse: separate; border-spacing: 0; min-width: 760px; font-size: 14.5px; }
.ac-cmp th, .ac-cmp td { padding: 16px 18px; text-align: center; vertical-align: middle; border-bottom: 1px solid #efebe3; }
.ac-cmp thead th, .ac-cmp thead td { background: var(--ac-noir); color: #fff; border-bottom: 0; }
.ac-cmp thead th { font-family: var(--titre); font-weight: 600; font-size: 17px; padding-block: 26px 24px; letter-spacing: -.01em; }
.ac-cmp thead th small { display: inline-block; margin-top: 8px; font-family: var(--texte); font-weight: 600; font-size: 11.5px; letter-spacing: .06em; color: var(--ac-noir); background: var(--ac-orc); padding: 3px 10px; border-radius: 99px; }
.ac-cmp thead .ac-reco { background: linear-gradient(180deg, #2a2419, var(--ac-noir)); box-shadow: inset 0 3px 0 var(--ac-or); }
.ac-cmp tbody th { text-align: left; font-family: var(--titre); font-weight: 500; font-size: 14px; color: var(--ac-encre); position: sticky; left: 0; background: #fff; min-width: 210px; z-index: 1; }
.ac-cmp tbody tr:nth-child(even) td, .ac-cmp tbody tr:nth-child(even) th { background: #faf8f4; }
.ac-cmp td.ac-reco { background: #fbf5e8 !important; box-shadow: inset 1px 0 0 #ecdcb8, inset -1px 0 0 #ecdcb8; }
.ac-cmp tbody tr:hover td, .ac-cmp tbody tr:hover th { background: #f4efe4; }
.ac-cmp tbody tr:hover td.ac-reco { background: #f7ecd5 !important; }
.ac-cmp .ac-ok { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--ac-noir); color: var(--ac-orc); font-size: 13px; font-weight: 700; }
.ac-cmp td.ac-reco .ac-ok { background: var(--ac-or); color: var(--ac-noir); }
.ac-cmp .ac-no { color: var(--ac-no); font-size: 18px; }
.ac-cmp .ac-cta-row th, .ac-cmp .ac-cta-row td { border-bottom: 0; padding-block: 24px; background: var(--ac-sable) !important; }
.ac-cmp .ac-cta-row td.ac-reco { background: #f3e7cc !important; }
.ac-cmp .ac-btn { white-space: nowrap; border-radius: 99px; }
.ac-cmp.ac-rec td { font-size: 15px; }
.ac-cmp.ac-rec thead th { font-size: 18px; }
.ac-cmp.ac-rec { min-width: 620px; }
#pourquoi .ac-btn { margin-top: 32px; }
@media (max-width: 600px) {
	.ac-cmp { min-width: 600px; font-size: 13.5px; }
	.ac-cmp tbody th { min-width: 128px; font-size: 13px; padding-inline: 12px; }
	.ac-cmp th, .ac-cmp td { padding-inline: 10px; }
	.ac-cmp-wrap { margin-right: -20px; border-radius: 18px 0 0 18px; }
}

/* Détail formule par formule */
.ac-dets { margin-top: 48px; }
.ac-dets-t { font-size: 20px; font-weight: 600; margin-bottom: 16px; }
.ac-dets-g { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; align-items: start; }
.ac-det { border: 1px solid var(--ac-filet); background: #fff; scroll-margin-top: 96px; transition: border-color .2s; }
.ac-det[open] { border-color: var(--ac-ort); }
.ac-det summary { list-style: none; cursor: pointer; padding: 18px 48px 18px 20px; position: relative; }
.ac-det summary::-webkit-details-marker { display: none; }
.ac-det summary::after { content: "+"; position: absolute; right: 20px; top: 18px; font-size: 20px; color: var(--ac-ort); transition: transform .3s; }
.ac-det[open] summary::after { transform: rotate(45deg); }
.ac-det summary b { display: block; font-family: var(--titre); font-weight: 600; font-size: 16.5px; }
.ac-det summary span { display: block; color: var(--ac-gris); font-size: 14px; margin-top: 2px; }
.ac-det summary:focus-visible { outline: 3px solid var(--ac-encre); outline-offset: -3px; }
.ac-det .ac-puces { padding: 0 20px; }
.ac-det .ac-lien { margin: 16px 20px 20px; }
@media (max-width: 900px) { .ac-dets-g { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .ac-dets-g { grid-template-columns: 1fr; } }
.ac-puces { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ac-puces li { position: relative; padding-left: 18px; font-size: 14.5px; line-height: 1.5; }
.ac-puces li::before { content: ""; position: absolute; left: 1px; top: .6em; width: 6px; height: 6px; background: var(--ac-or); transform: rotate(45deg); }

/* L'agence : équipe, métiers, leviers, dix étapes, premier mois, ADN, informations */
.ac-eq { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 24px 16px; }
.ac-eq figure { min-width: 0; }
.ac-eq img { aspect-ratio: 1/1.08; width: 100%; height: auto; max-width: none; object-fit: cover; filter: grayscale(.3); transition: filter .5s; }
.ac-eq figure:hover img { filter: none; }
.ac-eq b { display: block; font-family: var(--titre); font-weight: 600; font-size: 14px; margin-top: 12px; }
.ac-eq span { display: block; font-size: 13px; color: var(--ac-grisl); line-height: 1.4; }
@media (max-width: 1000px) { .ac-eq { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 600px) { .ac-eq { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.ac-met { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.ac-met a { position: relative; display: block; overflow: hidden; aspect-ratio: 4/3; background: var(--ac-noir); }
.ac-met img { width: 100%; height: 100%; max-width: none; object-fit: cover; filter: brightness(.62); transition: filter .5s; }
.ac-met a:hover img { filter: brightness(.8); }
.ac-met span { position: absolute; left: 18px; bottom: 16px; right: 18px; font-family: var(--titre); font-weight: 600; font-size: 18px; color: #fff; }
.ac-met a:focus-visible { outline: 3px solid var(--ac-encre); outline-offset: 3px; }
@media (max-width: 900px) { .ac-met { grid-template-columns: 1fr 1fr; } }
.ac-lev { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.ac-lev > div { background: #fff; padding: 26px 24px; min-width: 0; }
.ac-lev h3 a { font-size: 24px; font-weight: 600; letter-spacing: -.01em; }
.ac-lev h3 a:hover { color: var(--ac-ort); text-decoration: underline; text-underline-offset: 4px; }
.ac-lev ul { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 9px; }
.ac-lev li { font-size: 15px; color: var(--ac-gris); padding-left: 18px; position: relative; }
.ac-lev li::before { content: ""; position: absolute; left: 1px; top: .6em; width: 6px; height: 6px; background: var(--ac-or); transform: rotate(45deg); }
@media (max-width: 1000px) { .ac-lev { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .ac-lev { grid-template-columns: 1fr; } }
.ac-dix { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); counter-reset: e; }
.ac-dix li { counter-increment: e; padding: 24px 20px 24px 0; border-top: 1px solid var(--ac-filet); min-width: 0; }
.ac-dix li::before { content: counter(e, decimal-leading-zero); display: block; font-family: var(--titre); font-weight: 600; font-size: 14px; color: var(--ac-ort); margin-bottom: 12px; }
.ac-dix b { display: block; font-family: var(--titre); font-weight: 600; font-size: 16px; }
.ac-dix span { display: block; font-family: var(--italique); font-style: italic; font-size: 18px; color: var(--ac-gris); margin-top: 6px; }
@media (max-width: 1000px) { .ac-dix { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; } }
.ac-mois { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; position: relative; }
.ac-mois::before { content: ""; position: absolute; left: 0; right: 0; top: 8px; height: 1px; background: var(--ac-or); }
.ac-mois li { position: relative; padding-top: 36px; min-width: 0; }
.ac-mois li::before { content: ""; position: absolute; left: 0; top: 0; width: 17px; height: 17px; border-radius: 50%; background: var(--ac-or); }
.ac-mois b { display: block; font-family: var(--titre); font-weight: 600; font-size: 18px; }
.ac-mois span { display: block; color: #bdb6aa; font-size: 15px; margin-top: 8px; }
@media (max-width: 860px) { .ac-mois { grid-template-columns: 1fr 1fr; } .ac-mois::before { display: none; } }
@media (max-width: 480px) { .ac-mois { grid-template-columns: 1fr; } }
.ac-adn { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; border-top: 1px solid var(--ac-filet); padding-top: 28px; }
.ac-adn h3 { font-size: 20px; font-weight: 600; }
.ac-adn p { color: var(--ac-gris); margin-top: 10px; max-width: 34ch; }
@media (max-width: 760px) { .ac-adn { grid-template-columns: 1fr; gap: 24px; } }
.ac-infos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
.ac-infos h3 { font-size: 20px; font-weight: 600; }
.ac-infos p { color: var(--ac-gris); margin-top: 10px; font-size: 15px; }
.ac-infos .ac-lien { margin-top: 14px; }
@media (max-width: 860px) { .ac-infos { grid-template-columns: 1fr; gap: 28px; } }

/* Texte sans lien (interrupteur « olepsys ouvert » fermé) : même texte, rendu de texte courant */
.ac-sans-lien { color: var(--ac-gris); font-family: var(--titre); font-weight: 600; font-size: 14.5px; display: inline-block; margin-top: 14px; }

/* Images d'en-tête et de bandes en <picture> (un recadrage par écran) */
.ac-ph-bg picture { display: block; width: 100%; height: 100%; }
.ac-ph-bg picture img { width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: center 30%; }
.ac-plx picture { position: absolute; inset: 0; z-index: -2; margin: 0; display: block; }
.ac-plx picture img { width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: center; }
/* Pages « domaines » : image d'en-tête désaturée comme dans le pack (filtre du pack, classe « dom ») */
.ac-ph.ac-dom .ac-ph-bg img { filter: grayscale(.55) sepia(.35) brightness(.72) contrast(1.05); }

/* Pages « domaines » : situations, appel à l'action de l'en-tête, titre de section avec lien, études de cas */
.ac-sec .ac-sh .ac-lien { margin-top: 0; }
.ac-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.ac-prs { display: grid; border-top: 1px solid var(--ac-filet); }
.ac-pr { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr) auto; gap: 24px; align-items: center; padding: 24px 0; border-bottom: 1px solid var(--ac-filet); transition: padding .4s var(--ac-ease); }
.ac-pr b { font-family: var(--titre); font-weight: 600; font-size: clamp(18px, 1.8vw, 22px); letter-spacing: -.01em; }
.ac-pr span { color: var(--ac-gris); }
.ac-pr .ac-fl { color: var(--ac-ort); }
.ac-pr:hover { padding-left: 10px; }
.ac-pr:hover b { color: var(--ac-ort); }
.ac-pr:hover .ac-fl { transform: translateX(6px); }
.ac-pr:focus-visible { outline: 3px solid var(--ac-encre); outline-offset: 3px; }
@media (max-width: 700px) { .ac-pr { grid-template-columns: 1fr auto; gap: 6px 16px; } .ac-pr span { grid-column: 1; } .ac-pr .ac-fl { grid-row: 1 / 3; grid-column: 2; } }
.ac-cas-g { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 24px; }
.ac-cas { min-width: 0; }
.ac-cas figure { overflow: hidden; background: var(--ac-sable); }
.ac-cas img { aspect-ratio: 16/10; width: 100%; height: auto; max-width: none; object-fit: cover; display: block; }
.ac-cas h3, .ac-cas .ac-cas-t { font-size: 18px; font-weight: 600; margin-top: 16px; }
.ac-cas-l { color: var(--ac-grisl); font-size: 14px; margin-top: 2px; }
.ac-cas-o { margin-top: 8px; font-size: 15px; color: var(--ac-gris); }
.ac-cas-res { margin-top: 8px; font-size: 14.5px; }
.ac-cas-res b { font-family: var(--titre); font-weight: 600; color: var(--ac-ort); font-size: 17px; }
@media (max-width: 960px) { .ac-cas-g { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .ac-cas-g { grid-template-columns: 1fr; } }

/* Études de cas : filtres (boutons à bascule, aria-pressed) ; message d'état masqué à l'écran ; sans JavaScript la rangée est masquée (noscript) */
.ac-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.ac-filtres { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 40px; }
.ac-filtres button { font-family: var(--titre); font-weight: 600; font-size: 14px; padding: 10px 18px; min-height: 44px; border: 1.5px solid var(--ac-contour); background: #fff; cursor: pointer; color: var(--ac-encre); }
.ac-filtres button[aria-pressed="true"] { background: var(--ac-noir); border-color: var(--ac-noir); color: var(--ac-orp); }
.ac-filtres button:focus-visible { outline: 3px solid var(--ac-encre); outline-offset: 3px; }
.ac-cas[hidden] { display: none; }

/* Com'promis : sept jours, derniers épisodes (liens vers la chaîne, aucune vidéo intégrée), note */
.ac-note { margin-top: 22px; color: var(--ac-gris); font-size: 14.5px; max-width: 80ch; }
.ac-jours { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-top: 1px solid var(--ac-ligne); }
.ac-jours li { padding: 22px 16px 0 0; min-width: 0; }
.ac-jours li + li { padding-left: 16px; border-left: 1px solid var(--ac-ligne); }
.ac-jours b { display: block; font-size: 13px; color: var(--ac-orc); font-weight: 600; }
.ac-jours span { display: block; font-family: var(--titre); font-weight: 600; font-size: 16px; margin-top: 6px; line-height: 1.3; }
@media (max-width: 1000px) { .ac-jours { grid-template-columns: repeat(4, minmax(0, 1fr)); row-gap: 20px; } .ac-jours li:nth-child(5) { padding-left: 0; border-left: 0; } }
@media (max-width: 560px) { .ac-jours { grid-template-columns: 1fr 1fr; } .ac-jours li:nth-child(odd) { padding-left: 0; border-left: 0; } .ac-jours li:nth-child(even) { padding-left: 16px; border-left: 1px solid var(--ac-ligne); } }
.ac-eps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.ac-eps a { display: flex; gap: 16px; align-items: center; padding: 20px; border: 1px solid var(--ac-contour); text-decoration: none; color: inherit; font-family: var(--titre); font-weight: 600; font-size: 16px; line-height: 1.3; transition: border-color .2s, transform .4s var(--ac-ease); }
.ac-eps a:hover { border-color: var(--ac-or); transform: translateY(-3px); }
.ac-eps a:focus-visible { outline: 3px solid var(--ac-encre); outline-offset: 3px; }
.ac-eps small { display: block; font-family: var(--texte); font-weight: 500; font-size: 12.5px; color: var(--ac-ort); margin-bottom: 4px; }
.ac-play { flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--ac-noir); display: grid; place-items: center; }
.ac-play svg { width: 14px; height: 14px; fill: var(--ac-orc); }
@media (max-width: 900px) { .ac-eps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .ac-eps { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .ac-eps a { transition: none; } .ac-eps a:hover { transform: none; } }

/* Message adressé à une personne de l'agence (bouton « Envoyer un message » des pages Angers et Troyes) : rappel au-dessus du formulaire */
.ac-contact .ac-pour, .ge-pop .ac-pour { margin: 0 0 16px; padding: 10px 14px; border-left: 3px solid var(--or, #c9a965); background: #fbf7ee; color: var(--noir, #0b0a09); font-size: 14px; font-weight: 400; }

/* Fiches des interlocuteurs (pages agence) : « Envoyer un message » et « Prendre rendez-vous » côte à côte sous le nom, sur toute la largeur de la fiche */
.pr-c:has(.pr-btns) figcaption { display: contents; }
.pr-c:has(.pr-btns) img { grid-row: 1 / 3; }
.pr-c:has(.pr-btns) b, .pr-c:has(.pr-btns) span { grid-column: 2; }
.pr-c .pr-btns { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px; }
.pr-c .pr-btns .pr-m { margin: 0; padding: 9px 10px; font-size: 12.5px; white-space: nowrap; }
