/* Pages publiques : vitrine, blog, contact, pages légales. */

main { display: block; }

/* ---------------------------------------------------------------- accueil : mosaïque de tuiles */
.accueil { display: flex; flex-direction: column; gap: var(--e-7); padding-top: var(--e-2); }
.accueil-message { min-height: 22rem; }
.accueil-accroche { font-size: var(--t-lg); max-width: 34rem; }
.accueil-sticker { display: flex; align-items: center; justify-content: center; min-height: 8rem; }
.pastilles--accueil > i:nth-child(1) { height: 38%; }
.pastilles--accueil > i:nth-child(2) { height: 60%; }
.pastilles--accueil > i:nth-child(3) { height: 46%; }
.pastilles--accueil > i:nth-child(4) { height: 78%; }
.pastilles--accueil > i:nth-child(5) { height: 56%; }
.pastilles--accueil > i:nth-child(6) { height: 96%; }

.reassurance { display: flex; flex-wrap: wrap; gap: var(--e-1) var(--e-4); margin: 0; padding: 0; list-style: none; font-size: var(--t-sm); font-weight: 500; }
.reassurance li::before { content: "✓"; margin-right: var(--e-1); font-weight: 800; }
.accueil-apercu { position: relative; display: flex; flex-direction: column; gap: var(--e-3); padding: var(--e-3); }
.accueil-apercu img { width: 100%; height: auto; flex: 1; min-height: 0; object-fit: cover; object-position: top left; border-radius: var(--r-bande); background: var(--c-surface); }
.sticker-apercu { position: absolute; top: var(--e-5); right: var(--e-5); }
.accueil-apercu p { margin: 0 var(--e-2) var(--e-1); }
.pour-qui { display: flex; flex-direction: column; gap: var(--e-3); }
.pour-qui ul { margin: 0; padding: 0; list-style: none; }
.pour-qui .etiquette { background: var(--c-surface-2); min-height: 2.25rem; padding-inline: 1rem; font-size: var(--t-sm); font-weight: 700; }
.appel-devis { display: flex; flex-direction: column; align-items: flex-start; gap: var(--e-4); padding: var(--e-6) var(--e-5); }
.appel-devis p { max-width: 38rem; }
@media (min-width: 48rem) { .appel-devis { flex-direction: row; align-items: center; justify-content: space-between; padding: var(--e-6); } }
.editeur { display: flex; flex-direction: column; gap: var(--e-2); }
.editeur p { max-width: 42rem; }
.entete-connexion { white-space: nowrap; }

.section-site { display: flex; flex-direction: column; gap: var(--e-4); }
.section-site-entete { display: flex; flex-direction: column; gap: var(--e-2); max-width: var(--largeur-texte); }
.section-site-entete h2 { font-size: var(--t-2xl); }
.section-site-entete p { color: var(--c-texte-doux); font-size: var(--t-lg); }
.section-site-entete--ligne { max-width: none; flex-direction: row; flex-wrap: wrap; align-items: baseline; justify-content: space-between; }

.rond svg { width: 1.25rem; height: 1.25rem; }
.exemple dl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--e-2); margin: auto 0 0; padding-top: var(--e-2); }
.exemple dl div { display: flex; flex-direction: column; min-width: 0; }
.exemple dt { order: 1; font-size: var(--t-xs); color: var(--c-texte-doux); }
.exemple dd { margin: 0; font-family: var(--police-titre); font-weight: var(--graisse-titre); font-size: var(--t-xl); letter-spacing: -.03em; white-space: nowrap; }

