/* =====================================================================
   VIEDUSITE — tarifs, souscription, pages légales, nav multilingue, pied de page.
   Repris de la feuille Vie de l'Hôtel (web_vdh) et rattaché à la palette VIEDUSITE :
   les variables ci-dessous complètent celles de viedusite.css.
   ===================================================================== */
:root {
    color-scheme: light;
    --alert: #1f7a8c;
    --alert-dark: #004858;
    --alert-light: #658690;
    --accent-dark: #00323e;
    --accent-light: #9fc3cc;
    --gift: #c2410c;              /* offres (essai, mois offerts) */
    --gift-bg: #fff4e6;
    --gray-400: #9ca3af;
}

.section-container.narrow { max-width: 800px; }
.hero-badge.light { background: rgba(255,255,255,0.12); color: #fff; border-color: rgba(255,255,255,0.25); }
.nav-links { align-items: center; }
.nav-links a.is-active { color: var(--primary); font-weight: 700; }

/* Sélecteur de langue FR·PT : discret, la langue active en évidence. */
.nav-lang {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
.nav-lang a {
    font-size: 0.8rem;
    letter-spacing: 0.4px;
    color: var(--gray-700);
    opacity: 0.6;
}
.nav-lang a.is-active {
    opacity: 1;
    font-weight: 700;
    color: var(--primary);
}
.nav-lang-sep { color: var(--gray-700); opacity: 0.4; font-size: 0.8rem; }

.btn-secondary-dark {
    display: inline-flex; align-items: center; gap: 0.5rem;
    background: var(--white); color: var(--dark);
    padding: 0.8rem 1.6rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    border: 1px solid var(--gray-300);
    transition: all 0.3s;
}
.btn-secondary-dark:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.pricing-hero, .onboarding-hero, .success-hero, .legal-hero {
    background: var(--gradient-2);
    padding-top: 9rem;
    padding-bottom: 4rem;
    color: white;
    position: relative;
    overflow: hidden;
}
.pricing-hero::before, .onboarding-hero::before, .success-hero::before {
    content: '';
    position: absolute;
    top: -40%; right: -10%;
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(31,122,140,0.15) 0%, transparent 70%);
    border-radius: 50%;
}
.pricing-title {
    font-size: 3rem;
    font-weight: 900;
    color: white;
    letter-spacing: -1.5px;
    line-height: 1.1;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}
.pricing-subtitle {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.7);
    max-width: 640px;
    line-height: 1.7;
    position: relative;
    z-index: 1;
}


