:root {
    --terracotta: #c84b31;
    --terracotta-fonce: #a33a24;
    --terracotta-clair: #e8d5cc;
    --brun-encre: #2b221b;
    --brun-clair: #6b5d4f;
    --fond-creme: #fbf3e7;
    --beige-carte: #f3e4ce;
    --blanc: #fffaf2;
    --vert-ok: #4a7856;
    --rouge-erreur: #a33a24;
    --rayon: 4px;
    --rayon-grand: 6px;
    --ombre: 0 10px 30px rgba(43, 34, 27, 0.14);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Iowan Old Style', 'Palatino Linotype', 'Book Antiqua', Georgia, serif;
    color: var(--brun-encre);
    background: var(--fond-creme);
    line-height: 1.55;
}

.ui-sans, .champ label, .barre-reassurance, .badge-zone, .eyebrow, button, input, select, textarea, .meta-info {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

h1, h2, h3 {
    font-family: 'Iowan Old Style', 'Palatino Linotype', 'Book Antiqua', Georgia, serif;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.3px;
}

a { color: inherit; }

.conteneur {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== BANDEAU RÉASSURANCE ===== */
.barre-reassurance {
    background: var(--brun-encre);
    color: var(--blanc);
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    padding: 10px 16px;
    letter-spacing: 0.2px;
}

/* ===== HEADER MINIMAL — pas de navigation, pas de sortie ===== */
header.minimal {
    padding: 22px 0;
    text-align: center;
}

.logo {
    color: var(--brun-encre);
    font-size: 21px;
    font-weight: 800;
    font-family: 'Iowan Old Style', Georgia, serif;
    letter-spacing: -0.3px;
    text-decoration: none;
}
.logo span { color: var(--terracotta); }

/* ===== HERO — LE FORMULAIRE EST LE HERO ===== */
.hero {
    padding: 28px 0 60px;
}

.hero-centre {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 36px;
}

.badge-zone {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--beige-carte);
    color: var(--brun-clair);
    font-size: 13px;
    font-weight: 700;
    padding: 7px 16px;
    border-radius: 30px;
    margin-bottom: 22px;
}

.hero h1 {
    color: var(--brun-encre);
    font-size: 44px;
    margin-bottom: 18px;
}
.hero h1 em {
    color: var(--terracotta);
    font-style: normal;
}

.hero-sous-titre {
    color: var(--brun-clair);
    font-size: 18px;
    max-width: 540px;
    margin: 0 auto;
    font-family: 'Segoe UI', system-ui, sans-serif;
}

/* ===== PREUVE SOCIALE IMMÉDIATE ===== */
.preuve-sociale {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 28px;
    flex-wrap: wrap;
    margin: 28px auto 0;
    padding-top: 24px;
    border-top: 1px solid rgba(43,34,27,0.1);
    max-width: 680px;
    font-family: 'Segoe UI', system-ui, sans-serif;
}

.preuve-item { text-align: center; }
.preuve-item .chiffre {
    font-family: 'Iowan Old Style', Georgia, serif;
    font-size: 26px;
    font-weight: 800;
    color: var(--brun-encre);
    display: block;
}
.preuve-item .libelle {
    font-size: 12px;
    color: var(--brun-clair);
    font-weight: 600;
}

/* ===== FORMULAIRE — LE CŒUR DU TUNNEL ===== */
.carte-form {
    background: var(--blanc);
    border-radius: var(--rayon-grand);
    box-shadow: var(--ombre);
    padding: 36px;
    max-width: 540px;
    margin: 0 auto;
    border: 1px solid rgba(43,34,27,0.06);
    font-family: 'Segoe UI', system-ui, sans-serif;
}

.carte-form h2 {
    font-size: 22px;
    margin-bottom: 6px;
    color: var(--brun-encre);
    text-align: center;
}

.carte-form .sous-texte {
    color: var(--brun-clair);
    font-size: 14px;
    margin-bottom: 24px;
    text-align: center;
}

.barre-progression {
    display: flex;
    gap: 6px;
    margin-bottom: 24px;
}
.barre-progression .segment {
    height: 4px;
    flex: 1;
    background: var(--terracotta-clair);
    border-radius: 3px;
    transition: background 0.25s;
}
.barre-progression .segment.actif { background: var(--terracotta); }

.etape-form { display: none; }
.etape-form.visible { display: block; animation: apparition 0.25s ease; }

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

.options-grille {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 6px;
}

.option-carte {
    border: 1.5px solid rgba(43,34,27,0.14);
    border-radius: var(--rayon);
    padding: 16px 12px;
    text-align: center;
    cursor: pointer;
    font-size: 13.5px;
    font-weight: 700;
    color: var(--brun-encre);
    background: var(--fond-creme);
    transition: border-color 0.15s, background 0.15s;
    user-select: none;
}
.option-carte:hover { border-color: var(--terracotta); }
.option-carte.selectionnee {
    border-color: var(--terracotta);
    background: var(--terracotta-clair);
    color: var(--terracotta-fonce);
}
.option-carte .emoji { display: block; font-size: 22px; margin-bottom: 6px; }

.champ { margin-bottom: 16px; }

.champ label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: var(--brun-encre);
    margin-bottom: 6px;
}

