/* ==========================================================================
   Charpenet 1951 - index.html (landing "Isolation combles à 1 €")
   Feuille additionnelle CRO. Chargée APRÈS css/style.css.
   Ne modifie pas style.css, partagé avec les autres pages du site.
   ========================================================================== */

/* --------------------------------------------------------------------------
   P0 - Crédibilité : avis Google cliquables
   -------------------------------------------------------------------------- */
.hero-google-link {
    color: var(--color-white);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.hero-google-link:hover {
    opacity: 0.85;
}

.testimonials-google-link {
    display: inline-block;
    margin-top: 0.75rem;
    font-size: 0.95rem;
    color: var(--color-primary);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.testimonial-verified {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 1rem;
    font-size: 0.85rem;
    color: var(--color-text-light);
    text-decoration: none;
}

.testimonial-verified:hover {
    text-decoration: underline;
}

.testimonial-verified img {
    width: 16px;
    height: 16px;
}

a.chiffre-item {
    text-decoration: none;
}

a.chiffre-item:hover .chiffre-label {
    text-decoration: underline;
}

/* --------------------------------------------------------------------------
   HEADER - téléphone visible sans scroll (§5.1)
   -------------------------------------------------------------------------- */
.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
}

/* Évite le chevauchement logo / menu quand la fenêtre se resserre */
.header-logo {
    flex-shrink: 0;
}

.header .header-nav {
    gap: 1.25rem;
    flex-wrap: nowrap;
    margin: 0 1.5rem;
}

.header .header-nav a {
    white-space: nowrap;
}

.header .header-phone {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 44px;
    padding: 0.4rem 0.75rem;
    border-radius: var(--border-radius-full);
    white-space: nowrap;
    font-size: 17px;
}

.header .header-phone:hover {
    background-color: rgba(255, 255, 255, 0.12);
}

.header .header-cta {
    display: inline-block;
    min-height: 44px;
    line-height: 1.7;
}

@media (max-width: 1024px) {
    .header .header-cta {
        display: none;
    }
    .header-container {
        padding: 0.6rem 1rem;
    }
    .header-logo img {
        height: 38px;
    }
}

@media (max-width: 420px) {
    .header .header-phone {
        font-size: 15px;
        padding: 0.4rem 0.5rem;
    }
}

/* --------------------------------------------------------------------------
   BARRE D ACTION STICKY MOBILE (§5.1)
   -------------------------------------------------------------------------- */
.sticky-cta {
    display: none;
}

@media (max-width: 1024px) {
    .sticky-cta {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem;
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 1200;
        padding: 0.5rem 0.75rem calc(0.5rem + env(safe-area-inset-bottom));
        background: var(--color-white);
        box-shadow: 0 -2px 14px rgba(0, 0, 0, 0.18);
    }

    .sticky-cta a {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.4rem;
        min-height: 52px;
        border-radius: var(--border-radius-full);
        font-weight: 600;
        font-size: 15px;
        text-align: center;
        line-height: 1.2;
        padding: 0 0.5rem;
    }

    .sticky-cta .sticky-cta-tel {
        background: var(--color-primary);
        color: var(--color-white);
    }

    .sticky-cta .sticky-cta-form {
        background: var(--cta-teal);
        color: var(--color-white);
    }

    .sticky-cta svg {
        width: 18px;
        height: 18px;
        flex-shrink: 0;
    }

    body {
        padding-bottom: 72px;
    }
}

/* --------------------------------------------------------------------------
   TITRES DE SECTION - tous centrés
   Y compris ceux qui vivent dans une colonne (À propos, Zone d'intervention,
   CTA final) : ils se centrent alors sur leur colonne.
   -------------------------------------------------------------------------- */
.section .section-title {
    text-align: center;
}

/* --------------------------------------------------------------------------
   CONTRASTE DES CTA (WCAG AA)
   Le teal de charte #20b9b8 avec du texte blanc ne donne que 2,16:1.
   Les surfaces qui portent du texte passent sur une déclinaison foncée de
   la même teinte, #0f7a79 (5,15:1 sur blanc). Le teal d'origine reste
   utilisé pour tout ce qui est décoratif : barres de progression, bordures,
   états sélectionnés. Idem pour le bleu #0693e3 (3,34:1) du bouton Calendly.
   Overrides portés ici : cette feuille n'est chargée que par index.html.
   -------------------------------------------------------------------------- */
:root {
    --cta-teal: #0f7a79;
    --cta-teal-hover: #0c6362;
    --cta-blue: #0b6ba7;
    --cta-blue-hover: #095a8c;
}

.btn-primary,
.header .header-cta,
.elig-submit,
.sticky-cta .sticky-cta-form,
.parcours-num {
    background-color: var(--cta-teal);
}

.btn-primary:hover,
.header .header-cta:hover,
.elig-submit:hover {
    background-color: var(--cta-teal-hover);
}

.calcul-total .calcul-valeur {
    color: var(--cta-teal);
}

.btn-rdv {
    background-color: var(--cta-blue);
}

.btn-rdv:hover {
    background-color: var(--cta-blue-hover);
}

/* --------------------------------------------------------------------------
   ZONES TACTILES - cibles autonomes portées à 44 px (WCAG 2.5.5)
   Les liens inclus dans une phrase relèvent de l'exception "inline".
   -------------------------------------------------------------------------- */
.header .header-nav a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
}