/* ===== Packs / plans ===== */
.hero-from {
    color: #fff;
    margin: 1.4rem 0 0;
    font-size: 1.15rem;
    font-weight: 600;
}
.hero-from strong { font-size: 2.8rem; font-weight: 900; color: #fff; margin: 0 0.2rem; }
.hero-from-period { color: rgba(255, 255, 255, 0.8); font-size: 1rem; font-weight: 500; }

.billing-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.9rem;
    margin-top: 1.6rem;
}
.billing-opt { font-size: 0.95rem; font-weight: 600; color: rgba(255,255,255,0.7); }
.billing-opt.is-active { color: #fff; }
.billing-opt em { font-style: normal; font-weight: 700; color: #ffd9c2; }
.billing-switch { position: relative; display: inline-block; width: 50px; height: 28px; }
.billing-switch input { opacity: 0; width: 0; height: 0; }
.billing-slider {
    position: absolute; cursor: pointer; inset: 0;
    background: rgba(255,255,255,0.35); border-radius: 999px; transition: 0.2s;
}
.billing-slider::before {
    content: ""; position: absolute; height: 22px; width: 22px; left: 3px; top: 3px;
    background: #fff; border-radius: 50%; transition: 0.2s;
}
.billing-switch input:checked + .billing-slider { background: var(--alert); }
.billing-switch input:checked + .billing-slider::before { transform: translateX(22px); }

.plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 1.4rem;
    align-items: stretch;
}
/* Six offres au catalogue : trois par ligne se lisent mieux qu'une bande de six
   cartes étroites, et le calibre croissant reste évident (1-3-5 puis 10-20-illimité). */
@media (min-width: 1025px) {
    .plans-grid { grid-template-columns: repeat(3, 1fr); }
}
.plan-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--white);
    border: 1px solid var(--gray-300);
    border-radius: 18px;
    padding: 1.8rem 1.5rem;
    box-shadow: 0 12px 30px rgba(0,0,0,0.05);
}
.plan-card--featured {
    border: 2px solid var(--alert);
    box-shadow: 0 18px 44px rgba(31,122,140,0.20);
}
.plan-card--flex { background: var(--gray-100); }
.plan-card--base {
    background: var(--gray-100);
    border-style: dashed;
    border-color: var(--gray-500);
}
.plan-card--base .plan-from { font-size: 0.85rem; color: var(--gray-700); align-self: baseline; }
.plan-badge {
    position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
    background: var(--alert); color: #fff; font-size: 0.78rem; font-weight: 800;
    padding: 0.3rem 0.9rem; border-radius: 999px; white-space: nowrap;
}
.plan-head h3 { font-size: 1.3rem; font-weight: 800; color: var(--dark); margin: 0 0 0.3rem; }
.plan-tagline { font-size: 0.88rem; color: var(--gray-700); margin: 0 0 1rem; min-height: 2.2em; }
.plan-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0.35rem; margin-bottom: 0.2rem; }
.plan-from { font-size: 0.85rem; color: var(--gray-700); }
.plan-amount { font-size: 2rem; font-weight: 900; color: var(--dark); }
.plan-period { font-size: 0.85rem; color: var(--gray-700); }
.plan-ttc { font-size: 0.85rem; color: var(--gray-700); margin: 0.1rem 0 0.5rem; }
.plan-ttc strong { color: var(--dark); font-weight: 700; }
.plan-vat-note { color: var(--gray-500); }
.plan-peragent { font-size: 0.85rem; color: var(--gray-700); margin: 0.1rem 0 0.6rem; }
.plan-saving { font-size: 0.85rem; color: var(--gray-700); margin: 0 0 1rem; }
.plan-saving-strike { text-decoration: line-through; opacity: 0.7; }
.plan-saving strong { color: #15803d; font-weight: 800; }
.plan-features { list-style: none; margin: 0 0 1.4rem; padding: 0; flex: 1; }
.plan-features li { font-size: 0.9rem; color: var(--gray-700); padding: 0.32rem 0; }
.plan-features strong { color: var(--dark); }
.plan-cta { width: 100%; justify-content: center; margin-top: auto; }
/* L'attribut [hidden] doit l'emporter sur .plan-card { display:flex } */
.plan-card[hidden] { display: none; }

/* Bouton « Autres packs » */
.plans-more { display: flex; justify-content: center; margin: 1.6rem 0 0; }
.btn-more-packs {
    display: inline-flex; align-items: center; gap: 0.4rem;
    background: var(--white); color: var(--dark);
    border: 1px solid var(--gray-300); border-radius: 999px;
    padding: 0.6rem 1.4rem; font-size: 0.92rem; font-weight: 700;
    cursor: pointer; transition: border-color 0.15s, box-shadow 0.15s;
}
.btn-more-packs:hover { border-color: var(--gray-500); box-shadow: 0 4px 14px rgba(0,0,0,0.06); }
.plans-more-chevron { transition: transform 0.2s; }
.btn-more-packs.is-open .plans-more-chevron { transform: rotate(180deg); }

.plans-note { text-align: center; font-size: 0.92rem; color: var(--gray-700); margin: 1.8rem 0 0; }

.quote-reco {
    flex: 1; min-width: 280px;
    background: #ecfdf3; border: 2px solid #6ee7a8; border-radius: 12px;
    padding: 0.85rem 1.1rem; color: #166534;
    box-shadow: 0 6px 18px rgba(22,101,52,0.14);
    animation: reco-pop 0.25s ease;
}
@keyframes reco-pop { from { opacity: 0; transform: scale(0.97); } to { opacity: 1; transform: scale(1); } }
.quote-reco-head { font-size: 1rem; font-weight: 800; color: #14532d; line-height: 1.3; }
.quote-reco-head strong { color: #14532d; }
.quote-reco-body { font-size: 0.85rem; color: #166534; margin: 0.25rem 0 0.7rem; line-height: 1.4; }
.quote-reco-body strong { color: #14532d; font-weight: 800; }
.quote-reco-cta {
    display: inline-flex; align-items: center; justify-content: center;
    background: #15803d; color: #fff; font-weight: 700; font-size: 0.88rem;
    padding: 0.5rem 1rem; border-radius: 8px; text-decoration: none; white-space: nowrap;
    transition: filter 0.15s ease;
}
.quote-reco-cta:hover { filter: brightness(1.08); }
/* Seuil de rentabilité du pack : information sobre, sous le prix. Elle protège le
   visiteur d'un achat trop tôt — un pack à prix fixe reste plus cher que l'à-la-carte
   tant que le forfait de base couvre son besoin. */
.plan-breakeven {
    font-size: 0.82rem;
    color: var(--gray-500);
    margin: -0.2rem 0 0.6rem;
}

/* Dans le tunnel, la suggestion occupe toute la largeur sous le récapitulatif
   (sur la page tarifs elle est en colonne à côté du champ). */
.onboarding-reco {
    margin-top: 1rem;
    min-width: 0;
}

.quote-reco-actions { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; }
/* « Non merci » : volontairement discret — c'est une sortie, pas une action mise
   en avant, et elle ne doit pas concurrencer le CTA du pack. */
.quote-reco-dismiss {
    background: none; border: none; cursor: pointer;
    font-family: inherit; font-size: 0.82rem; font-weight: 600;
    color: #166534; opacity: 0.75; text-decoration: underline;
    padding: 0.5rem 0.2rem;
}
.quote-reco-dismiss:hover { opacity: 1; }

/* Récap pack dans l'onboarding */
.pack-recap {
    background: var(--gray-100); border: 1px solid var(--gray-300);
    border-radius: 14px; padding: 1.3rem 1.4rem;
}
.pack-recap-head strong { font-size: 1.15rem; color: var(--dark); }
.pack-recap-head span { display: block; font-size: 0.88rem; color: var(--gray-700); margin-top: 0.2rem; }
.pack-recap-list { list-style: none; margin: 0.9rem 0; padding: 0; }
.pack-recap-list li { font-size: 0.92rem; color: var(--gray-700); padding: 0.28rem 0; }
.pack-recap-list strong { color: var(--dark); }
.pack-recap-line {
    display: flex; justify-content: space-between; align-items: baseline;
    padding: 0.3rem 0; font-size: 0.95rem; color: var(--gray-700);
}
.pack-recap-line:first-of-type { border-top: 1px solid var(--gray-300); padding-top: 0.9rem; }
.pack-recap-line strong { color: var(--dark); font-weight: 700; }
.pack-recap-total {
    display: flex; justify-content: space-between; align-items: baseline;
    border-top: 1px solid var(--gray-300); margin-top: 0.3rem; padding-top: 0.9rem; font-size: 1rem; color: var(--gray-700);
}
.pack-recap-total strong { font-size: 1.3rem; font-weight: 900; color: var(--alert); }
.pack-recap-change { display: inline-block; margin-top: 0.9rem; font-size: 0.88rem; color: var(--gray-700); }

/* Popup CGV / RGPD */
.legal-modal { position: fixed; inset: 0; z-index: 1000; display: none; }
.legal-modal.is-open { display: block; }
.legal-modal-backdrop { position: absolute; inset: 0; background: rgba(10, 20, 30, 0.6); }
.legal-modal-box {
    position: absolute; top: 5vh; left: 50%; transform: translateX(-50%);
    width: min(900px, 92vw); height: 90vh; background: #fff; border-radius: 16px;
    overflow: hidden; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
    display: flex; flex-direction: column;
}
.legal-modal-close {
    position: absolute; top: 10px; right: 14px; z-index: 2;
    border: none; background: rgba(0, 0, 0, 0.06); width: 36px; height: 36px;
    border-radius: 50%; font-size: 1.5rem; line-height: 1; cursor: pointer; color: var(--dark);
}
.legal-modal-close:hover { background: rgba(0, 0, 0, 0.12); }
.legal-modal-frame { flex: 1; width: 100%; border: 0; }
body.modal-locked { overflow: hidden; }

/* Confirmation de souscription : sous-titre centré */
.success-hero { text-align: center; }
.success-hero .pricing-subtitle {
    text-align: center;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}


/* ============= BUNDLE GRID (toutes fonctionnalités incluses) ============= */
.bundle-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem 2rem;
    margin-top: 2rem;
}
.bundle-item {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    font-size: 0.95rem;
    color: var(--gray-700);
    line-height: 1.5;
    padding: 0.6rem 0;
}
.bundle-check {
    width: 24px; height: 24px;
    min-width: 24px;
    border-radius: 50%;
    background: #ecfdf5;
    color: var(--success);
    display: flex; align-items: center; justify-content: center;
    font-size: 0.85rem;
    font-weight: 800;
}

/* Live summary (onboarding) */
.live-summary {
    background: var(--gray-100);
    border: 1px solid var(--gray-300);
    border-radius: 12px;
    padding: 1rem 1.2rem;
    margin-top: 1rem;
}
.live-summary .ls-row {
    display: flex;
    justify-content: space-between;
    padding: 0.35rem 0;
    font-size: 0.9rem;
    color: var(--gray-700);
}
.live-summary .ls-row strong { color: var(--dark); }
.live-summary .ls-row.total {
    border-top: 1px solid var(--gray-300);
    margin-top: 0.4rem;
    padding-top: 0.7rem;
    font-size: 1rem;
}
.live-summary .ls-row.total strong { color: var(--alert); font-weight: 900; font-size: 1.15rem; }


/* ============= ONBOARDING ============= */
.onboarding-section { background: var(--gray-100); padding-bottom: 7rem; }

.alert-error {
    background: #fef2f2;
    border: 1px solid #fca5a5;
    color: var(--alert-dark);
    padding: 1rem 1.2rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    font-weight: 500;
}
.alert-warning {
    background: #fff7ed;
    border: 1px solid #fdba74;
    color: #9a3412;
    padding: 1rem 1.2rem;
    border-radius: 12px;
    font-size: 0.95rem;
}
.alert-success {
    background: #ecfdf3;
    border: 1px solid #6ee7a8;
    color: #166534;
    padding: 1rem 1.2rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    font-weight: 500;
}

.onboarding-form {
    background: var(--white);
    border-radius: 18px;
    padding: 2rem;
    box-shadow: 0 8px 30px rgba(0,0,0,0.06);
    border: 1px solid var(--gray-300);
}
.onboarding-form fieldset {
    border: none;
    padding: 0 0 2rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--gray-100);
}
.onboarding-form fieldset:last-of-type { border-bottom: none; }

.onboarding-form legend {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}
.step-num {
    width: 28px; height: 28px;
    border-radius: 50%;
    background: var(--alert);
    color: white;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
}
.legend-help {
    font-size: 0.85rem;
    color: var(--gray-500);
    margin: -0.5rem 0 1rem;
}
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}
/* Civilité + prénom + nom : la civilité est un choix court, elle ne mérite pas
   le tiers de la ligne. */
.form-row--identity {
    grid-template-columns: 9rem 1fr 1fr;
}
/* Raison sociale + SIREN + TVA : le SIREN fait 9 chiffres, la raison sociale
   mérite la place restante. */
.form-row--company {
    grid-template-columns: 1.4fr 1fr 1.2fr;
}
.form-row label, .onboarding-form label.full {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}
.onboarding-form label.full {
    margin-bottom: 1rem;
}
.onboarding-form label > span {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gray-700);
}
.onboarding-form input[type="text"],
.onboarding-form input[type="email"],
.onboarding-form input[type="tel"],
.onboarding-form input[type="number"],
.onboarding-form select,
.onboarding-form textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--gray-300);
    border-radius: 10px;
    font-size: 0.95rem;
    font-family: inherit;
    transition: all 0.2s;
    background: var(--white);
}
/* Les exemples (adresse, ville…) doivent se lire comme des exemples : sans couleur
   déclarée, le gris par défaut du navigateur est assez foncé pour les faire passer
   pour une saisie déjà présente. */
