/* ============================================================
   BIMBEN — Feuille de style unique (THÈME SOMBRE CONTRASTÉ)
   Organisation :
   1.  Variables & reset
   2.  Base (typographie, liens, utilitaires)
   3.  Barre de contact (top bar)
   4.  En-tête & navigation (+ menu burger)
   5.  Hero (accueil)
   6.  Bandeau de page (pages intérieures)
   7.  Sections & titres
   8.  Cartes services
   9.  À propos
   10. Contact (encart + formulaire)
   11. Page Maintenance & Dépannage
   12. Page Tarifs (+ zones + tableau de prix)
   13. Page Assistance à distance
   14. Page Merci / Mentions légales
   15. Pied de page
   16. Bouton retour en haut
   17. Animations d'apparition
   18. Responsive (mobile-first : 768px, 992px, 1024px)

   Principe : fond de page profond, cartes nettement plus claires
   qui ressortent par le seul contraste de fond (ni bordure claire
   ni ombre claire). Les encarts à mettre en avant passent en bleu
   lumineux. Le bleu est la couleur d'ancrage ; aucun orange.
   ============================================================ */

/* ============================================================
   1. VARIABLES & RESET
   ============================================================ */

:root {
    /* Fonds — écart marqué entre les niveaux pour le contraste */
    --bg-page:     #162536;   /* fond de page global, le plus profond */
    --bg-surface:  #34516E;   /* cartes, encadrés : nettement plus clair */
    --bg-header:   #112332;   /* en-tête & top-bar — calé sur la teinte du logo */

    /* Texte — contrasté, blanc franc */
    --text-main:        #FFFFFF;   /* texte principal & titres */
    --text-on-surface:  #CBD8E5;   /* texte courant dans les cartes claires */
    --text-secondary:   #B8C8D8;   /* sous-titres, notes, nav au repos */

    /* Accents & bordures */
    --accent-sky:        #52CDFB;  /* titres d'accent, icônes, liens, filets */
    --accent-blue:       #1A8FE3;  /* boutons + fond des encarts mis en avant */
    --accent-blue-hover: #1373C0;  /* boutons au survol */
    --border:            #2E4A66;  /* bordures discrètes, séparateurs */

    /* Couleurs sémantiques (ni blanc ni orange) */
    --success:     #4FD18B;   /* « offert », coches de confiance */
    --danger:      #E5534B;   /* avertissement, erreur formulaire */
    --danger-text: #F2B8B5;   /* texte du message d'erreur */

    /* Profondeur (réservée aux éléments flottants, jamais claire) */
    --shadow: 0 6px 18px rgba(0, 0, 0, 0.45);

    /* Typo & rythme */
    --font: "Segoe UI", system-ui, -apple-system, sans-serif;
    --radius: 14px;
    --header-height: 84px;

    /* ------------------------------------------------------------
       Échelle typographique — pensée pour une lecture aisée à
       tout âge. Corps de texte généreux (18px), mentions jamais
       sous 16px, sous-titres nettement plus grands que le corps.
       ------------------------------------------------------------ */
    --fs-body:  1.125rem;  /* 18px — texte courant (listes, paragraphes) */
    --fs-note:  1rem;      /* 16px — plancher pour mentions / notes */
    --fs-lead:  1.3rem;    /* accroches, intro, prix mis en avant */
    --fs-h3:    1.45rem;   /* titres de cartes / sous-sections */
    --fs-h2:    1.9rem;    /* titres de section */
}

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

html {
    scroll-behavior: smooth;
    /* Les ancres ne passent pas sous l'en-tête sticky */
    scroll-padding-top: calc(var(--header-height) + 16px);
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation: none !important;
        transition: none !important;
    }
}

/* ============================================================
   2. BASE
   ============================================================ */

body {
    font-family: var(--font);
    background: var(--bg-page);
    color: var(--text-main);
    font-size: var(--fs-body);
    line-height: 1.7;
}

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

