/* ================================================================
   ACCUEIL IMMERSIF « BANDES » (refonte 2026-10)
   Préfixe ac- : propre à page-home.php, chargé uniquement sur l'accueil.
   Couleurs et polices : identité du site (crème, bleu marine, Cormorant + Inter).
================================================================ */

.ac {
	--ac-creme: #F5F1EA;
	--ac-encre: #1C1C1C;
	--ac-doux: #5C5750;
	--ac-marine: #1F3A5F;
	--ac-nuit: #13233A;
	--ac-bleu-clair: #b9cbe4;
	--ac-carte: #ffffff;
	--ac-ligne: rgba(28, 28, 28, .14);
	--ac-serif: "Cormorant Garamond", Georgia, serif;
	--ac-chiffres: Inter, system-ui, sans-serif; /* tarifs et montants : police standard, plus lisible */
	--ac-marge: clamp(20px, 4vw, 48px);
	--ac-ease: cubic-bezier(.2, .7, .2, 1);
	background: var(--ac-creme);
	color: var(--ac-encre);
	font-size: 18px;
	line-height: 1.7;
	overflow-x: clip;
}

html.dark .ac {
	--ac-creme: #1c2d3f;
	--ac-encre: #F5F1EA;
	--ac-doux: #c2bbb4;
	--ac-marine: #c8d8f0;
	--ac-carte: #243448;
	--ac-ligne: rgba(245, 241, 234, .16);
}

.ac h1, .ac h2, .ac h3 { font-family: var(--ac-serif); font-weight: 600; margin: 0; }
.ac em { font-weight: 500; }
.ac img { display: block; max-width: 100%; }
:where(.ac) a { color: inherit; } /* sans poids : les classes de boutons gardent leur couleur */


.ac-conteneur { max-width: 1360px; margin: 0 auto; padding: 0 var(--ac-marge); }
.ac-section { padding: clamp(72px, 10vw, 140px) 0; }
.ac-sans-haut { padding-top: 0; }
.ac-deux { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 6vw, 80px); }
.ac-deux-bas { align-items: end; }
.ac-deux-bas p { margin: 0; }
.ac-deux-faq { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); }
.ac-trois { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 4vw, 48px); }
.ac-titre { font-size: clamp(30px, 3.6vw, 50px); line-height: 1.02; color: var(--ac-marine); }
.ac-titre-moyen { font-size: clamp(30px, 3.2vw, 44px); }
.ac-texte p { margin: 0 0 18px; }
.ac-plus { margin: 40px 0 0; }

