/* ═══════════════════════════════════════
   RESET & BASE
═══════════════════════════════════════ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    outline: none;
    list-style: none;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
}

:root {
    --green:     #007aff;
    --green-dk:  #005fd4;
    --teal:      #3CC6C3;
    --teal-dk:   #2aaeab;
    --grey-text: #737373;
    --grey-lt:   #b0b0b0;
    --bg:        #ffffff;
    --text:      #111111;
    --radius:    14px;
    --font:      "Poppins", sans-serif;
    --font-cta:  Arial, Helvetica, sans-serif;
}

html { font-size: 62.5%; scroll-behavior: smooth; }

body {
    background: var(--bg);
    font-family: var(--font);
    font-size: 1.4rem;
    color: var(--text);
    text-align: center;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

/* ═══════════════════════════════════════
   HEADER — CARTE LOGO + TAGLINE
═══════════════════════════════════════ */
.app-header {
    margin: 20px 16px;
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 18px 20px;
}

.app-icon {
    width: 80px;
    flex-shrink: 0;
    border-radius: 0;
    object-fit: contain;
}

.app-tagline {
    font-size: 1.4rem;
    font-weight: 700;
    color: #111111;
    text-align: left;
    line-height: 1.3;
}

/* ═══════════════════════════════════════
   CONTENU PRINCIPAL
═══════════════════════════════════════ */
.content {
    padding: 0 20px 40px;
}

h1 {
    font-size: 2.6rem;
    font-weight: 700;
    line-height: 1.25;
    margin: 28px 0 18px;
    color: var(--text);
}

h1 span {
    color: #007aff;
}

.subtitle {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 24px;
}

/* ═══════════════════════════════════════
   STEPPER
═══════════════════════════════════════ */
.stepper {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin: 0 auto 28px;
    width: fit-content;
    text-align: left;
}

.step {
    display: grid;
    grid-template-columns: 22px 1fr;
    grid-template-rows: auto auto;
    column-gap: 14px;
    align-items: start;
}

.step-dot {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid #444;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #444;
    background: #ffffff;
    position: relative;
    z-index: 1;
    grid-row: 1;
    grid-column: 1;
    flex-shrink: 0;
}

.step-dot svg { width: 14px; height: 14px; }

.step.active .step-dot {
    border-color: var(--green);
    background: var(--green);
}

.step.active .step-dot span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #fff;
    display: block;
}

.step-line {
    width: 2px;
    height: 28px;
    background: #e0e0e0;
    margin: 2px auto 2px;
    grid-row: 2;
    grid-column: 1;
    justify-self: center;
}

.step.active .step-line { background: var(--green); }

.step p {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--grey-lt);
    line-height: 1.3;
    grid-row: 1;
    grid-column: 2;
    padding-top: 2px;
}

.step.active p { color: var(--text); }

.step.last { grid-template-rows: auto; }

/* ═══════════════════════════════════════
   BOUTON CTA PRINCIPAL
═══════════════════════════════════════ */
/* ═══════════════════════════════════════
   ANIMATION CTA — POP + GLOW
═══════════════════════════════════════ */
@keyframes ctaPop {
    0%   { transform: scale(1);    box-shadow: 0 6px 20px rgba(0,122,255,0.35); }
    50%  { transform: scale(1.04); box-shadow: 0 8px 32px rgba(0,122,255,0.65), 0 0 0 8px rgba(0,122,255,0.15); }
    100% { transform: scale(1);    box-shadow: 0 6px 20px rgba(0,122,255,0.35); }
}

.btn-main {
    display: block;
    width: 100%;
    max-width: 420px;
    margin: 0 auto 28px;
    padding: 26px 24px;
    background: var(--green);
    color: #fff;
    font-family: var(--font-cta);
    font-size: 1.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(0, 122, 255, 0.35);
    animation: ctaPop 1.8s ease-in-out infinite;
    -webkit-appearance: none;
}

.btn-main:active {
    animation: none;
    background: var(--green-dk);
    transform: scale(0.98);
    box-shadow: 0 3px 10px rgba(0, 122, 255, 0.2);
}

.btn-main[disabled] {
    background: #c8d4e8 !important;
    color: #8a9ab5 !important;
    box-shadow: none !important;
    animation: none !important;
    cursor: not-allowed;
    pointer-events: none;
}

.btn-main:not([disabled]) {
    background: #007aff !important;
    color: #fff !important;
    animation: ctaPop 1.8s ease-in-out infinite !important;
    box-shadow: 0 6px 20px rgba(0,122,255,0.35) !important;
    pointer-events: auto;
}

.tarif {
    font-size: 1.2rem;
    color: var(--grey-text);
    font-weight: 600;
    margin-bottom: 32px;
}

/* ═══════════════════════════════════════
   FEATURES
═══════════════════════════════════════ */
.features { margin-bottom: 28px; }