a {
    color: var(--accent-sky);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 3px solid var(--accent-sky);
    outline-offset: 2px;
}

/* Texte accessible aux lecteurs d'écran mais masqué visuellement */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ============================================================
   3. BARRE DE CONTACT (TOP BAR)
   ============================================================ */

.top-bar {
    background: var(--bg-header);
    color: var(--text-secondary);
    font-size: 0.95rem;
    border-bottom: 1px solid var(--border);
}

.top-bar-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 6px 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 24px;
}

.top-bar a {
    color: var(--text-main);
    text-decoration: none;
}

.top-bar a:hover {
    color: var(--accent-sky);
    text-decoration: underline;
}

/* ============================================================
   4. EN-TÊTE & NAVIGATION
   ------------------------------------------------------------
   Séparation par une fine bordure basse, jamais par une ombre.
   ============================================================ */

.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--bg-header);
    border-bottom: 1px solid var(--border);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 20px;
    min-height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

/* Logo SVG « dark » (assets/logo.svg) : il intègre son propre fond
   --bg-page, donc aucun conteneur clair n'est nécessaire. */
.logo-link {
    display: inline-flex;
    align-items: center;
}

.logo {
    height: 58px;
    width: auto;
}

/* --- Menu burger (visible sous 992px) --- */
.nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: transparent;
    border: 2px solid var(--border);
    border-radius: 8px;
    color: var(--text-main);
    font-size: 1.3rem;
    cursor: pointer;
}

.nav-toggle:hover {
    border-color: var(--accent-sky);
    color: var(--accent-sky);
}

/* --- Liens de navigation --- */
.nav {
    /* Mobile : panneau déroulant sous l'en-tête (fond profond pour
       garder les liens clairs lisibles), masqué par défaut */
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--bg-header);
    border-top: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.nav.open {
    display: flex;
}

.nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    padding: 14px 24px;
    border-bottom: 1px solid var(--border);
}

.nav a:hover {
    color: var(--accent-sky);
}

.nav a.active {
    color: var(--accent-sky);
    font-weight: 700;
}

/* ============================================================
   5. HERO (ACCUEIL)
   ============================================================ */

.hero {
    position: relative;
    color: var(--text-main);
    text-align: center;
    padding: 90px 20px;
    background-color: var(--bg-page);
    background-image: url("../assets/background.jpg");
    background-size: cover;
    background-position: center;
}

/* Overlay sombre cohérent avec le fond de page pour la lisibilité */
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(22, 37, 54, 0.80);
}

.hero > * {
    position: relative;
}

.hero h1 {
    font-size: 2.3rem;
    line-height: 1.25;
    margin-bottom: 16px;
    color: var(--text-main);
}

.hero p {
    font-size: var(--fs-lead);
    max-width: 620px;
    margin: 0 auto;
    color: var(--text-secondary);
}

.btn-cta {
    display: inline-block;
    margin-top: 28px;
    padding: 15px 38px;
    background: var(--accent-blue);
    color: #ffffff;
    font-weight: 600;
    font-size: 1.15rem;
    border-radius: 50px;
    text-decoration: none;
    transition: background 0.3s ease, transform 0.3s ease;
}

.btn-cta:hover {
    background: var(--accent-blue-hover);
    transform: translateY(-2px);
}

/* ============================================================
   6. BANDEAU DE PAGE (PAGES INTÉRIEURES)
   ============================================================ */

.page-header {
    background: var(--bg-page);
    color: var(--text-main);
    text-align: center;
    padding: 48px 20px;
    border-bottom: 1px solid var(--border);
}

.page-header h1 {
    font-size: 2.1rem;
    line-height: 1.25;
    color: var(--text-main);
}

.page-header p {
    margin-top: 10px;
    font-size: var(--fs-lead);
    color: var(--text-secondary);
}