.onboarding-form ::placeholder {
    color: var(--gray-400);
    opacity: 1; /* Firefox applique sinon une opacité par défaut qui délave la couleur */
}

/* Couleurs explicites sur le <select> et ses options : certains navigateurs
   reprennent celles du contrôle pour peindre la liste déroulée. */
.onboarding-form select { color: var(--dark); }
.onboarding-form select option { color: var(--dark); background: var(--white); }

.onboarding-form textarea {
    resize: vertical;
    min-height: 130px;
    line-height: 1.5;
}
.onboarding-form input:focus,
.onboarding-form select:focus,
.onboarding-form textarea:focus {
    outline: none;
    border-color: var(--alert);
    box-shadow: 0 0 0 3px rgba(31,122,140,0.1);
}

/* Téléphone : indicatif pays et numéro sont deux champs distincts (transmis
   séparément à iubihub), présentés comme un seul contrôle. L'indicatif garde une
   largeur fixe pour que le numéro occupe tout le reste de la colonne. */
.phone-group {
    display: grid;
    grid-template-columns: 6.5rem 1fr;
    gap: 0.5rem;
}
.onboarding-form .phone-group select { padding-inline: 0.6rem; }

/* Sans min-width: 0, un champ de grille ne descend pas sous la largeur de son
   contenu (placeholder, libellé long) et déborde de sa colonne. */