.feature-row {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.feature-row.reverse { flex-direction: row-reverse; }

.feat-img { width: 38%; flex-shrink: 0; border-radius: 10px; }

.feat-text { text-align: left; }

.feat-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--text);
}

.feat-text p:last-child {
    font-size: 1.2rem;
    color: var(--grey-text);
    line-height: 1.5;
}

/* ═══════════════════════════════════════
   EXPLICATION
═══════════════════════════════════════ */
.explication {
    background: linear-gradient(160deg, #009AC9 0%, #3CC6C3 100%);
    border-radius: 16px;
    display: flex;
    align-items: flex-end;
    gap: 0;
    padding: 22px 20px 0 20px;
    overflow: hidden;
    margin-bottom: 32px;
    text-align: left;
}

.explication p {
    color: #fff;
    font-size: 1.3rem;
    font-weight: 600;
    line-height: 1.6;
    flex: 1;
    padding-bottom: 22px;
}

.explication .phone {
    width: 130px;
    flex-shrink: 0;
    align-self: flex-end;
}

/* ═══════════════════════════════════════
   STATS
═══════════════════════════════════════ */
.stats {
    display: flex;
    justify-content: space-evenly;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 32px;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.stat img { max-width: 60px; }
.stat .stat-note { max-width: 50px; }
.stat .stat-avis { max-width: 80px; }
.stat .stars { max-width: 70px; }

.stat p {
    font-size: 1.1rem;
    color: var(--grey-text);
    line-height: 1.3;
    text-align: center;
}

/* ═══════════════════════════════════════
   BOTTOM IMAGE
═══════════════════════════════════════ */
.bottom-img {
    width: 100%;
    height: 200px;
    background: url(../images/bottom.png) center/cover no-repeat;
    border-radius: 12px;
    margin-top: 8px;
}

/* ═══════════════════════════════════════
   FOOTER
═══════════════════════════════════════ */
footer {
    background: #ffffff;
    padding: 20px 0 30px;
    display: grid;
    justify-items: center;
    gap: 16px;
    border-top: 1px solid #e0e0e0;
}

.footer-logo { width: 100px; }

.int { width: 100px; height: auto; }

.menuFooter {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    justify-content: center;
}

footer a {
    color: #737373;
    font-size: 1.2rem;
    font-weight: 700;
    text-decoration: underline;
}

/* ═══════════════════════════════════════
   TEXTE LÉGAL + DESCRIPTION
═══════════════════════════════════════ */
.legal-consent {
    font-size: 1.15rem;
    color: #737373;
    line-height: 1.55;
    text-align: justify;
    margin-top: 3px;
}

.legal-link {
    color: #007aff;
    font-weight: 700;
    text-decoration: underline;
}

.legal-desc {
    font-size: 1.15rem;
    color: #737373;
    line-height: 1.65;
    text-align: justify;
    margin-top: 8px;
}

.legal-desc strong {
    color: #737373;
    font-weight: 700;
}

/* ═══════════════════════════════════════
   MEDIA QUERIES — DESKTOP
═══════════════════════════════════════ */
@media screen and (min-width: 768px) {
    .app-header { max-width: 600px; margin: 40px auto 0; }

    .hero { height: 320px; max-width: 600px; margin: 0 auto; }

    .content { max-width: 600px; margin: 0 auto; }

    h1 { font-size: 3.2rem; }

    .btn-main { font-size: 2rem; padding: 20px; }

    footer { max-width: 600px; margin: 0 auto; }
}

/* ═══════════════════════════════════════
   FORMULAIRE TRIFI INLINE
═══════════════════════════════════════ */
.cta {
    display: grid;
    justify-items: center;
    row-gap: 14px;
    margin-bottom: 10px;
}

.cta .btn-main { margin-bottom: 0; }
.cta .tarif { margin-top: 8px; }

.phone-wrapper {
    display: flex;
    align-items: center;
    width: 90%;
    background: #f5f5f5;
    border: 2px solid #e0e0e0;
    border-radius: 50px;
    padding: 0 18px;
    gap: 10px;
    transition: border-color 0.2s;
}

.phone-wrapper:focus-within { border-color: #007aff; }

.phone-icon {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    color: #888;
}

.phone-icon svg { width: 18px; height: 18px; }

.phone-prefix {
    font-family: var(--font);
    font-size: 1.8rem;
    font-weight: 600;
    color: #111111;
    flex-shrink: 0;
    border-right: 1px solid #ddd;
    padding-right: 10px;
    line-height: 1;
}

#phoneNumber {
    font-family: var(--font);
    font-size: 1.8rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-align: left;
    border: none;
    background: transparent;
    padding: 14px 0;
    width: 100%;
    color: #111111;
    -webkit-appearance: none;
}

#phoneNumber::placeholder { color: #bbb; letter-spacing: 4px; }

#error {
    color: #ff6b6b;
    font-size: 1.2rem;
    font-weight: 600;
}

.tarif {
    font-size: 1.2rem;
    color: var(--grey-text);
    font-weight: 600;
    text-align: center;
}