/* ============================================================
   7. SECTIONS & TITRES
   ============================================================ */

.section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 64px 20px;
}

/* Sur ce thème très contrasté, les cartes (claires) ressortent
   directement sur le fond profond : pas de bande alternée, la
   classe est conservée pour ne pas toucher au HTML. */
.section-alt {
    background: transparent;
}

.section-title {
    text-align: center;
    color: var(--accent-sky);
    font-size: var(--fs-h2);
    margin-bottom: 12px;
}

/* Filet d'accent sous les titres de section */
.section-title::after {
    content: "";
    display: block;
    width: 60px;
    height: 3px;
    background: var(--accent-sky);
    margin: 14px auto 0;
    border-radius: 3px;
}

.section-subtitle {
    text-align: center;
    font-size: var(--fs-lead);
    color: var(--text-secondary);
    margin-bottom: 44px;
}

/* ============================================================
   8. CARTES SERVICES
   ------------------------------------------------------------
   Fond clair sur fond profond = contraste fort. Aucune bordure
   ni ombre : c'est l'écart de fond qui détache la carte.
   ============================================================ */

.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    align-items: stretch;
}

.card {
    display: flex;
    flex-direction: column;
    background: var(--bg-surface);
    padding: 36px 30px;
    border-radius: var(--radius);
}

.card i {
    font-size: 2.8rem;
    color: var(--accent-sky);
    text-align: center;
    margin-bottom: 18px;
}

.card h3 {
    color: var(--text-main);
    font-size: var(--fs-h3);
    text-align: center;
    margin-bottom: 8px;
}

.card h3::after {
    content: "";
    display: block;
    width: 40px;
    height: 3px;
    background: var(--accent-sky);
    margin: 10px auto 16px;
    border-radius: 3px;
}

.card ul {
    padding-left: 20px;
}

.card li {
    margin-bottom: 8px;
    color: var(--text-on-surface);
}

.card-link {
    display: inline-block;
    margin-top: auto;
    padding-top: 18px;
    text-align: center;
    font-weight: 600;
    color: var(--accent-sky);
}

.card-link:hover {
    text-decoration: underline;
}

/* ============================================================
   9. À PROPOS
   ============================================================ */

.about-box {
    max-width: 820px;
    margin: 0 auto;
    background: var(--bg-surface);
    padding: 48px 30px;
    border-radius: var(--radius);
    text-align: center;
}

.about-intro {
    color: var(--accent-sky);
    font-weight: 600;
    font-size: var(--fs-lead);
    margin-bottom: 20px;
}

.about-box p {
    color: var(--text-on-surface);
    max-width: 640px;
    margin: 0 auto 12px;
}

.about-box strong {
    color: var(--text-main);
}

/* ============================================================
   10. CONTACT
   ============================================================ */

.contact-container {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    align-items: start;
}

/* Encart d'appel = bloc lumineux mis en avant (fond bleu) */
.contact-box {
    background: var(--accent-blue);
    padding: 28px;
    border-radius: var(--radius);
}

.contact-box p {
    color: #ffffff;
    margin-bottom: 10px;
}

.contact-box strong {
    color: #ffffff;
}

.contact-box a {
    color: #ffffff;
    font-weight: 600;
    text-decoration: underline;
}

.contact-box .contact-phone {
    display: inline-block;
    margin-top: 10px;
    font-size: 1.55rem;
    color: #ffffff;
    text-decoration: none;
}

.contact-box .contact-phone:hover {
    text-decoration: underline;
}

/* Formulaire = carte claire */
.contact-form {
    background: var(--bg-surface);
    padding: 26px;
    border-radius: var(--radius);
}

.contact-form label {
    display: block;
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--accent-sky);
    margin-bottom: 6px;
}