.footer-column ul a,
.footer-contact a {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
}

.testimonials-google-link,
.testimonial-verified {
    min-height: 40px;
    align-items: center;
}

/* --------------------------------------------------------------------------
   ANCRES - compense la hauteur du header fixe
   -------------------------------------------------------------------------- */
#eligibilite,
#pourquoi-1e,
#comment-ca-se-passe,
#avis,
#faq,
#contact,
#section-chiffres,
.elig-box {
    scroll-margin-top: 95px;
}

@media (max-width: 1024px) {
    #eligibilite,
    #pourquoi-1e,
    #comment-ca-se-passe,
    #avis,
    #faq,
    #contact,
    #section-chiffres,
    .elig-box {
        scroll-margin-top: 76px;
    }
}

/* --------------------------------------------------------------------------
   HERO (§5.2)
   -------------------------------------------------------------------------- */
.hero-zone-line {
    display: inline-block;
    margin-bottom: 1.25rem;
    padding: 0.35rem 0.9rem;
    border-radius: var(--border-radius-full);
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.35);
    font-size: 15px;
    font-weight: 500;
}

.hero-economie {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.hero-cta-secondaire {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    font-size: 17px;
    min-height: 44px;
}

.hero-cta-secondaire a {
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.hero-split-grid {
    grid-template-columns: 1fr 480px;
}

@media (max-width: 1024px) {
    /* Mobile : titre + promesse, PUIS le bloc de capture, PUIS les preuves.
       display:contents fait remonter .hero-headline et .hero-proof au niveau
       de la grille pour pouvoir les ordonner autour du formulaire. */
    .hero-split-grid {
        display: flex;
        flex-direction: column;
    }
    .hero-split .hero-content {
        display: contents;
    }
    .hero-headline {
        order: 1;
    }
    .hero-split .hero-form {
        order: 2;
        margin-bottom: 1.75rem;
    }
    .hero-proof {
        order: 3;
    }
    .hero-split .hero-content h1 {
        font-size: 1.65rem;
        margin-bottom: 0.85rem;
    }
    .hero-split .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 0.85rem;
    }
    .hero-zone-line {
        margin-bottom: 1rem;
    }
    .hero-split {
        padding-top: 80px;
    }
}

/* --------------------------------------------------------------------------
   TEST D ÉLIGIBILITÉ (§5.4)
   -------------------------------------------------------------------------- */
.elig-box {
    background: var(--color-white);
    border-radius: 16px;
    box-shadow: 0 16px 50px rgba(0, 0, 0, 0.25);
    padding: 1.5rem;
    color: var(--color-text);
}

.elig-box h2,
.elig-box h3 {
    font-family: 'Jost', sans-serif;
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 0.35rem;
}

.elig-head p {
    font-size: 0.95rem;
    color: var(--color-text-light);
    margin-bottom: 1.25rem;
}

.elig-progress {
    height: 6px;
    background: #e6ebef;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 1.25rem;
}

.elig-progress-fill {
    height: 100%;
    width: 33%;
    background: #20b9b8;
    border-radius: 3px;
    transition: width 0.35s ease;
}

.elig-step {
    display: none;
}

.elig-step.is-active {
    display: block;
    animation: eligFade 0.25s ease;
}

@keyframes eligFade {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

.elig-question {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 0.6rem;
}

.elig-field {
    margin-bottom: 1.25rem;
}

.elig-field label:not(.elig-question) {
    display: block;
    margin-bottom: 0.3rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-text);
}

.elig-field input[type="text"],
.elig-field input[type="tel"],
.elig-field input[type="email"] {
    width: 100%;
    min-height: 52px;
    padding: 0.75rem 1rem;
    border: 2px solid #dfe6ec;
    border-radius: 10px;
    font-size: 16px;
    font-family: inherit;
    color: var(--color-text);
}

.elig-field input:focus {
    outline: none;
    border-color: #20b9b8;
    box-shadow: 0 0 0 3px rgba(32, 185, 184, 0.2);
}

.elig-field input.has-error {
    border-color: #dc3545;
}

.elig-error {
    display: block;
    min-height: 1.1rem;
    font-size: 0.8rem;
    color: #dc3545;
}

.elig-choices {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
}

.elig-choices-1col {
    grid-template-columns: 1fr;
}

.elig-choice {
    min-height: 56px;
    padding: 0.9rem 1rem;
    background: #f6f9fb;
    border: 2px solid #dfe6ec;
    border-radius: 10px;
    font-size: 15px;
    font-family: inherit;
    font-weight: 500;
    color: var(--color-text);
    cursor: pointer;
    text-align: center;
    transition: border-color 0.2s, background-color 0.2s;
}

.elig-choice:hover {
    border-color: #20b9b8;
    background: #eafaf9;
}

.elig-choice.is-selected {
    border-color: #20b9b8;
    background: #eafaf9;
    box-shadow: 0 0 0 3px rgba(32, 185, 184, 0.18);
}

.elig-submit {
    width: 100%;
    min-height: 56px;
    margin-top: 0.5rem;
    padding: 1rem 1.5rem;
    background: var(--cta-teal);
    color: var(--color-white);
    border: none;
    border-radius: var(--border-radius-full);
    font-family: inherit;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}

.elig-submit:hover {
    background: var(--cta-teal-hover);
}

.elig-submit[disabled] {
    opacity: 0.6;
    cursor: not-allowed;
}

.elig-micro {
    margin-top: 0.85rem;
    font-size: 0.8rem;
    line-height: 1.45;
    color: var(--color-text-light);
    text-align: center;
}

.elig-back {
    margin-top: 1rem;
    padding: 0.5rem 0;
    min-height: 44px;
    background: none;
    border: none;
    font-family: inherit;
    font-size: 0.9rem;
    color: var(--color-text-light);
    cursor: pointer;
    text-decoration: underline;
}

.elig-tel-fallback {
    display: block;
    margin-top: 0.85rem;
    text-align: center;
    font-size: 0.95rem;
    color: var(--color-primary);
    text-decoration: underline;
    text-underline-offset: 3px;
    min-height: 44px;
    line-height: 44px;
}

/* Écran verdict */
.elig-verdict-title {
    font-family: 'Jost', sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 0.75rem;
}

.elig-verdict.is-ok .elig-verdict-title {
    color: #1c8f56;
}

.elig-verdict-recap {
    margin: 0 0 1rem;
    padding: 0.85rem 1rem;
    background: #f6f9fb;
    border-left: 3px solid #20b9b8;
    border-radius: 6px;
    font-size: 0.9rem;
    line-height: 1.5;
}

.elig-verdict-reste {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 0.35rem;
}

.elig-verdict-note {
    font-size: 0.85rem;
    color: var(--color-text-light);
    margin-bottom: 1rem;
}

.elig-loader {
    text-align: center;
    padding: 1.5rem 0;
    font-size: 0.95rem;
    color: var(--color-text-light);
}

.elig-success {
    text-align: center;
}

.section-cta-form .elig-box {
    box-shadow: var(--shadow-lg);
}

/* --------------------------------------------------------------------------
   SECTION "POURQUOI 1 €" (§5.3)
   -------------------------------------------------------------------------- */
.section-pourquoi-1e {
    background: var(--color-white);
}

.calcul-devis {
    max-width: 720px;
    margin: 0 auto 1.25rem;
    background: #f6f9fb;
    border: 1px solid #dfe6ec;
    border-radius: 12px;
    padding: 1.5rem;
}

.calcul-ligne {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
    padding: 0.6rem 0;
    font-size: 1rem;
}

.calcul-ligne + .calcul-ligne {
    border-top: 1px dashed #cfd9e2;
}

.calcul-ligne .calcul-valeur {
    font-weight: 600;
    white-space: nowrap;
    text-align: right;
}

.calcul-total {
    margin-top: 0.5rem;
    padding-top: 1rem;
    border-top: 2px solid var(--color-primary);
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
}

.calcul-total .calcul-label {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-primary);
}