.form-row > label { min-width: 0; }

/* Mobile : un champ par ligne, en pleine largeur. Seuls code postal et ville
   restent côte à côte (le code postal est court). */
@media (max-width: 640px) {
    .form-row,
    .form-row--identity,
    .form-row--company { grid-template-columns: 1fr; }
    .form-row--address { grid-template-columns: 7.5rem 1fr; }
}

/* Honeypot anti-bot : retiré du flux et invisible, mais pas display:none (certains
   bots ignorent les champs masqués ainsi ; on le sort juste de l'écran). */
.hp-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* Plan selector */
.plan-selector {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.plan-radio { cursor: pointer; }
.plan-radio input { display: none; }
.plan-radio-card {
    border: 2px solid var(--gray-300);
    border-radius: 14px;
    padding: 1.2rem;
    transition: all 0.2s;
    background: var(--white);
    position: relative;
}
.plan-radio input:checked + .plan-radio-card {
    border-color: var(--alert);
    background: #fef2f2;
    box-shadow: 0 8px 20px rgba(31,122,140,0.12);
}
.plan-radio-card h4 {
    font-size: 1rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 0.2rem;
}
.plan-radio-card p {
    font-size: 0.78rem;
    color: var(--gray-500);
    margin-bottom: 0.6rem;
}
.plan-radio-card strong {
    font-size: 1.1rem;
    color: var(--alert);
    font-weight: 800;
}
.plan-radio-card strong small {
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--gray-500);
    margin-left: 0.3rem;
}
.plan-radio-badge {
    position: absolute;
    top: -10px;
    right: 10px;
    background: var(--alert);
    color: white;
    font-size: 0.7rem;
    padding: 0.2rem 0.6rem;
    border-radius: 100px;
    font-weight: 700;
}