.etapes { list-style: none; margin: 0; padding: 0; }
.etape { position: relative; gap: var(--e-2); min-height: 17rem; padding-bottom: var(--e-6); }
.etape-num { font-family: var(--police-titre); font-weight: var(--graisse-titre); font-size: var(--t-chiffre); line-height: .9; letter-spacing: -.05em; }
.etape p { max-width: 24rem; }
.etape .etiquette--penchee { position: absolute; right: var(--e-4); bottom: var(--e-4); }
.exemple .rond { background: var(--c-surface); color: var(--c-texte); }
.tuile--bleu.exemple .rond { background: var(--c-surface); color: var(--c-encre); }
.pour-qui li:nth-child(4n+1) { background: var(--c-jaune); }
.pour-qui li:nth-child(4n+2) { background: var(--c-menthe); }
.pour-qui li:nth-child(4n+3) { background: var(--c-rose); }
.pour-qui li:nth-child(4n+4) { background: var(--c-bleu); color: var(--c-sur-bleu); }

.fonctionnalites { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr)); }
.fonctionnalites h3 { font-size: var(--t-base); letter-spacing: -.02em; }
.fonctionnalites p { color: var(--c-texte-doux); font-size: var(--t-sm); }

.faq { display: flex; flex-direction: column; gap: var(--e-2); }
.faq-item { background: var(--c-surface); border-radius: var(--r-bande); }
.faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: var(--e-4); min-height: var(--cible-min); padding: var(--e-3) var(--e-4);
  font-weight: 700; cursor: pointer; list-style: none; border-radius: var(--r-bande); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary svg { flex: none; transition: transform var(--duree); }
.faq-item[open] summary svg { transform: rotate(180deg); }
.faq-item p { padding: 0 var(--e-4) var(--e-4); color: var(--c-texte-doux); }

.appel { display: flex; flex-direction: column; align-items: flex-start; gap: var(--e-3); padding: var(--e-6) var(--e-5); }
.appel h2 { font-size: var(--t-2xl); }
.appel p { color: var(--c-texte-doux); max-width: 34rem; }
.appel .btn { margin-top: var(--e-2); }
@media (min-width: 48rem) { .appel { padding: var(--e-7) var(--e-6); } }

/* ---------------------------------------------------------------- blog */
.page-titre { margin-block: var(--e-2) var(--e-4); display: flex; flex-direction: column; gap: var(--e-2); }
.page-titre h1 { font-size: var(--t-3xl); }
.page-titre > p:not(.sur-titre):not(.fil-ariane) { font-size: var(--t-lg); max-width: var(--largeur-texte); }
.page-titre .fil-ariane { color: inherit; }
.filtres { display: flex; flex-wrap: wrap; gap: 2px; width: fit-content; max-width: 100%; margin-bottom: var(--e-4); padding: 4px;
  border-radius: var(--r-lg); background: var(--c-surface-2); }
.filtres a { display: inline-flex; align-items: center; min-height: var(--cible-petite); padding: .3rem .9rem; border-radius: var(--r-plein);
  color: var(--c-texte); font-size: var(--t-sm); font-weight: 500; text-decoration: none; }
.filtres a:hover { background: var(--c-surface); }
.filtres a[aria-current="page"] { background: var(--c-primaire); color: var(--c-sur-primaire); font-weight: 700; }
.articles { --col-min: 18rem; }
.article-carte { display: flex; flex-direction: column; align-items: flex-start; gap: var(--e-2); padding: var(--e-3) var(--e-3) var(--e-4); }
.article-carte img { width: 100%; height: auto; aspect-ratio: 2 / 1; object-fit: cover; border-radius: var(--r-bande); background: var(--c-surface); margin-bottom: var(--e-1); }
.article-carte h2, .article-carte h3 { font-size: var(--t-lg); line-height: 1.15; letter-spacing: -.02em; }
.article-carte .etiquette, .article-carte h2, .article-carte h3, .article-carte .tuile-meta { margin-inline: var(--e-2); }