.calcul-total .calcul-valeur {
    font-family: 'Jost', sans-serif;
    font-size: clamp(2.2rem, 7vw, 3rem);
    font-weight: 700;
    color: var(--cta-teal);
    line-height: 1;
}

.calcul-note {
    max-width: 720px;
    margin: 0 auto 2.5rem;
    font-size: 0.9rem;
    color: var(--color-text-light);
    text-align: center;
}

.pourquoi-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.pourquoi-card {
    background: #f6f9fb;
    border-radius: 12px;
    padding: 1.5rem;
}

.pourquoi-card h3 {
    font-family: 'Jost', sans-serif;
    font-size: 1.1rem;
    color: var(--color-primary);
    margin-bottom: 0.6rem;
}

.pourquoi-card p {
    font-size: 0.98rem;
    line-height: 1.55;
}

@media (max-width: 900px) {
    .pourquoi-grid {
        grid-template-columns: 1fr;
    }
    .calcul-ligne {
        flex-direction: column;
        gap: 0.15rem;
    }
    .calcul-ligne .calcul-valeur {
        text-align: left;
    }
}

/* --------------------------------------------------------------------------
   PARCOURS EN 5 ÉTAPES (§5.5)
   -------------------------------------------------------------------------- */
.section-parcours {
    background: #F6fbfd;
}