/* Addons */
.addons-pick { display: flex; flex-direction: column; gap: 0.5rem; }
.addons-pick-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gray-700);
}
.addon-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.8rem;
    border: 1px solid var(--gray-300);
    border-radius: 100px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
    background: var(--white);
}
.addon-chip:has(input:checked) {
    border-color: var(--alert);
    background: #fef2f2;
    color: var(--alert-dark);
}
.addon-chip input { accent-color: var(--alert); }

.check-line {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    margin-bottom: 0.8rem;
    font-size: 0.9rem;
    color: var(--gray-700);
    line-height: 1.5;
}
.check-line input[type="checkbox"] { margin-top: 0.25rem; accent-color: var(--alert); }
.check-line a { color: var(--alert); text-decoration: none; font-weight: 600; }
.check-line a:hover { text-decoration: underline; }

/* Payment method selector */
.pay-methods {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 1.2rem;
}
.pay-option {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    border: 2px solid var(--gray-300);
    border-radius: 12px;
    padding: 0.9rem 1.1rem;
    cursor: pointer;
    font-weight: 700;
    color: var(--dark);
    transition: all 0.2s;
    background: var(--white);
}
.pay-option:has(input:checked) {
    border-color: var(--alert);
    background: #fef2f2;
    box-shadow: 0 6px 16px rgba(31,122,140,0.12);
}
.pay-option input[type="radio"] { accent-color: var(--alert); }
.pay-panel[hidden] { display: none; }

.submit-cta {
    width: 100%;
    justify-content: center;
    padding: 1.05rem 2rem;
    font-size: 1.05rem;
    margin-top: 1rem;
}
.submit-help {
    font-size: 0.8rem;
    color: var(--gray-500);
    text-align: center;
    margin-top: 0.8rem;
    line-height: 1.5;
}