/* Mention « (pour être rappelé) » dans un label */
.label-opt {
    font-weight: 400;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.contact-form input,
.contact-form textarea,
.contact-form select {
    width: 100%;
    padding: 13px;
    margin-bottom: 18px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-family: inherit;
    font-size: 1.05rem;
    background: var(--bg-page);
    color: var(--text-main);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: var(--text-secondary);
}

/* Les <option> héritent du fond système : on force des couleurs
   lisibles dans la liste déroulante ouverte */
.contact-form select option,
.contact-form select optgroup {
    background: var(--bg-page);
    color: var(--text-main);
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
    border-color: var(--accent-sky);
}

/* Indication de zone tarifaire (mise à jour par script.js) */
.zone-hint {
    margin: -8px 0 18px;
    padding: 10px 14px;
    border-radius: 8px;
    background: var(--bg-page);
    border-left: 4px solid var(--accent-sky);
    color: var(--text-main);
    font-size: var(--fs-note);
}

.zone-hint.offert {
    border-left-color: var(--success);
}

.contact-form button {
    width: 100%;
    padding: 14px;
    background: var(--accent-blue);
    color: #ffffff;
    border: none;
    border-radius: 30px;
    font-family: inherit;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.contact-form button:hover {
    background: var(--accent-blue-hover);
}

/* Message d'erreur d'envoi (affiché par script.js si ?erreur=1) */
.form-error {
    background: var(--bg-page);
    border-left: 4px solid var(--danger);
    color: var(--danger-text);
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 18px;
    font-size: 0.95rem;
}

/* Champ honeypot anti-spam : masqué pour les humains */
.hp-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* Consentement RGPD : case à cocher obligatoire */
.form-consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 18px;
    font-size: var(--fs-note);
    color: var(--text-on-surface);
}

.form-consent input[type="checkbox"] {
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
    margin-top: 2px;
    accent-color: var(--accent-sky);
    cursor: pointer;
}

.form-consent label {
    /* Annule les styles de label du formulaire (couleur/poids/taille) */
    margin: 0;
    font-weight: 400;
    font-size: var(--fs-note);
    color: var(--text-on-surface);
    cursor: pointer;
}

/* ============================================================
   11. PAGE MAINTENANCE & DÉPANNAGE
   ------------------------------------------------------------
   Bloc de texte long posé sur une surface claire (lecture).
   ============================================================ */

.content-box {
    max-width: 860px;
    margin: 0 auto;
    background: var(--bg-surface);
    padding: 40px 30px;
    border-radius: var(--radius);
}

.content-box h2 {
    color: var(--accent-sky);
    font-size: var(--fs-h3);
    margin: 32px 0 10px;
}

.content-box h2:first-child {
    margin-top: 0;
}

.content-box h2::after {
    content: "";
    display: block;
    width: 40px;
    height: 3px;
    background: var(--accent-sky);
    margin-top: 6px;
    border-radius: 3px;
}

.content-box p {
    color: var(--text-on-surface);
    margin-bottom: 14px;
}

.content-box ul {
    padding-left: 22px;
    margin-bottom: 18px;
}

.content-box li {
    margin-bottom: 6px;
    color: var(--text-on-surface);
}

.content-box .note {
    font-size: var(--fs-note);
    color: var(--text-on-surface);
    text-align: center;
    margin-top: 32px;
}

.devis-btn {
    text-align: center;
    margin-top: 28px;
}

/* ============================================================
   12. PAGE TARIFS
   ============================================================ */

.tarifs-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    align-items: stretch;
    max-width: 1100px;
    margin: 0 auto;
}

.tarif-card {
    display: flex;
    flex-direction: column;
    background: var(--bg-surface);
    padding: 34px 28px;
    border-radius: var(--radius);
}

.tarif-card h3 {
    color: var(--text-main);
    font-size: var(--fs-h3);
    margin-bottom: 6px;
}

.tarif-card h3::after {
    content: "";
    display: block;
    width: 40px;
    height: 3px;
    background: var(--accent-sky);
    margin-top: 8px;
    border-radius: 3px;
}

