/* westoke.weclain.com : mise en page et composants propres au site.
   La charte (couleurs, blocs, boutons, en-tête, pied de page) vient de weclain.css. */

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; line-height: 1.65; font-size: 1.0625rem; -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; }
.skip-link { position: absolute; left: 1rem; top: -4rem; z-index: 2000; background: var(--color-blue-dark); color: #fff; padding: .6rem 1rem; border-radius: var(--radius-btn); text-decoration: none; }
.skip-link:focus { top: .75rem; }

/* ---------- Structure ---------- */
main { flex: 1 0 auto; width: 100%; }
.wrap { max-width: 64rem; margin: 0 auto; padding: 0 1rem; }
.section { padding: 2.75rem 0; }
.grid { display: grid; gap: 1.5rem; }
@media (min-width: 700px) {
    .grid--2 { grid-template-columns: repeat(2, 1fr); }
    .grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) { .grid--4 { grid-template-columns: repeat(4, 1fr); } }
.pad { padding: 1.25rem; }
@media (min-width: 640px) { .pad { padding: 1.75rem; } }
.center { text-align: center; }
.small { font-size: .9rem; }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1rem; }

/* ---------- Texte ---------- */
h1 { font-size: clamp(2.4rem, 7vw, 4rem); font-weight: 800; margin: 0 0 .75rem; }
h2 { font-size: clamp(1.45rem, 3.4vw, 2rem); font-weight: 800; margin: 0 0 .9rem; }
h3 { font-size: 1.15rem; font-weight: 700; margin: 0 0 .5rem; display: flex; align-items: center; gap: .55rem; }
h3 svg { flex: none; color: var(--color-orange-accent); }
p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }
.lead { font-size: 1.2rem; line-height: 1.6; }

/* ---------- Héros ---------- */
.hero__grid { display: grid; gap: 2.5rem; padding: 2.5rem 0 3.5rem; align-items: center; }
@media (min-width: 900px) { .hero__grid { grid-template-columns: 1.4fr 1fr; gap: 3rem; } }
.hero__tagline { display: block; font-size: clamp(1.35rem, 3.4vw, 2rem); margin-top: .4rem; }
.trace-pointilles { position: absolute; top: 0; height: 100%; left: 50%; width: 100vw; transform: translateX(-50%); pointer-events: none; z-index: -1; color: var(--color-orange-accent); max-width: none; opacity: .7; }
.trace-flou { width: fit-content; max-width: 100%; padding: .1em .55em; border-radius: .75rem; background: rgba(255, 255, 255, .6); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.hero__note { font-size: 1.6rem; color: #64748B; transform: rotate(-2deg); margin: 1rem 0 0; }
.hero__phone { justify-self: center; width: min(15rem, 70vw); transform: rotate(2.5deg); }

/* ---------- Captures d'écran dans un téléphone ---------- */
.phone {
    position: relative;
    margin: 0;
    padding: 6px;
    background: var(--color-blue-dark);
    border-radius: 26px;
    box-shadow: var(--shadow-hover);
}
.phone img { display: block; width: 100%; height: auto; aspect-ratio: 720 / 1520; object-fit: cover; object-position: top; border-radius: 20px; background: #fff; }
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem 1.25rem; max-width: 60rem; margin: 0 auto; }
@media (min-width: 900px) { .gallery { grid-template-columns: repeat(4, 1fr); } }
.gallery figure { margin: 0; }
.gallery .phone { transition: transform .3s var(--easing-standard); }
.gallery figure:nth-child(odd) .phone { transform: rotate(-1.5deg); }
.gallery figure:nth-child(even) .phone { transform: rotate(1.5deg); }
.gallery figure:hover .phone { transform: rotate(0) translateY(-4px); }
.gallery figcaption { margin-top: .9rem; text-align: center; font-family: 'Caveat', cursive; font-size: 1.45rem; color: var(--color-blue-dark); }

/* ---------- Avant / après ---------- */
.checklist { list-style: none; margin: 0; padding: 0; }
.checklist li { display: flex; gap: .6rem; padding: .35rem 0; line-height: 1.45; }
.checklist li::before { flex: none; width: 1.2rem; font-weight: 800; }
.checklist--non li::before { content: "✕"; color: var(--color-red-text); }
.checklist--oui li::before { content: "✓"; color: var(--color-green-text); }
.checklist strong { color: var(--color-blue-dark); }
.eyebrow { display: block; margin-bottom: 1rem; font-size: .8rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.eyebrow--non { color: var(--color-red-text); }
.eyebrow--oui { color: var(--color-green-text); }

/* ---------- Témoignage ---------- */
.quote { max-width: 40rem; margin: 1rem auto 0; }
.quote blockquote { margin: 0; font-size: 1.15rem; line-height: 1.6; color: var(--color-blue-dark); }
.quote figcaption { margin-top: .75rem; font-weight: 600; font-size: .95rem; }

/* ---------- Science : source sous chaque bloc ---------- */
.science .bento-card { display: flex; flex-direction: column; }
.science .bento-card p { flex: 1; }
.source { margin-top: 1rem; font-size: .85rem; }

/* ---------- Installation ---------- */
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; gap: 1.5rem; }
@media (min-width: 700px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li { counter-increment: step; }
/* Le numéro est posé devant le titre : le ::before du bloc sert déjà à la bordure pointillée */
.steps h3::before { content: counter(step); flex: none; display: inline-flex; align-items: center; justify-content: center; width: 2.2rem; height: 2.2rem; border-radius: 50%; background: var(--color-orange-accent); color: #fff; font-weight: 800; }
.callout { background: #FFF3E8; border-left: 5px solid var(--color-orange-accent); border-radius: var(--radius-bento); padding: 1rem 1.25rem; margin: 2rem 0 0; }

/* ---------- Appel final ---------- */
.final { padding: 3rem 0 clamp(3rem, 12vh, 6rem); }
.final .row { justify-content: center; }

@media (prefers-reduced-motion: reduce) { .gallery .phone { transition: none; } }