/* ============= SUCCESS ============= */
.success-hero { text-align: center; }
.success-icon {
    width: 80px; height: 80px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    background: var(--success);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: 700;
    box-shadow: 0 20px 40px rgba(16,185,129,0.3);
}
.success-hero h1 {
    font-size: 2.6rem;
    font-weight: 900;
    color: white;
    letter-spacing: -1px;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.success-section { background: var(--gray-100); padding-top: 3rem; }

.success-card {
    background: var(--white);
    border: 1px solid var(--gray-300);
    border-radius: 16px;
    padding: 1.8rem;
    margin-bottom: 1.2rem;
}
.success-card h3 {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 0.6rem;
}
.success-card p {
    font-size: 0.95rem;
    color: var(--gray-700);
    margin-bottom: 0.8rem;
    line-height: 1.6;
}
.success-recap {
    background: var(--white);
    border: 1px solid var(--gray-300);
    border-radius: 16px;
    padding: 1.8rem;
    margin-top: 2rem;
}
.success-recap h3 {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 1rem;
}
.success-recap table {
    width: 100%;
    border-collapse: collapse;
}
.success-recap td {
    padding: 0.7rem 0;
    border-bottom: 1px solid var(--gray-100);
    font-size: 0.92rem;
}
.success-recap td:first-child {
    color: var(--gray-500);
    width: 35%;
}
.success-recap tr:last-child td { border-bottom: none; }
.success-next { text-align: center; margin-top: 2rem; }


/* ============= FOOTER ============= */
footer {
    background: var(--dark);
    color: rgba(255,255,255,0.5);
    padding: 4rem 2rem 0;
    font-size: 0.9rem;
}
.footer-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2.5rem;
    padding-bottom: 3rem;
}
.footer-grid h4 {
    color: white;
    font-size: 1rem;
    font-weight: 800;
    margin-bottom: 0.8rem;
}
.footer-grid h5 {
    color: white;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.footer-grid ul { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.footer-grid a {
    color: rgba(255,255,255,0.55);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.2s;
}
.footer-grid a:hover { color: white; }
.footer-grid p { font-size: 0.85rem; line-height: 1.6; color: rgba(255,255,255,0.55); }
@media (max-width: 768px) {
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
    .footer-grid > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 420px) {
    .footer-grid { grid-template-columns: 1fr; }
}
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 1.5rem 0;
    text-align: center;
    font-size: 0.8rem;
}
.footer-bottom strong { color: white; font-weight: 700; }
/* Sigles expliqués : pointillé discret + infobulle native au survol. */
abbr[title] {
    text-decoration: underline dotted;
    text-underline-offset: 3px;
    cursor: help;
}

.footer-video {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    padding: 0.55rem 1.2rem;
    border-radius: 50px;
    background: transparent;
    color: rgba(255,255,255,0.8);
    border: 1px solid rgba(255,255,255,0.25);
    font: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}
.footer-video:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.45);
    color: var(--white);
}

.footer-bottom a { color: inherit; text-decoration: none; transition: opacity 0.2s; }
.footer-bottom a:hover { opacity: 0.75; text-decoration: underline; }


/* ===== Legal pages (CGV / RGPD) ===== */
.legal-section {
    padding: 3.5rem 0 4.5rem;
    background: var(--white);
}
.legal-content {
    color: var(--gray-700);
    line-height: 1.7;
    font-size: 0.98rem;
}
.legal-content .legal-intro {
    font-size: 1.05rem;
    color: var(--gray-900);
    background: var(--gray-100);
    border-left: 4px solid var(--alert);
    border-radius: 0 10px 10px 0;
    padding: 1.1rem 1.3rem;
    margin-bottom: 2rem;
}
.legal-content h2 {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--dark);
    margin: 2rem 0 0.6rem;
    padding-top: 1rem;
    border-top: 1px solid var(--gray-300);
}
.legal-content h2:first-of-type { border-top: none; padding-top: 0; }
.legal-content h3 {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--dark);
    margin: 0 0 0.5rem;
}
.legal-content p { margin-bottom: 0.9rem; }
.legal-content ul {
    margin: 0 0 1rem;
    padding-left: 1.3rem;
    list-style: disc;
}
.legal-content li { margin-bottom: 0.4rem; }
.legal-content a { color: var(--alert); font-weight: 600; text-decoration: none; }
.legal-content a:hover { text-decoration: underline; }
.legal-editor {
    margin-top: 2.5rem;
    padding: 1.4rem 1.6rem;
    background: var(--gray-100);
    border-radius: 12px;
}
.legal-editor .legal-note {
    font-size: 0.85rem;
    color: var(--gray-500);
    margin-top: 0.8rem;
    margin-bottom: 0;
}
.legal-back { margin-top: 2.5rem; }


/* =====================================================================
   VIE DE L'HÔTEL — offre temporaire, mise en avant de l'annuel, cartes
   ===================================================================== */