/* Article : l'en-tête est la tuile jaune, le texte se lit hors des tuiles */
.article { max-width: var(--largeur-texte); margin-inline: auto; padding: var(--e-2) var(--gouttiere) 0; }
.article > .fil-ariane { margin-bottom: var(--e-3); }
.article-entete { --c-texte-doux: var(--c-sur-jaune); --etiquette-fond: var(--c-surface); display: flex; flex-direction: column; gap: var(--e-3); margin-bottom: var(--e-6);
  padding: var(--e-3) var(--e-3) var(--e-5); border-radius: var(--r-lg); background: var(--c-jaune); color: var(--c-sur-jaune); }
.article-entete > :not(.article-vignette) { margin-inline: var(--e-2); }
.article-vignette { width: 100%; aspect-ratio: 2 / 1; border-radius: var(--r-bande); background-color: var(--c-surface); }
.article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--e-2); color: var(--c-texte-doux); font-size: var(--t-sm); }
.blog-tag { display: inline-flex; align-items: center; min-height: 1.75rem; padding: .15rem .75rem; border-radius: var(--r-plein); background: var(--etiquette-fond, var(--c-surface-2));
  color: var(--c-texte); font-size: var(--t-xs); font-weight: 700; text-decoration: none; }
.article-titre { font-size: var(--t-2xl); }
.article-chapo { font-size: var(--t-lg); font-weight: 500; }
.article-corps { font-size: 1.0625rem; line-height: 1.65; }
.article-corps h2 { font-size: var(--t-xl); margin: var(--e-6) 0 var(--e-3); }
.article-corps h3 { margin: var(--e-5) 0 var(--e-2); }
.article-corps p, .article-corps ul, .article-corps ol { margin: 0 0 var(--e-4); }
.article-corps li { margin-bottom: var(--e-2); }
.article-corps table { width: 100%; border-collapse: separate; border-spacing: 0 var(--e-1); margin-bottom: var(--e-4); padding: var(--e-1) var(--e-3);
  font-size: var(--t-sm); display: block; overflow-x: auto; border-radius: var(--r-lg); background: var(--c-surface-2); }
.article-corps th, .article-corps td { padding: var(--e-2) var(--e-3); text-align: left; }
.article-corps tbody td { background: var(--c-surface); }
.article-corps tbody td:first-child { border-radius: var(--r-md) 0 0 var(--r-md); }
.article-corps tbody td:last-child { border-radius: 0 var(--r-md) var(--r-md) 0; }
.article-cta { --c-texte-doux: var(--c-sur-menthe); margin-top: var(--e-6); padding: var(--e-5); border-radius: var(--r-lg); background: var(--c-menthe); color: var(--c-sur-menthe);
  display: flex; flex-direction: column; gap: var(--e-2); }
.article-cta-titre { font-family: var(--police-titre); font-weight: var(--graisse-titre); font-size: var(--t-xl); letter-spacing: -.03em; line-height: 1.1; }
.article-cta-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--e-3); margin-top: var(--e-2); }
.article-liees { margin-top: var(--e-4); padding: var(--e-5); border-radius: var(--r-lg); background: var(--c-surface-2); }
.article-liees h2 { font-size: var(--t-lg); margin-bottom: var(--e-3); }
.article-liees-liste { display: flex; flex-direction: column; gap: var(--e-2); }
.article-liees-liste a { display: block; padding: var(--e-3) var(--e-4); border-radius: var(--r-bande); background: var(--c-surface); color: var(--c-texte); text-decoration: none; }
.article-liees-liste a:hover { text-decoration: underline; }
.article-liees-plus { margin-top: var(--e-3); font-size: var(--t-sm); }