.tarif-price {
    margin: 14px 0;
    font-size: var(--fs-body);
    color: var(--text-on-surface);
}

.tarif-price strong {
    color: var(--accent-sky);
    font-size: 1.4rem;
}

.tarif-card ul {
    padding-left: 20px;
    margin-bottom: 22px;
}

.tarif-card li {
    margin-bottom: 8px;
    color: var(--text-on-surface);
}

.tarif-btn {
    margin-top: auto;
    display: inline-block;
    text-align: center;
    background: var(--accent-blue);
    color: #ffffff;
    padding: 12px 24px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s ease;
}

.tarif-btn:hover {
    background: var(--accent-blue-hover);
}

.tarifs-note {
    margin-top: 40px;
    text-align: center;
    font-size: var(--fs-note);
    color: var(--text-secondary);
}

/* Note « + forfait déplacement » au pied des cartes tarifs */
.tarif-zone-note {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px dashed var(--border);
    font-size: var(--fs-note);
    color: var(--text-on-surface);
}

/* --- Zones de déplacement --- */
.zones-intro {
    max-width: 720px;
    margin: 0 auto 36px;
    text-align: center;
    font-size: 1.15rem;
    color: var(--text-secondary);
}

.zones-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    max-width: 1100px;
    margin: 0 auto;
}

.zone-card {
    background: var(--bg-surface);
    padding: 28px 26px;
    border-radius: var(--radius);
    text-align: center;
}

.zone-card h3 {
    color: var(--accent-sky);
    font-size: var(--fs-h3);
    margin-bottom: 8px;
}

.zone-communes {
    color: var(--text-on-surface);
    font-size: var(--fs-body);
    margin-bottom: 10px;
}

.zone-time {
    color: var(--text-secondary);
    font-size: var(--fs-note);
    margin-bottom: 12px;
}

.zone-price {
    display: block;
    font-size: 1.7rem;
    font-weight: 700;
    color: var(--text-main);
}

.zone-price.offert {
    color: var(--success);
}

/* --- Tableau de prix (Configuration / Montage PC) --- */
.price-table-wrap {
    max-width: 860px;
    margin: 0 auto;
    overflow-x: auto;
}

.price-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-surface);
    border-radius: var(--radius);
    overflow: hidden;
}

.price-table caption {
    /* Légende pour lecteurs d'écran, masquée visuellement */
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}

.price-table th,
.price-table td {
    padding: 15px 18px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.price-table thead th {
    background: var(--bg-page);
    color: var(--text-main);
    font-size: 1.05rem;
}

.price-table tbody tr:last-child th,
.price-table tbody tr:last-child td {
    border-bottom: none;
}

.price-table tbody th {
    font-weight: 500;
    color: var(--text-on-surface);
}

.price-table td.price {
    font-weight: 700;
    color: var(--accent-sky);
    white-space: nowrap;
    text-align: right;
}

.price-table .price-old {
    font-weight: 400;
    color: var(--text-secondary);
    text-decoration: line-through;
    font-size: var(--fs-note);
}

/* Ligne « pack » = offre mise en avant (bandeau bleu lumineux) */
.price-table tr.pack th,
.price-table tr.pack td {
    background: var(--accent-blue);
    color: #ffffff;
}

.price-table tr.pack td.price {
    color: #ffffff;
}

.price-table tr.pack .price-old {
    color: rgba(255, 255, 255, 0.75);
}

/* ============================================================
   13. PAGE ASSISTANCE À DISTANCE
   ============================================================ */

/* --- Les 3 étapes = blocs lumineux mis en avant (fond bleu) --- */
.steps-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    max-width: 1000px;
    margin: 0 auto;
    list-style: none;   /* l'ol n'affiche pas ses numéros natifs */
}

.step-card {
    position: relative;
    background: var(--accent-blue);
    padding: 36px 26px 30px;
    border-radius: var(--radius);
    text-align: center;
}