/* Bandeau « 1 mois d'essai gratuit » : fixé au-dessus de la navigation. */
:root { --trial-h: 42px; }
body:has(.trial-banner) { padding-top: var(--trial-h); }
body:has(.trial-banner) nav { top: var(--trial-h); }
.trial-banner {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1001;
    height: var(--trial-h);
    display: flex; align-items: center; justify-content: center; gap: 0.6rem;
    padding: 0 1rem;
    background: linear-gradient(90deg, #c2410c 0%, #ea580c 50%, #c2410c 100%);
    color: #fff; text-decoration: none; font-size: 0.92rem; white-space: nowrap; overflow: hidden;
}
.trial-banner:hover .trial-arrow { transform: translateX(3px); }
.trial-flash {
    display: inline-flex; align-items: center; gap: 0.4rem;
    background: rgba(255,255,255,0.18); border-radius: 999px;
    padding: 0.15rem 0.65rem; font-size: 0.72rem; font-weight: 800;
    text-transform: uppercase; letter-spacing: 0.06em;
}
.trial-banner strong { font-weight: 900; font-size: 1rem; }
.trial-extra { opacity: 0.95; }
.trial-extra em { font-style: normal; font-weight: 800; }
.trial-arrow { transition: transform 0.15s; }
@media (max-width: 760px) { .trial-extra { display: none; } }

/* Clignotement : net mais pas agressif (pas d'extinction complète). */
.trial-blink { animation: trial-blink 1.1s steps(1, end) infinite; }
@keyframes trial-blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
.trial-dot {
    width: 8px; height: 8px; border-radius: 50%; background: #fff; flex: none;
    box-shadow: 0 0 0 0 rgba(255,255,255,0.8);
    animation: trial-ping 1.4s ease-out infinite;
}
@keyframes trial-ping {
    0% { box-shadow: 0 0 0 0 rgba(255,255,255,0.8); }
    100% { box-shadow: 0 0 0 9px rgba(255,255,255,0); }
}
@media (prefers-reduced-motion: reduce) {
    .trial-blink, .trial-dot, .trial-pill .trial-dot { animation: none; }
}

/* Pastille d'essai dans les héros (page tarifs, souscription). */
.trial-pill {
    display: inline-flex; align-items: center; gap: 0.55rem;
    background: var(--gift); color: #fff;
    padding: 0.5rem 1.2rem; border-radius: 999px;
    font-size: 0.95rem; font-weight: 600; margin-bottom: 1.4rem;
    box-shadow: 0 8px 24px rgba(194,65,12,0.35);
}
.trial-pill strong { font-weight: 900; }

/* Logos */
.hero-logo { width: min(360px, 80%); height: auto; display: block; margin: 0 0 2rem; }
.footer-logo { width: 190px; height: auto; display: block; margin-bottom: 1rem; }

/* Avantages de l'offre sous le titre de la page tarifs */
.pricing-perks {
    list-style: none; display: flex; flex-wrap: wrap; justify-content: center;
    gap: 0.6rem 1.4rem; margin: 1.4rem 0 0; padding: 0; color: rgba(255,255,255,0.92);
}
.pricing-perks li { font-size: 0.98rem; }
.pricing-perks strong { color: #fff; }

/* « 2 mois offerts » : très visible, cliquable, et qui s'illumine en annuel. */
.billing-toggle { flex-wrap: wrap; margin-top: 2rem; }
.billing-opt { cursor: pointer; font-size: 1.05rem; }
.billing-gift {
    cursor: pointer;
    display: inline-flex; align-items: center; gap: 0.3rem;
    background: var(--gift-bg); color: var(--gift);
    border: 2px solid #fdba74; border-radius: 999px;
    padding: 0.4rem 1rem; font-size: 1.05rem; font-weight: 900;
    transform: rotate(-2deg);
    box-shadow: 0 6px 18px rgba(0,0,0,0.18);
    transition: transform 0.2s, background 0.2s, color 0.2s;
}
.billing-gift:hover { transform: rotate(0) scale(1.05); }
.billing-toggle.is-annual .billing-gift {
    background: var(--gift); color: #fff; border-color: var(--gift); transform: rotate(0) scale(1.08);
}
.billing-switch input:checked + .billing-slider { background: var(--gift); }
.billing-hint { margin: 0.9rem 0 0; color: rgba(255,255,255,0.85); font-size: 0.95rem; }
.billing-hint strong { color: #fff; }

/* Sélecteur Mensuel / Annuel dans chaque carte, synchronisé avec celui du haut. */
.card-billing {
    display: flex; gap: 0.25rem; margin: 0.4rem 0 1rem; padding: 0.25rem;
    background: var(--gray-100); border-radius: 999px;
}
.card-billing-opt {
    flex: 1; border: 0; border-radius: 999px; padding: 0.45rem 0.6rem;
    background: transparent; color: var(--dark); font: inherit; font-size: 0.9rem; font-weight: 600;
    cursor: pointer; transition: background 0.2s, color 0.2s;
}
.card-billing-opt:hover { background: rgba(0,0,0,0.05); }
.card-billing-opt.is-active { background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,0.12); }
.card-billing-opt[data-card-billing="year"].is-active { background: var(--gift); color: #fff; }
.card-billing-opt:focus-visible { outline: 2px solid var(--alert); outline-offset: 2px; }

/* Quatre packs : une seule rangée sur grand écran. */
@media (min-width: 1025px) {
    .plans-grid--four { grid-template-columns: repeat(4, 1fr); }
}
/* Cinq packs : une seule rangée sur grand écran. */
@media (min-width: 1200px) {
    .plans-grid--five { grid-template-columns: repeat(5, 1fr); gap: 1rem; }
    .plans-grid--five .plan-card { padding-left: 1.2rem; padding-right: 1.2rem; }
    .plans-grid--five .plan-amount { font-size: 1.7rem; }
}
.plan-card--featured { border-color: var(--alert); box-shadow: 0 18px 44px rgba(31,122,140,0.22); }
.plan-badge { background: var(--alert); }
.plan-saving {
    display: flex; align-items: center; gap: 0.4rem;
    background: var(--gift-bg); color: var(--gift);
    border-radius: 10px; padding: 0.45rem 0.7rem; margin: 0.2rem 0 0.6rem;
    font-size: 0.85rem; font-weight: 600; transition: background 0.2s, color 0.2s;
}
.plan-saving strong { color: var(--gift); font-weight: 900; }
.plan-saving.is-active { background: var(--gift); color: #fff; }
.plan-saving.is-active strong { color: #fff; }

/* Récapitulatif de souscription */
.pack-recap-gift {
    background: var(--gift-bg); color: var(--gift); border-radius: 10px;
    padding: 0.6rem 0.8rem; margin: 0.6rem 0; font-weight: 600;
}
.pack-recap-upsell {
    display: block; margin: 0.8rem 0 0.2rem; padding: 0.6rem 0.8rem;
    border: 2px dashed #fdba74; border-radius: 10px;
    background: var(--gift-bg); color: var(--gift); text-decoration: none; font-weight: 600;
}
.pack-recap-upsell:hover { background: #ffedd5; }


/* Héros de la page tarifs : tout centré (pastille, titre, avantages, bascule). */
.pricing-hero .section-container { text-align: center; }
.pricing-hero .pricing-subtitle { margin-left: auto; margin-right: auto; }

/* ===== Contact ===== */
.contact-section { background: var(--gray-100); padding: 4rem 2rem 6rem; }
.contact-container { max-width: 600px; }
.contact-form { display: flex; flex-direction: column; gap: 1.5rem; }
.contact-form label > span { display: block; font-weight: 600; margin-bottom: 0.4rem; color: var(--gray-700); }
.contact-form input, .contact-form textarea {
    width: 100%; padding: 0.75rem 1rem; border: 1px solid var(--gray-300); border-radius: 10px;
    font-size: 1rem; font-family: inherit; background: var(--white);
}
.contact-form textarea { resize: vertical; }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--alert); box-shadow: 0 0 0 3px rgba(31,122,140,0.12); }
.contact-hp { position: absolute; left: -9999px; }
.contact-submit { align-self: flex-start; }
.contact-submit[aria-busy="true"] { opacity: 0.75; cursor: wait; }
@keyframes contactSpin { to { transform: rotate(360deg); } }
.contact-spinner {
    display: inline-block; width: 1em; height: 1em; margin-right: 0.5em; vertical-align: -0.15em;
    border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%;
    animation: contactSpin 0.7s linear infinite;
}

/* ===== Accueil : aperçu des tarifs ===== */
.pricing-teaser { background: var(--gray-100); text-align: center; }
.pricing-teaser .section-subtitle { margin-left: auto; margin-right: auto; }
.pricing-teaser .plans-grid { text-align: left; margin-top: 2.5rem; }
.pricing-teaser-cta { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-top: 2.5rem; }

/* ===== Navigation : tient sur une ligne quelle que soit la langue ===== */
.nav-links { gap: 1.5rem; }
.nav-links a { white-space: nowrap; }
.nav-container .logo { flex: none; margin-right: 1.5rem; }
@media (max-width: 1180px) and (min-width: 769px) {
    .nav-links .nav-optional { display: none; }
    .nav-links { gap: 1.1rem; }
    .nav-links a { font-size: 0.85rem; }
}
@media (max-width: 768px) {
    body:has(.trial-banner) .nav-links { top: calc(64px + var(--trial-h)); }
}
