/* ============================================================
   DOEMO PRINT — page d'accueil de la boutique
   Chargée UNIQUEMENT par vues/accueil.php (classes `ac-`).

   Rythme voulu : sombre · clair · SOMBRE · clair · gris · clair.
   Les sections claires s'enchaînaient toutes pareil : même conteneur,
   même titre, même grille de photos. Le contraste est ce qui manquait.
   ============================================================ */

/* --- Tête de section commune ------------------------------- */
.ac-tete { margin-bottom: 1.8rem; }
.ac-tete-rang { display: flex; align-items: baseline; justify-content: space-between;
  gap: 1rem 1.6rem; flex-wrap: wrap; }
.ac-sur { text-transform: uppercase; letter-spacing: .14em; font-size: .74rem; font-weight: 700;
  color: var(--c-cyan); margin-bottom: .45rem; }
.ac-tete h2 { font-family: var(--font-head); font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  line-height: 1.05; letter-spacing: -.005em; }
.ac-tete-lien { font-weight: 600; font-size: .95rem; white-space: nowrap; }
.ac-tete-lien::after { content: "\00a0→"; transition: margin-left .15s; display: inline-block; }
.ac-tete-lien:hover::after { margin-left: .25rem; }
.ac-intro { color: var(--c-muted); max-width: 68ch; margin-top: .7rem; line-height: 1.65; }

/* ============================================================
   1. Héros
   ============================================================ */