.parcours-list {
    max-width: 860px;
    margin: 0 auto;
}

.parcours-item {
    display: flex;
    gap: 1.25rem;
    padding: 1.1rem 0;
    border-bottom: 1px solid #dfe6ec;
}

.parcours-item:last-child {
    border-bottom: none;
}

.parcours-num {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--cta-teal);
    color: var(--color-white);
    font-family: 'Jost', sans-serif;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.parcours-item h3 {
    font-family: 'Jost', sans-serif;
    font-size: 1.05rem;
    color: var(--color-primary);
    margin-bottom: 0.25rem;
}

.parcours-item p {
    font-size: 0.98rem;
    line-height: 1.5;
}

/* --------------------------------------------------------------------------
   QUALITÉ DU CHANTIER (§5.6)
   -------------------------------------------------------------------------- */
.section-qualite {
    background: var(--color-white);
}

.qualite-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.qualite-item {
    display: flex;
    gap: 0.85rem;
    padding: 1.15rem;
    background: #f6f9fb;
    border-radius: 12px;
}

.qualite-item .check {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--color-success);
    color: var(--color-white);
    font-size: 13px;
    font-weight: 700;
}

.qualite-item h3 {
    font-size: 1rem;
    color: var(--color-primary);
    margin-bottom: 0.2rem;
}