.champ input,
.champ select,
.champ textarea {
    width: 100%;
    padding: 13px 14px;
    border: 1.5px solid rgba(43,34,27,0.16);
    border-radius: var(--rayon);
    font-size: 15px;
    font-family: 'Segoe UI', system-ui, sans-serif;
    color: var(--brun-encre);
    background: var(--fond-creme);
    transition: border-color 0.15s, background 0.15s;
}

.champ input:focus,
.champ select:focus,
.champ textarea:focus {
    outline: none;
    border-color: var(--terracotta);
    background: var(--blanc);
}

.champ-ligne {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.champ textarea {
    resize: vertical;
    min-height: 70px;
}

.boutons-navigation {
    display: flex;
    gap: 10px;
    margin-top: 8px;
}

.bouton-suivant,
.bouton-envoyer {
    flex: 1;
    background: var(--terracotta);
    color: var(--blanc);
    border: none;
    padding: 16px;
    border-radius: var(--rayon);
    font-size: 16.5px;
    font-weight: 800;
    cursor: pointer;
    transition: background 0.15s, transform 0.1s;
    letter-spacing: 0.2px;
}
.bouton-suivant:hover, .bouton-envoyer:hover { background: var(--terracotta-fonce); }
.bouton-suivant:active, .bouton-envoyer:active { transform: scale(0.98); }
.bouton-envoyer:disabled { opacity: 0.6; cursor: not-allowed; }

.bouton-precedent {
    background: transparent;
    color: var(--brun-clair);
    border: 1.5px solid rgba(43,34,27,0.16);
    padding: 16px 18px;
    border-radius: var(--rayon);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
}
.bouton-precedent:hover { border-color: var(--brun-clair); }

.mention-rgpd {
    font-size: 11.5px;
    color: #a89c8d;
    margin-top: 12px;
    text-align: center;
}

.message-retour {
    padding: 14px 16px;
    border-radius: var(--rayon);
    font-size: 14px;
    font-weight: 600;
    margin-top: 16px;
    display: none;
}
.message-retour.visible { display: block; }
.message-retour.succes { background: #e8f0e9; color: var(--vert-ok); }
.message-retour.erreur { background: #f5e2dc; color: var(--rouge-erreur); }

/* ===== TIMELINE ===== */
.section-etapes { padding: 64px 0; }

.section-titre { text-align: center; margin-bottom: 44px; }

.section-titre .eyebrow {
    color: var(--terracotta);
    font-weight: 800;
    font-size: 12.5px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 10px;
}

.section-titre h2 { font-size: 28px; color: var(--brun-encre); }

.timeline {
    max-width: 640px;
    margin: 0 auto;
}

.timeline-item {
    display: flex;
    gap: 20px;
    padding-bottom: 28px;
    position: relative;
}

.timeline-item:not(:last-child)::before {
    content: "";
    position: absolute;
    left: 11px;
    top: 28px;
    bottom: 0;
    width: 1.5px;
    background: rgba(43,34,27,0.15);
}

.timeline-point {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--terracotta);
    flex-shrink: 0;
    margin-top: 2px;
}

.timeline-contenu h3 {
    font-size: 17px;
    margin-bottom: 6px;
    color: var(--brun-encre);
}
.timeline-contenu p {
    color: var(--brun-clair);
    font-size: 14.5px;
    font-family: 'Segoe UI', system-ui, sans-serif;
}

/* ===== TÉMOIGNAGES ===== */
.section-galerie { padding: 0 0 64px; }

.galerie-grille {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.galerie-item {
    background: var(--beige-carte);
    border-radius: var(--rayon-grand);
    padding: 24px;
}

.galerie-item .type {
    color: var(--terracotta-fonce);
    font-weight: 800;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
    font-family: 'Segoe UI', system-ui, sans-serif;
}

.galerie-item .commentaire-client {
    font-size: 15px;
    color: var(--brun-encre);
    line-height: 1.55;
    margin-bottom: 12px;
}

.galerie-item .auteur {
    font-size: 12.5px;
    color: var(--brun-clair);
    font-weight: 700;
    font-family: 'Segoe UI', system-ui, sans-serif;
}

/* ===== RÉASSURANCES ===== */
.section-garanties {
    background: var(--brun-encre);
    padding: 52px 0;
}
.section-garanties .section-titre h2,
.section-garanties .section-titre .eyebrow { color: var(--blanc); }
.section-garanties .section-titre .eyebrow { color: #d99b87; }

.garanties-grille {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 880px;
    margin: 0 auto;
}

.garantie-item {
    text-align: center;
    color: #e8ddd0;
    font-family: 'Segoe UI', system-ui, sans-serif;
}
.garantie-item .icone { font-size: 30px; margin-bottom: 10px; display: block; }
.garantie-item h3 { font-size: 15px; color: var(--blanc); margin-bottom: 6px; font-family: 'Segoe UI', system-ui, sans-serif; }
.garantie-item p { font-size: 13px; color: #c4b7a8; }

/* ===== FAQ ===== */
.section-faq { padding: 64px 0; }

.faq-item {
    background: var(--blanc);
    border: 1.5px solid rgba(43,34,27,0.1);
    border-radius: var(--rayon-grand);
    margin-bottom: 10px;
    overflow: hidden;
    font-family: 'Segoe UI', system-ui, sans-serif;
}

.faq-question {
    padding: 18px 20px;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question .icone { color: var(--terracotta); font-size: 20px; transition: transform 0.2s; }
.faq-item.ouvert .faq-question .icone { transform: rotate(45deg); }

.faq-reponse {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease, padding 0.25s ease;
    color: var(--brun-clair);
    font-size: 14px;
    line-height: 1.6;
}

.faq-item.ouvert .faq-reponse {
    max-height: 300px;
    padding: 0 20px 18px;
}

/* ===== RAPPEL FINAL DU FORMULAIRE ===== */
.section-rappel-final {
    padding: 64px 0 76px;
    text-align: center;
}
.section-rappel-final h2 { font-size: 26px; margin-bottom: 12px; }
.section-rappel-final p { color: var(--brun-clair); font-family: 'Segoe UI', system-ui, sans-serif; margin-bottom: 28px; }

.bouton-rappel-final {
    display: inline-block;
    background: var(--terracotta);
    color: var(--blanc);
    padding: 18px 36px;
    border-radius: var(--rayon);
    font-weight: 800;
    font-size: 17px;
    text-decoration: none;
    font-family: 'Segoe UI', system-ui, sans-serif;
}
.bouton-rappel-final:hover { background: var(--terracotta-fonce); }

/* ===== FOOTER MINIMAL ===== */
footer.minimal {
    padding: 24px 0;
    text-align: center;
    font-size: 12px;
    color: #a89c8d;
    font-family: 'Segoe UI', system-ui, sans-serif;
}
footer.minimal a { color: #a89c8d; }

/* ===== BARRE FLOTTANTE MOBILE ===== */
.barre-flottante-mobile {
    display: none;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    background: var(--blanc);
    box-shadow: 0 -4px 20px rgba(43,34,27,0.15);
    padding: 12px 16px;
    z-index: 200;
    font-family: 'Segoe UI', system-ui, sans-serif;
}
.barre-flottante-mobile a {
    display: block;
    background: var(--terracotta);
    color: var(--blanc);
    text-align: center;
    padding: 14px;
    border-radius: var(--rayon);
    font-weight: 800;
    font-size: 15px;
    text-decoration: none;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 880px) {
    .hero h1 { font-size: 32px; }
    .garanties-grille { grid-template-columns: 1fr; gap: 28px; }
    .galerie-grille { grid-template-columns: 1fr; }
    .champ-ligne { grid-template-columns: 1fr; }
    .preuve-sociale { gap: 18px; }
    .carte-form { padding: 26px 22px; }
    .barre-flottante-mobile { display: block; }
    body { padding-bottom: 70px; }
}