.ac-hero { position: relative; background: var(--c-black); color: #fff; overflow: hidden; }
.ac-hero::before { content: ""; position: absolute; inset: 0;
  background: url('/assets/img/service-grand-format.webp') center/cover no-repeat; opacity: .20; }
.ac-hero::after { content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(110% 80% at 12% 15%, rgba(0,174,239,.30), transparent 62%),
    radial-gradient(90% 70% at 92% 95%, rgba(236,0,140,.20), transparent 60%); }

.ac-hero-in { position: relative; z-index: 1;
  display: grid; grid-template-columns: minmax(0, 1fr) 390px; gap: 3rem; align-items: center;
  padding-top: 3.6rem; padding-bottom: 2.4rem; }

.ac-hero h1 { font-family: var(--font-head); font-size: clamp(2.5rem, 5.2vw, 4rem);
  line-height: .98; letter-spacing: -.015em; }
.ac-hero h1 em { font-style: normal; color: var(--c-magenta); }
.ac-hero-lead { color: rgba(255,255,255,.82); max-width: 46ch; margin-top: 1.1rem;
  font-size: 1.06rem; line-height: 1.6; }

/* Les trois chiffres : séparés par un filet, pas par du vide — ils se lisent
   comme une seule ligne de preuve. */
.ac-chiffres { display: flex; flex-wrap: wrap; margin-top: 1.9rem; }
.ac-chiffres > div { padding-right: 1.7rem; margin-right: 1.7rem;
  border-right: 1px solid rgba(255,255,255,.22); }
.ac-chiffres > div:last-child { padding-right: 0; margin-right: 0; border-right: 0; }
.ac-chiffres strong { display: block; font-family: var(--font-head); font-size: 2.2rem;
  line-height: 1; color: var(--c-yellow); }
.ac-chiffres span { display: block; font-size: .82rem; color: rgba(255,255,255,.72);
  margin-top: .15rem; }

/* --- Le calculateur ---------------------------------------- */
.ac-calc { background: #fff; color: var(--c-text); border-radius: var(--radius-lg);
  padding: 1.6rem; box-shadow: 0 24px 55px rgba(0,0,0,.42); }
.ac-calc-titre { font-family: var(--font-head); font-size: 1.55rem; line-height: 1.1;
  margin-bottom: 1.1rem; }
.ac-calc-champ { flex: 1; min-width: 0; }
.ac-calc-champ label { display: block; font-size: .78rem; font-weight: 600;
  color: var(--c-muted); margin-bottom: .25rem; }
.ac-calc select, .ac-calc input { width: 100%; padding: .58rem .6rem;
  border: 1px solid var(--c-gray-300); border-radius: var(--radius); font: inherit; background: #fff; }
.ac-calc select:focus, .ac-calc input:focus { outline: 2px solid var(--c-cyan); outline-offset: 1px; }
.ac-calc-dims { display: flex; align-items: flex-end; gap: .5rem; margin-top: .85rem; }
.ac-calc-dims > span { padding-bottom: .55rem; color: var(--c-muted); }
.ac-calc-dims .ac-calc-champ:last-child { max-width: 74px; flex: none; }

.ac-calc-sortie { margin-top: 1.2rem; padding-top: 1.05rem; border-top: 2px solid var(--c-black); }
.ac-calc-prix { font-family: var(--font-head); font-size: 3rem; line-height: 1;
  transition: color .15s; }
.ac-calc-prix::after { content: " HT"; font-family: var(--font-body); font-size: .95rem;
  font-weight: 500; color: var(--c-muted); }
.ac-calc-sous { font-size: .83rem; color: var(--c-muted); margin-top: .4rem; min-height: 1.2em; }
.ac-calc.en-erreur .ac-calc-prix { color: var(--c-gray-300); }
.ac-calc.en-erreur .ac-calc-sous { color: #C33; }
.ac-calc-lien { display: block; margin-top: 1.1rem; background: var(--c-cyan); color: #fff;
  text-align: center; padding: .85rem; border-radius: var(--radius);
  font-family: var(--font-head); font-size: 1.3rem; letter-spacing: .02em;
  transition: background .15s; }
.ac-calc-lien:hover { background: #0098cd; text-decoration: none; }

/* --- La barre « vous cherchez plutôt », au pied du héros ---- */
.ac-besoins { position: relative; z-index: 1; border-top: 1px solid rgba(255,255,255,.14);
  padding: 1.1rem 0 1.3rem; display: flex; align-items: center; gap: .55rem 1.1rem; flex-wrap: wrap; }
.ac-besoins-titre { text-transform: uppercase; letter-spacing: .1em; font-size: .72rem;
  font-weight: 700; color: rgba(255,255,255,.55); }
.ac-puce { border: 1px solid rgba(255,255,255,.28); border-radius: 999px;
  padding: .4rem 1rem; font-size: .9rem; color: rgba(255,255,255,.92);
  transition: background .14s, border-color .14s, color .14s; }
.ac-puce:hover { background: var(--c-cyan); border-color: var(--c-cyan); color: #fff;
  text-decoration: none; }

/* ⭐⭐ Bandeau de confiance (24/09/2026) : trois faits vérifiables, pas des
   avis clients qu'on n'a pas — voir le commentaire dans accueil.php. Fond
   clair et dense entre le héros sombre et la sélection, comme un repère qui
   change de registre sans casser le reste de la page. */
.ac-confiance { background: var(--c-gray-50); border-bottom: 1px solid var(--c-gray-100); }
.ac-confiance-in { display: flex; flex-wrap: wrap; justify-content: center;
  gap: 1rem 2.4rem; padding: 1.1rem 0; }
.ac-confiance-item { display: flex; align-items: center; gap: .65rem;
  font-size: .88rem; color: var(--c-text); max-width: 300px; }
.ac-confiance-item svg { flex: none; color: var(--c-cyan); }
.ac-confiance-item strong { font-weight: 700; }
@media (max-width: 700px) { .ac-confiance-in { justify-content: flex-start; gap: 1rem; } }

/* ⭐⭐ Bandeau promo fixe (24/09/2026) — un seul produit mis en avant, pas de
   rotation automatique. Fond sombre pour trancher avec le bandeau de
   confiance juste au-dessus. */
.ac-promo { background: var(--c-black); color: #fff; }
.ac-promo-in { display: flex; align-items: center; gap: 1.6rem; padding: 1.6rem 0; }
.ac-promo-in img { flex: none; width: 84px; height: 84px; object-fit: contain;
  border-radius: var(--radius); background: #fff; padding: 8px; }
.ac-promo-txt { flex: 1; min-width: 0; }
.ac-promo-sur { text-transform: uppercase; letter-spacing: .08em; font-size: .72rem;
  font-weight: 700; color: var(--c-cyan); margin: 0 0 .2rem; }
.ac-promo-txt h2 { font-family: var(--font-head); font-size: 1.5rem; margin: 0 0 .35rem; color: #fff; }
.ac-promo-txt h2 em { font-style: normal; color: var(--c-magenta); }
.ac-promo-txt p { margin: 0; font-size: .88rem; color: rgba(255,255,255,.78); }
.ac-promo-txt strong { color: #fff; }
.ac-promo .btn { flex: none; }
@media (max-width: 700px) {
  .ac-promo-in { flex-wrap: wrap; padding: 1.2rem 0; }
  .ac-promo-in img { width: 64px; height: 64px; }
  .ac-promo .btn { width: 100%; }
}

/* ============================================================
   3. Le mur des composables — la section signature
   Ce ne sont pas des photos de catalogue : chaque vignette est le
   support RÉELLEMENT composé, dessiné par son propre composeur.
   ============================================================ */
.ac-mur { position: relative; background: #141414; color: #fff; overflow: hidden;
  padding: clamp(3rem, 6vw, 5rem) 0; }
.ac-mur::before { content: ""; position: absolute; inset: 0; opacity: .5;
  background-image:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 46px 46px; }
.ac-mur::after { content: ""; position: absolute; inset: 0;
  background: radial-gradient(75% 55% at 50% 0%, rgba(0,174,239,.18), transparent 70%); }
.ac-mur > .container { position: relative; z-index: 1; }
.ac-mur .ac-tete h2 { color: #fff; }
.ac-mur .ac-intro { color: rgba(255,255,255,.72); }
.ac-mur .ac-intro strong { color: #fff; }
.ac-mur .ac-sur { color: var(--c-yellow); }

.ac-mur-grille { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem 1.4rem;
  margin-top: 2.4rem; }

/* Les panneaux posent sur une même ligne de sol : ils n'ont pas le même
   format, et c'est précisément ce qu'on veut montrer. */
.ac-mur-tuile { display: grid; grid-template-rows: 1fr auto; gap: .95rem;
  padding: 1.5rem 1.1rem 1.15rem; border-radius: var(--radius-lg);
  background: rgba(255,255,255,.045); border: 1px solid rgba(255,255,255,.09);
  color: #fff; transition: background .16s, border-color .16s, transform .16s; }
.ac-mur-tuile:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.22);
  transform: translateY(-3px); text-decoration: none; }

.ac-mur-socle { display: grid; place-items: end center; }
/* ⚠️ LARGEUR EXPLICITE. Le panneau porte `container-type: inline-size`, qui
   applique un confinement : sa largeur INTRINSÈQUE vaut zéro, donc il ne
   s'étire pas tout seul. `--w` vient du serveur, calculé sur le format réel. */
.ac-mur-visuel { width: min(100%, var(--w, 160px)); filter: drop-shadow(0 14px 26px rgba(0,0,0,.55)); }
.ac-mur-visuel > *:not(:first-child) { display: none; }

.ac-mur-txt strong { display: block; font-family: var(--font-head); font-size: 1.3rem;
  line-height: 1.12; }
.ac-mur-txt em { display: block; font-style: normal; font-size: .85rem; line-height: 1.5;
  color: rgba(255,255,255,.66); margin-top: .2rem; }
.ac-mur-txt span { display: inline-block; margin-top: .55rem; font-weight: 600; font-size: .86rem;
  color: var(--c-cyan); }
.ac-mur-tuile:hover .ac-mur-txt span { color: #fff; }

.ac-mur-pied { margin-top: 2rem; color: rgba(255,255,255,.6); font-size: .95rem; }
.ac-mur-pied a { color: var(--c-yellow); font-weight: 600; }

/* ============================================================
   4. Tout le catalogue
   ============================================================ */
.ac-famille { display: flex; align-items: center; gap: .9rem; margin: 2.2rem 0 1rem; }
.ac-famille:first-of-type { margin-top: 1.4rem; }
.ac-famille h3 { font-family: var(--font-head); font-size: 1.45rem; white-space: nowrap; }
.ac-famille::after { content: ""; flex: 1; height: 1px; background: var(--c-gray-100); }
.ac-famille em { font-style: normal; font-size: .8rem; color: var(--c-muted); white-space: nowrap; }

.ac-tuiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: .9rem; }
.ac-tuile { position: relative; display: block; border-radius: var(--radius-lg); overflow: hidden;
  aspect-ratio: 5 / 3; box-shadow: var(--shadow-sm); }
.ac-tuile img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.ac-tuile:hover img { transform: scale(1.07); }
.ac-tuile-txt { position: absolute; inset: auto 0 0 0; color: #fff; padding: 2.4rem .9rem .8rem;
  background: linear-gradient(transparent, rgba(0,0,0,.55) 45%, rgba(0,0,0,.88)); }
.ac-tuile-txt strong { display: block; font-family: var(--font-head); font-size: 1.22rem;
  line-height: 1.1; }
.ac-tuile-txt em { font-style: normal; font-size: .76rem; color: rgba(255,255,255,.72); }
/* Un filet de marque au survol : discret, et c'est la palette du logo. */
.ac-tuile::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
  background: linear-gradient(90deg, var(--c-cyan), var(--c-magenta), var(--c-yellow));
  transform: scaleX(0); transform-origin: left; transition: transform .25s ease; }
.ac-tuile:hover::after { transform: scaleX(1); }

/* ============================================================
   6. Comment ça marche
   ============================================================ */
.ac-etapes { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1.6rem; margin-top: 1.6rem; counter-reset: ac; }
.ac-etapes li { counter-increment: ac; padding-top: .9rem; border-top: 2px solid var(--c-gray-100); }
.ac-etapes li::before { content: counter(ac, decimal-leading-zero);
  display: block; font-family: var(--font-head); font-size: 2.3rem; line-height: 1;
  color: var(--c-gray-300); margin-bottom: .35rem; }
.ac-etapes strong { display: block; font-family: var(--font-head); font-size: 1.28rem;
  line-height: 1.15; margin-bottom: .25rem; }
.ac-etapes span { color: var(--c-muted); font-size: .92rem; line-height: 1.6; }

.ac-arguments { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem;
  margin-top: 2.6rem; }
.ac-arguments > div { padding-top: .8rem; border-top: 3px solid var(--c-gray-300); }
.ac-arguments > div:nth-child(1) { border-top-color: var(--c-cyan); }
.ac-arguments > div:nth-child(2) { border-top-color: var(--c-magenta); }
.ac-arguments > div:nth-child(3) { border-top-color: var(--c-yellow); }
.ac-arguments > div:nth-child(4) { border-top-color: var(--c-black); }
.ac-arguments strong { display: block; font-family: var(--font-head); font-size: 1.22rem;
  line-height: 1.15; }
.ac-arguments span { color: var(--c-muted); font-size: .9rem; line-height: 1.55; }
.ac-mention { margin-top: 2rem; font-size: .82rem; color: var(--c-muted); }

/* ============================================================
   Adaptations
   ============================================================ */
@media (max-width: 1040px) {
  .ac-mur-grille { grid-template-columns: repeat(2, 1fr); }
  .ac-etapes, .ac-arguments { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .ac-hero-in { grid-template-columns: 1fr; gap: 2.2rem; padding-top: 2.6rem; padding-bottom: 1.8rem; }
  .ac-calc { padding: 1.3rem; }
  .ac-calc-prix { font-size: 2.6rem; }
}

@media (max-width: 620px) {
  .ac-mur-grille { grid-template-columns: 1fr; gap: 1.2rem; }
  .ac-etapes, .ac-arguments { grid-template-columns: 1fr; gap: 1.1rem; }
  /* ⚠️ Les filets verticaux supposent une seule ligne. Repliés sur deux
     lignes, le filet de fin de ligne pend dans le vide : on passe en
     grille et on supprime les bordures. */
  .ac-chiffres { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem 1.4rem; }
  .ac-chiffres > div { padding-right: 0; margin-right: 0; border-right: 0; }
  .ac-chiffres strong { font-size: 1.85rem; }
  .ac-tuiles { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .7rem; }
}