.qualite-item p {
    font-size: 0.95rem;
    line-height: 1.5;
}

.qualite-nosoustraitance {
    margin-top: 0.5rem;
    padding: 1.5rem;
    border-radius: 12px;
    background: var(--color-primary);
    color: var(--color-white);
    text-align: center;
}

.qualite-nosoustraitance h3 {
    color: var(--color-white);
    font-family: 'Jost', sans-serif;
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.qualite-nosoustraitance p {
    opacity: 0.92;
}

.benefices-condense {
    max-width: 860px;
    margin: 2.5rem auto 0;
    padding-top: 1.5rem;
    border-top: 1px solid #dfe6ec;
}

.benefices-condense li {
    display: flex;
    gap: 0.6rem;
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.benefices-condense .check {
    color: var(--color-success);
    font-weight: 700;
}

@media (max-width: 768px) {
    .qualite-grid {
        grid-template-columns: 1fr;
    }
}

/* --------------------------------------------------------------------------
   PREUVE - PHOTOS DE CHANTIER (§5.7)
   -------------------------------------------------------------------------- */
.section-preuve {
    background: #F6fbfd;
}

.preuve-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.preuve-figure {
    margin: 0;
}

.preuve-figure img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 12px;
}

.preuve-figure figcaption {
    margin-top: 0.6rem;
    font-size: 0.92rem;
    color: var(--color-text-light);
}

/* Encart en attente de photo réelle - à remplacer par un <img> */
.preuve-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    aspect-ratio: 4 / 3;
    border: 2px dashed #b9c7d3;
    border-radius: 12px;
    background: #eef4f8;
    color: #8a9aa8;
    font-size: 0.9rem;
    text-align: center;
    padding: 1rem;
}

@media (max-width: 900px) {
    .preuve-grid {
        grid-template-columns: 1fr;
    }
}

/* --------------------------------------------------------------------------
   FAQ (§5.8) - complète le style .faq-item de style.css
   -------------------------------------------------------------------------- */
.section-faq-b .faq-question {
    min-height: 56px;
}

/* --------------------------------------------------------------------------
   CTA FINAL (§5.9)
   -------------------------------------------------------------------------- */
.cta-final-raison {
    padding: 1rem 1.25rem;
    border-left: 3px solid #20b9b8;
    background: rgba(32, 185, 184, 0.08);
    border-radius: 6px;
    margin-bottom: 1.25rem;
}

/* Pastille sombre : le bloc est posé sur une photo, le bleu de lien
   d'origine y était illisible. */
.cta-tel-bloc {
    display: inline-flex;
    /* le parent est un conteneur flex : sans ça, la pastille est étirée */
    align-self: flex-start;
    width: fit-content;
    align-items: center;
    gap: 0.6rem;
    margin: 1.25rem 0;
    padding: 0.5rem 1.1rem;
    border-radius: var(--border-radius-full);
    background: rgba(22, 45, 74, 0.72);
    color: var(--color-white);
    font-size: 1.25rem;
    font-weight: 700;
}

.cta-tel-bloc a {
    color: var(--color-white);
}

.cta-tel-bloc svg {
    width: 22px;
    height: 22px;
}

.cta-tel-bloc a,
.hero-cta-secondaire a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
}

.cta-rdv-link .btn-rdv {
    font-size: 0.95rem;
}