.step-num {
    position: absolute;
    top: -18px;
    left: 50%;
    transform: translateX(-50%);
    width: 36px;
    height: 36px;
    line-height: 36px;
    background: var(--bg-page);
    color: var(--accent-sky);
    font-weight: 700;
    border-radius: 50%;
}

.step-card i {
    font-size: 2.2rem;
    color: #ffffff;
    margin-bottom: 14px;
}

.step-card p {
    color: #ffffff;
    font-size: 1.05rem;
}

/* --- Bloc de téléchargement --- */
.download-block {
    text-align: center;
    margin-top: 40px;
}

.download-block .btn-cta {
    margin-top: 0;
}

.download-meta {
    margin-top: 12px;
    font-size: var(--fs-note);
    color: var(--text-secondary);
}

/* --- Encart sécurité / confiance (encadré de contenu) --- */
.security-box {
    max-width: 820px;
    margin: 0 auto;
    background: var(--bg-surface);
    padding: 34px 30px;
    border-radius: var(--radius);
}

.security-box h2 {
    color: var(--accent-sky);
    font-size: var(--fs-h3);
    margin-bottom: 18px;
}

.security-box h2 i {
    color: var(--accent-sky);
    margin-right: 10px;
}

.security-box ul {
    list-style: none;
    padding: 0;
}

.security-box li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 12px;
    color: var(--text-on-surface);
}

.security-box li i {
    position: absolute;
    left: 0;
    top: 4px;
    color: var(--success);
}

/* Avertissement anti-arnaque : filet rouge (caution), pas d'orange */
.warning-box {
    margin-top: 22px;
    background: var(--bg-page);
    border-left: 4px solid var(--danger);
    padding: 16px 18px;
    border-radius: 8px;
    color: var(--text-main);
    font-size: 1.05rem;
}

.warning-box i {
    color: var(--danger);
    margin-right: 8px;
}

/* --- Pour qui / pour quoi --- */
.usage-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    max-width: 900px;
    margin: 0 auto;
}

.usage-card {
    background: var(--bg-surface);
    padding: 30px 28px;
    border-radius: var(--radius);
}

.usage-card h3 {
    color: var(--accent-sky);
    font-size: var(--fs-h3);
    margin-bottom: 14px;
}

.usage-card h3 i {
    color: var(--accent-sky);
    margin-right: 8px;
}

.usage-card ul {
    padding-left: 20px;
}

.usage-card li {
    margin-bottom: 8px;
    color: var(--text-on-surface);
}

.usage-card p {
    margin-top: 12px;
    color: var(--text-on-surface);
}

/* --- Appel à l'action final --- */
.cta-final {
    text-align: center;
    max-width: 640px;
    margin: 0 auto;
}

.cta-final p {
    color: var(--text-secondary);
}

.cta-final .cta-phone {
    display: inline-block;
    margin: 14px 0;
    font-size: 1.7rem;
    font-weight: 700;
    color: var(--accent-sky);
    text-decoration: none;
}

.cta-final .cta-phone:hover {
    color: var(--text-main);
}

/* ============================================================
   14. PAGE MERCI / MENTIONS LÉGALES
   ============================================================ */

.merci-box {
    max-width: 640px;
    margin: 0 auto;
    background: var(--bg-surface);
    padding: 48px 30px;
    border-radius: var(--radius);
    text-align: center;
}

.merci-box i {
    font-size: 3.4rem;
    color: var(--success);
    margin-bottom: 20px;
}

.merci-box p {
    color: var(--text-on-surface);
    margin-bottom: 16px;
}

.merci-box .btn-cta {
    margin-top: 12px;
}

/* Bloc de texte long posé sur une surface claire (lecture) */
.legal-box {
    max-width: 800px;
    margin: 0 auto;
    background: var(--bg-surface);
    padding: 40px 30px;
    border-radius: var(--radius);
}