/* ── Boutons et liens ── */
.ac-boutons { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 12px; }
.ac-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 56px; padding: 0 28px; border-radius: 999px; font: inherit; font-size: 16px; font-weight: 600; line-height: 1.2; text-decoration: none; cursor: pointer; transition: transform .25s var(--ac-ease), background .25s; }
.ac-btn:hover { transform: translateY(-2px); text-decoration: none; }
.ac-btn-creme { background: #F5F1EA; color: #1F3A5F; border: 0; }
.ac-btn-contour { background: transparent; color: #F5F1EA; border: 1px solid rgba(245, 241, 234, .65); font-weight: 500; }
.ac-btn-contour:hover { background: rgba(245, 241, 234, .12); }
/* Couleur verrouillée au survol : les règles a:hover des thèmes (bleu) ne doivent pas s'appliquer,
   y compris quand « Appeler » devient le lien du numéro */
.ac .ac-btn-creme, .ac .ac-btn-creme:hover, .ac .ac-btn-creme:focus { color: #1F3A5F; }
.ac .ac-btn-contour, .ac .ac-btn-contour:hover, .ac .ac-btn-contour:focus { color: #F5F1EA; }
.ac-lien { display: inline; padding: 0 0 3px; border: 0; border-bottom: 1px solid currentColor; background: none; font: inherit; font-weight: 600; color: var(--ac-marine); text-decoration: none; cursor: pointer; }
.ac-lien:hover { text-decoration: none; opacity: .8; }
.ac .ac-lien:hover, .ac .ac-lien:focus { background: transparent; color: var(--ac-marine); } /* annule le survol rose du thème parent */
/* Liens vers une page : une flèche qui glisse au survol signale qu'on peut cliquer */
a.ac-lien::after { content: "→"; display: inline-block; margin-left: .45em; font-weight: 500; transition: transform .25s var(--ac-ease); }
a.ac-lien:hover::after, a.ac-lien:focus-visible::after { transform: translateX(4px); }
.ac :focus-visible { outline: 3px solid var(--ac-bleu-clair); outline-offset: 3px; border-radius: 6px; }

/* ── Photos plein cadre ── */
.ac-photo-img, .ac picture { position: absolute; inset: 0; width: 100%; height: 100%; }
.ac-photo-img { object-fit: cover; }

/* ===================== OUVERTURE ===================== */
.ac-ouverture { position: relative; height: calc(100vh - var(--wp-admin--admin-bar--height, 0px)); height: calc(100svh - var(--wp-admin--admin-bar--height, 0px)); min-height: 560px; overflow: hidden; color: #F5F1EA; }
.ac-ouverture .ac-photo-img { transform: scale(1.06); animation: ac-zoom 14s var(--ac-ease) forwards; }
@keyframes ac-zoom { to { transform: scale(1); } }
.ac-ouverture::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(13, 24, 40, .6) 0%, rgba(13, 24, 40, 0) 60%), linear-gradient(180deg, rgba(13, 24, 40, .5) 0%, rgba(13, 24, 40, 0) 22%, rgba(13, 24, 40, .15) 50%, rgba(13, 24, 40, .85) 100%); }
.ac-ouverture-texte { position: absolute; z-index: 2; left: var(--ac-marge); right: var(--ac-marge); bottom: clamp(72px, 12vh, 130px); }
.ac-ouverture h1 { max-width: 900px; font-size: clamp(48px, 5.8vw, 84px); line-height: .93; color: #F5F1EA; text-shadow: 0 2px 30px rgba(0, 0, 0, .25); }
.ac-ouverture p { margin: 24px 0 0; max-width: 620px; font-size: clamp(17px, 1.5vw, 21px); line-height: 1.5; }

/* ===================== SERVICES EN BANDES ===================== */
.ac-bande-photo { position: relative; height: 88vh; height: 88svh; min-height: 520px; overflow: hidden; color: #F5F1EA; }
.ac-bande-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(13, 24, 40, .9) 0%, rgba(13, 24, 40, .5) 36%, rgba(13, 24, 40, 0) 64%); }
.ac-bande-titre { position: absolute; z-index: 2; left: var(--ac-marge); right: var(--ac-marge); bottom: clamp(40px, 8vh, 80px); }
/* Intitulé de section sur photo : simple texte précédé d'un trait (pas de pastille, qui se lirait comme un bouton) */
.ac-etiquette { display: inline-flex; align-items: center; gap: 12px; color: rgba(245, 241, 234, .9); font-size: 15px; font-weight: 500; letter-spacing: .02em; line-height: 1.2; }
.ac-etiquette::before { content: ""; width: 32px; height: 1px; background: currentColor; }
.ac-service-titre { margin-top: 16px !important; font-size: clamp(38px, 4.6vw, 64px); line-height: .95; color: #F5F1EA; text-shadow: 0 2px 30px rgba(0, 0, 0, .3); }
.ac-service-accroche { margin: 12px 0 0; font-family: var(--ac-serif); font-style: italic; font-size: clamp(22px, 2.4vw, 34px); line-height: 1.2; }
.ac-bande-texte { padding-top: 88px; padding-bottom: 120px; display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, .9fr); gap: 56px; align-items: start; }
.ac-sous-titre { margin: 0 0 12px !important; font-family: inherit !important; font-size: 14px !important; font-weight: 600; color: var(--ac-doux); }
.ac-taches { list-style: none; margin: 0; padding: 0; }
.ac-taches li { padding: 12px 0; border-top: 1px solid var(--ac-ligne); font-size: 16px; line-height: 1.5; }
.ac-tarif { background: var(--ac-carte); border-radius: 18px; padding: 26px; }
.ac-tarif small { display: block; font-size: 14px; color: var(--ac-doux); }
.ac-tarif strong { display: block; margin-top: 6px; font-family: var(--ac-chiffres); font-size: 34px; font-weight: 600; letter-spacing: -.02em; font-variant-numeric: tabular-nums; line-height: 1.1; color: var(--ac-marine); }
.ac-tarif p { margin: 8px 0 0; font-size: 14px; line-height: 1.5; color: var(--ac-doux); }

/* ===================== ENGAGEMENTS ===================== */
.ac-engagements { position: relative; overflow: hidden; color: #F5F1EA; }
.ac-engagements .ac-fond { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ac-engagements::before { content: ""; position: absolute; inset: 0; z-index: 1; background: rgba(19, 35, 58, .84); }
.ac-engagements .ac-conteneur { position: relative; z-index: 2; }
.ac-engagements .ac-titre { color: #F5F1EA; }
.ac-engagements .ac-trois { margin-top: 56px; }
.ac-engagement { border-top: 1px solid rgba(245, 241, 234, .3); padding-top: 24px; }
.ac-engagement h3 { font-size: 32px; color: #F5F1EA; }
.ac-engagement p { margin: 10px 0 0; font-size: 17px; line-height: 1.65; color: #e6ecf3; }

/* ===================== AIDES ===================== */
.ac-aides { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; margin-top: 56px; }
.ac-aides-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ac-aide { background: var(--ac-carte); border-radius: 18px; padding: 26px 22px; }
.ac-aide b { display: block; font-family: var(--ac-chiffres); font-size: 26px; font-weight: 600; letter-spacing: -.01em; line-height: 1.3; color: var(--ac-marine); }
.ac-aide h3 { margin-top: 4px; font-family: inherit !important; font-size: 15px !important; line-height: 1.4; }
.ac-aide p { margin: 10px 0 0; font-size: 15px; line-height: 1.55; color: var(--ac-doux); }

/* ===================== ÉTAPES ===================== */
.ac-etapes { list-style: none; margin: 48px 0 0; padding: 0; }
.ac-etape { border-top: 2px solid var(--ac-marine); padding-top: 22px; }
.ac-etape i { font-family: var(--ac-serif); font-size: 30px; color: var(--ac-marine); }
.ac-etape h3 { margin-top: 6px; font-size: 32px; }
.ac-etape p { margin: 10px 0 0; font-size: 17px; line-height: 1.65; color: var(--ac-doux); }

/* ===================== ZONES ===================== */
.ac-zones-bloc { border-top: 1px solid var(--ac-ligne); padding-top: 56px; }
.ac-zones { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; align-content: flex-start; }
.ac-zones li { padding: 10px 16px; border-radius: 999px; border: 1px solid var(--ac-ligne); font-size: 15px; line-height: 1.3; }

/* ===================== LE MAG ===================== */
.ac-mag { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; margin-top: 40px; }
.ac-mag a { text-decoration: none; }
.ac-mag-image { overflow: hidden; border-radius: 18px; aspect-ratio: 4 / 3; background: rgba(28, 28, 28, .06); }
.ac-mag-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ac-ease); }
.ac-mag a:hover img { transform: scale(1.04); }
.ac-mag small { display: block; margin-top: 18px; font-size: 13px; font-weight: 600; color: var(--ac-marine); }
.ac-mag h3 { margin-top: 6px; font-size: 28px; line-height: 1.15; }

/* ===================== QUESTIONS ===================== */
.ac-faq details { border-top: 1px solid var(--ac-ligne); padding: 22px 0; }
.ac-faq details:last-child { border-bottom: 1px solid var(--ac-ligne); }
.ac-faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 24px; font-family: var(--ac-serif); font-size: 28px; font-weight: 600; line-height: 1.2; }
.ac-faq summary::-webkit-details-marker { display: none; }
/* ===================== AVIS CLIENTS (inc/avis.php) ===================== */
.av-carrousel { margin-top: 48px; }
/* Mêmes vignettes, en carrousel : piste horizontale qui défile (au doigt, au pavé tactile, aux flèches) */
.av-grille { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; overscroll-behavior-x: contain; }
.av-grille::-webkit-scrollbar { display: none; }
.av-grille:focus-visible { outline: 2px solid var(--ac-marine); outline-offset: 4px; border-radius: 18px; }
.av-carte { flex: 0 0 calc((100% - 32px) / 3); scroll-snap-align: start; display: flex; flex-direction: column; margin: 0; background: var(--ac-carte); border-radius: 18px; padding: 28px 26px; }
.av-commandes { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 28px; }
.av-commandes[hidden] { display: none; }
.av-fleche { width: 48px; height: 48px; display: grid; place-items: center; padding: 0; border-radius: 50%; border: 1px solid var(--ac-ligne); background: var(--ac-carte); color: var(--ac-marine); cursor: pointer; transition: background .25s, color .25s, opacity .25s; }
.ac .av-fleche:hover:not(:disabled), .ac .av-fleche:focus:not(:disabled) { background: var(--ac-marine); color: #F5F1EA; border-color: var(--ac-marine); }
html.dark .ac .av-fleche:hover:not(:disabled) { color: #13233A; }
.ac .av-fleche:disabled, .ac .av-fleche:disabled:hover, .ac .av-fleche:disabled:focus { opacity: .35; cursor: default; background: var(--ac-carte); color: var(--ac-marine); border-color: var(--amb-bord, var(--ac-ligne)); } /* inactive : pas de survol (sinon le rose du thème parent) */
.av-fleche svg { width: 20px; height: 20px; }
.av-points { display: flex; gap: 8px; }
.av-points button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 999px; background: var(--ac-ligne); cursor: pointer; transition: width .35s var(--ac-ease), background .35s; }
.ac .av-points button:hover, .ac .av-points button:focus { background: var(--ac-doux); }
.ac .av-points button[aria-current="true"] { width: 24px; background: var(--ac-marine); }
.av-etoiles { display: flex; gap: 3px; color: #C9A227; }
.av-etoiles svg { width: 18px; height: 18px; }
.av-etoiles .vide { color: var(--ac-ligne); }
.av-texte { margin: 16px 0 0; padding: 0; border: 0; font-family: var(--ac-chiffres); font-size: 17px; font-style: normal; font-weight: 400; line-height: 1.65; color: var(--ac-encre); } /* Inter droite : plus lisible que le Cormorant italique (choix du client) */
.av-pied { margin-top: auto; padding-top: 20px; font-size: 14px; color: var(--ac-doux); }
.av-pied b { display: block; font-size: 15px; font-weight: 600; color: var(--ac-encre); }
.av-source { display: block; margin-top: 8px; font-size: 13px; }
.ac .av-source a { color: var(--ac-marine); text-decoration: underline; text-underline-offset: 3px; }
.av-note { margin: 20px 0 0; font-size: 13px; color: var(--ac-doux); }
.av-plus { margin: 20px 0 0; }
@media (prefers-reduced-motion: reduce) { .av-grille { scroll-behavior: auto; } }
@media (max-width: 1100px) { .av-carte { flex-basis: calc((100% - 16px) / 2); } }
@media (max-width: 760px) { .av-carte { flex-basis: 86%; } .av-texte { font-size: 16px; } }

/* Date de mise à jour, sous les questions fréquentes */
.ac-maj { margin: 24px 0 0; font-size: 13px; color: var(--ac-doux); }
.ac-faq summary::after { content: "+"; flex: none; display: grid; place-items: center; width: 1.2em; height: 1.2em; line-height: 1; font-family: Inter, sans-serif; font-weight: 300; transform-origin: 50% 50%; transition: transform .3s; } /* boîte carrée fixe : la croix tourne sur place, sans se décaler */
.ac-faq details[open] summary::after { transform: rotate(45deg); }
.ac-faq p { margin: 14px 0 0; font-size: 17px; line-height: 1.7; color: var(--ac-doux); }

/* ===================== DEVIS ===================== */
.ac-devis { padding: clamp(72px, 10vw, 140px) 0 clamp(96px, 12vw, 160px); background: var(--ac-creme); border-top: 1px solid var(--ac-ligne); }
.ac-devis-tete { max-width: 760px; margin: 0 auto 40px; text-align: center; }
.ac-devis-tete p { margin: 18px 0 0; color: var(--ac-doux); }
.ac-devis #ab-tunnel { max-width: 880px; margin: 0 auto; }

/* ===================== BOUTON PERSISTANT ===================== */
.ac-cta-flottant { position: fixed; z-index: 80; left: 50%; bottom: 24px; transform: translate(-50%, 160%); display: flex; align-items: center; gap: 14px; min-height: 56px; padding: 0 8px 0 26px; border-radius: 999px; background: #1F3A5F; color: #F5F1EA !important; font-size: 16px; font-weight: 600; text-decoration: none; white-space: nowrap; box-shadow: 0 20px 50px rgba(13, 24, 40, .35); transition: transform .5s var(--ac-ease); }
.ac-cta-flottant span { width: 40px; height: 40px; border-radius: 50%; background: #F5F1EA; color: #1F3A5F; display: flex; align-items: center; justify-content: center; }
.ac-cta-flottant.est-visible { transform: translate(-50%, 0); }
.ac-cta-flottant:hover { text-decoration: none; }
/* Mode nuit : la barre reste claire (crème) pour se détacher du fond sombre */
html.dark .ac-cta-flottant { background: #F5F1EA; color: #1F3A5F !important; box-shadow: 0 20px 50px rgba(0, 0, 0, .45); }
html.dark .ac-cta-flottant span { background: #1F3A5F; color: #F5F1EA; }

/* ===================== APPARITIONS ===================== */
/* Les blocs ne sont cachés que si l'animation a démarré (classe ac-anime posée dans l'en-tête) :
   sans script, ou si accueil.js ne se charge pas, tout reste visible. */
.ac-anime .ac-revele { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ac-ease), transform .9s var(--ac-ease); }
.ac-anime .ac-revele.est-vu { opacity: 1; transform: none; }
.ac-anime .ac-bande-titre.ac-revele { transform: translateY(18px); }

@media (prefers-reduced-motion: reduce) {
	.ac-anime .ac-revele { opacity: 1; transform: none; transition: none; }
	.ac-ouverture .ac-photo-img { animation: none; transform: none; }
	.ac-cta-flottant, .ac-btn, .ac-mag-image img, a.ac-lien::after { transition: none; }
}

/* ===================== TABLETTE ===================== */
@media (max-width: 1100px) {
	.ac-aides { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.ac-aides-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.ac-bande-texte { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
	.ac-bande-texte .ac-texte { grid-column: 1 / -1; }
}

/* ===================== TÉLÉPHONE ===================== */
@media (max-width: 760px) {
	.ac { font-size: 17px; }
	.ac-deux, .ac-deux-faq, .ac-trois { grid-template-columns: minmax(0, 1fr); }

	/* Ouverture : le bloc de texte suit son contenu et reste toujours entier à l'écran */
	.ac-ouverture { height: auto; min-height: calc(100vh - var(--wp-admin--admin-bar--height, 0px)); min-height: calc(100svh - var(--wp-admin--admin-bar--height, 0px)); display: flex; align-items: flex-end; }
	.ac-ouverture::after { background: linear-gradient(180deg, rgba(13, 24, 40, .45) 0%, rgba(13, 24, 40, 0) 18%, rgba(13, 24, 40, .3) 42%, rgba(13, 24, 40, .92) 100%); }
	.ac-ouverture-texte { position: relative; left: auto; right: auto; bottom: auto; width: 100%; padding: 120px var(--ac-marge) calc(clamp(24px, 4.5svh, 44px) + env(safe-area-inset-bottom)); }
	.ac-ouverture h1 { font-size: clamp(40px, 11vw, 52px); }
	.ac-ouverture p { margin-top: 14px; font-size: 16px; line-height: 1.5; }
	.ac-boutons { margin-top: 20px; flex-direction: column; gap: 10px; }
	.ac-boutons .ac-btn { width: 100%; min-height: 52px; padding: 0 18px; font-size: 15px; white-space: nowrap; } /* empilés, pleine largeur */

	/* Bandes : photo verticale, titre lisible, contenu empilé */
	.ac-bande-photo { height: 56svh; min-height: 360px; } /* moins haute sur mobile : la grande photo laissait un vide (remarque du client, 2026-10-24) */
	.ac-bande-titre { bottom: 32px; }
	.ac-service-titre { font-size: clamp(30px, 8.6vw, 40px); }
	.ac-service-accroche { font-size: 22px; }
	.ac-bande-texte { grid-template-columns: minmax(0, 1fr); gap: 32px; padding-top: 48px; padding-bottom: 72px; }
	.ac-tarif strong { font-size: 30px; }

	.ac-engagements .ac-trois { margin-top: 36px; gap: 28px; }
	.ac-engagement h3 { font-size: 28px; }
	.ac-aides { grid-template-columns: minmax(0, 1fr); gap: 12px; margin-top: 36px; }
	.ac-etapes { margin-top: 32px; gap: 28px; }
	.ac-etape h3 { font-size: 28px; }
	.ac-zones-bloc { padding-top: 40px; }
	.ac-mag { grid-template-columns: minmax(0, 1fr); gap: 36px; }
	.ac-mag h3 { font-size: 26px; }
	.ac-faq summary { font-size: 23px; gap: 16px; }
	.ac-faq p { font-size: 16px; }
	/* Devis : en-tête compact, le formulaire tient dans l'écran dès l'arrivée par « Votre devis en 2 minutes » */
	.ac-devis { padding-top: 16px; scroll-margin-top: 76px; }
	.ac-devis-tete { margin-bottom: 14px; text-align: left; }
	.ac-devis-tete .ac-titre { font-size: 30px; }
	.ac-devis-tete p { margin-top: 6px; font-size: 14px; line-height: 1.45; }

	/* Bouton persistant : pleine largeur, au-dessus du pouce */
	.ac-cta-flottant { left: 12px; right: 12px; bottom: 12px; justify-content: space-between; transform: translateY(160%); }
	.ac-cta-flottant.est-visible { transform: none; }
}
/* Avis : glisser à la souris (accueil.js) ; pendant le glisser, ni aimantation ni défilement doux */
@media (pointer: fine) { .av-grille { cursor: grab; } }
.av-grille.av-glisse { cursor: grabbing; scroll-snap-type: none; scroll-behavior: auto; user-select: none; }