/* ---------------------------------------------------------------- pages de texte (légal, contact) */
.page-texte { max-width: var(--largeur-texte); margin-inline: auto; padding: var(--e-2) var(--gouttiere) 0; }
.page-texte > h1 { font-size: var(--t-2xl); margin: var(--e-5) 0 var(--e-2); }
.page-texte .maj { color: var(--c-texte-doux); margin-bottom: var(--e-5); }
.page-texte h2 { font-size: var(--t-xl); margin: var(--e-6) 0 var(--e-2); }
.page-texte p, .page-texte ul { margin: 0 0 var(--e-3); }
.page-texte li { margin-bottom: var(--e-1); }
.page-texte .tuile { margin-bottom: var(--espace-tuiles); }
.page-texte .tuile h1 { font-size: var(--t-3xl); margin: 0 0 var(--e-2); }
.page-texte .tuile h2 { margin-top: 0; }
.page-texte .tuile .maj, .page-texte .tuile > p:last-child { margin-bottom: 0; }
.champ-piege { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------------------------------------------------------------- page introuvable */
.introuvable { padding-top: var(--e-2); }
@media (min-width: 48rem) { .introuvable .mosaique { min-height: 60dvh; } }
.introuvable .chiffre { font-size: clamp(4.5rem, 2rem + 12vw, 9rem); }

/* ---------------------------------------------------------------- pied de page : une tuile encre */
.pied { width: min(100% - 2 * var(--gouttiere), var(--largeur-page) - 2 * var(--gouttiere)); margin: var(--e-8) auto var(--gouttiere); padding: 0; font-size: var(--t-sm); }
.pied .conteneur { padding-inline: var(--e-5); }
.pied-grille { display: grid; gap: var(--e-5); grid-template-columns: 1fr 1fr; padding-block: var(--e-6) var(--e-5); }
.pied-marque { grid-column: 1 / -1; display: flex; flex-direction: column; gap: var(--e-2); color: var(--c-texte-doux); }
.pied nav { display: flex; flex-direction: column; align-items: flex-start; gap: var(--e-1); }
.pied-titre { font-size: var(--t-xs); font-weight: 700; color: var(--c-texte-doux); margin-bottom: var(--e-1); }
.pied nav a { display: inline-flex; align-items: center; min-height: 1.75rem; font-weight: 500; text-decoration: none; }
.pied nav a:hover { text-decoration: underline; }
.pied-bas { display: flex; align-items: center; justify-content: space-between; gap: var(--e-4); padding-block: 0 var(--e-5); color: var(--c-texte-doux); font-size: var(--t-xs); }
.pied-bas a { color: inherit; font-weight: 500; display: inline-flex; align-items: center; min-height: 1.75rem; }
@media (min-width: 48rem) {
  .pied-grille { grid-template-columns: 2fr 1fr 1fr 1fr; }
  .pied-marque { grid-column: auto; }
}

/* ---------------------------------------------------------------- bandeau cookies */
.bandeau-cookies { position: fixed; z-index: 120; left: var(--e-4); right: var(--e-4); bottom: var(--e-4); max-width: 34rem; margin-inline: auto;
  display: flex; flex-direction: column; gap: var(--e-3); padding: var(--e-5); background: var(--c-surface); border: var(--bordure-champ) solid var(--c-bordure-forte);
  border-radius: var(--r-lg); font-size: var(--t-sm); animation: toast-entree .25s ease-out; }
.bandeau-cookies .grappe { justify-content: flex-end; }
@media (min-width: 48rem) { .bandeau-cookies { right: auto; margin-inline: 0; max-width: 26rem; } }

/* ---------------------------------------------------------------- apparition au défilement */
html.js .apparition { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
html.js .apparition.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { html.js .apparition { opacity: 1; transform: none; } }

/* ---------------------------------------------------------------- contact */
.contact { padding-top: var(--e-2); }
.contact-message { min-height: 15rem; }
.contact-message .titre-ecran { font-size: var(--t-2xl); }
.contact .tuile--blanche { display: flex; flex-direction: column; gap: var(--e-2); }
@media (min-width: 48rem) and (max-width: 63.99rem) { .contact .mosaique > * { grid-column: span 12; } }
@media (min-width: 64rem) { .contact-message { min-height: 24rem; } }
.tuile--colonne > .etiquette { align-self: flex-start; }