.legal-box dl {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4px 24px;
}

.legal-box dt {
    font-weight: 600;
    color: var(--accent-sky);
    margin-top: 16px;
}

.legal-box dt:first-child {
    margin-top: 0;
}

.legal-box dd {
    color: var(--text-on-surface);
}

.legal-box a {
    color: var(--accent-sky);
}

/* ============================================================
   15. PIED DE PAGE
   ============================================================ */

.footer {
    background: var(--bg-page);
    color: var(--text-secondary);
    padding: 36px 20px;
    margin-top: 24px;
    border-top: 1px solid var(--border);
}

.footer-content {
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
}

.footer-content p {
    margin-bottom: 12px;
    color: var(--text-secondary);
}

.footer-content a {
    color: var(--text-main);
    text-decoration: none;
}

.footer-content a:hover {
    color: var(--accent-sky);
    text-decoration: underline;
}

.footer-legal {
    font-size: var(--fs-note);
}

/* ============================================================
   16. BOUTON RETOUR EN HAUT
   ============================================================ */

#topBtn {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 90;
    width: 48px;
    height: 48px;
    background: var(--accent-blue);
    color: #ffffff;
    font-size: 1.2rem;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    box-shadow: var(--shadow);
}

#topBtn:hover {
    background: var(--accent-blue-hover);
}

/* ============================================================
   17. ANIMATIONS D'APPARITION AU SCROLL
   ------------------------------------------------------------
   La classe .reveal n'est masquée que si JS est actif
   (classe "js" posée sur <html> par script.js) : sans JS,
   tout le contenu reste visible.
   ============================================================ */

html.js .reveal {
    opacity: 0;
    transform: translateY(36px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

html.js .reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================================
   18. RESPONSIVE (mobile-first)
   ============================================================ */

/* --- Tablette et plus : ≥ 768px --- */
@media (min-width: 768px) {

    .top-bar-content {
        justify-content: flex-end;
    }

    .logo {
        height: 72px;
    }

    .hero {
        padding: 130px 20px;
    }

    .hero h1 {
        font-size: 2.9rem;
    }

    .hero p {
        font-size: 1.45rem;
    }

    .page-header h1 {
        font-size: 2.5rem;
    }

    .section {
        padding: 80px 40px;
    }

    .section-title {
        font-size: 2.2rem;
    }

    .services-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
    }

    .tarifs-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
    }

    .zones-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
    }

    .steps-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
    }

    .usage-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }

    .contact-container {
        grid-template-columns: 1fr 1.2fr;
        gap: 40px;
    }

    .about-box {
        padding: 56px 60px;
    }

    .content-box {
        padding: 50px 60px;
    }

    .legal-box {
        padding: 50px 60px;
    }

    .legal-box dl {
        grid-template-columns: 220px 1fr;
        gap: 14px 24px;
    }

    .legal-box dt {
        margin-top: 0;
    }
}

/* --- Menu en ligne : ≥ 992px ---
   Le menu compte 6 entrées : en dessous de 992px il ne tient pas
   sur une ligne, le burger reste donc actif jusqu'à ce seuil. --- */
@media (min-width: 992px) {

    .nav-toggle {
        display: none;
    }

    .nav {
        display: flex;
        position: static;
        flex-direction: row;
        gap: 22px;
        background: transparent;
        border: none;
        box-shadow: none;
    }

    .nav a {
        padding: 6px 0;
        border-bottom: 2px solid transparent;
        font-size: 1.05rem;
    }

    .nav a:hover {
        border-bottom-color: var(--accent-sky);
    }

    .nav a.active {
        border-bottom-color: var(--accent-sky);
    }
}

/* --- Grand écran : ≥ 1024px --- */
@media (min-width: 1024px) {

    .hero h1 {
        font-size: 3.3rem;
    }

    .nav {
        gap: 28px;
    }
}
