

/* ══════════════════════════════════════════════════════════
   RESET — page autonome (sortie d'Elementor)
   Tailwind preflight est désactivé → on ajoute le minimum
   indispensable pour que les layouts flex/grid fonctionnent
   ══════════════════════════════════════════════════════════ */
*, *::before, *::after {
    box-sizing: border-box;
}
html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}
body {
    margin: 0;
    padding: 0;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}
img, svg, video {
    display: block;
    max-width: 100%;
}
input, button, select, textarea {
    font-family: inherit;
    font-size: 100%;
    line-height: inherit;
    margin: 0;
}
button { cursor: pointer; }
h1, h2, h3, h4, h5, h6, p {
    margin: 0;
}
ul, ol { margin: 0; padding: 0; }
a { color: inherit; }
table { border-collapse: collapse; }

        :root {
            --navy: #0a254d;
            --cyan: #00b8c0;
            --cyan-dark: #008a90;
            --cyan-light: #e6f8f9;
            --text-main: #334155;
        }

        #atl-page { font-family: 'Inter', sans-serif; color: #334155; }

        #atl-page h1, #atl-page h2, #atl-page h3, #atl-page h4 { font-family: 'Manrope', sans-serif; }

        /* Mobile sticky CTA offset */
        @media (max-width: 767px) { #atl-page { font-family: 'Inter', sans-serif; color: #334155; } }

        /* Header */
        .sticky-header {
            position: sticky;
            top: 0;
            z-index: 50;
            backdrop-filter: blur(16px);
            -webkit-backdrop-filter: blur(16px);
            background-color: rgba(255,255,255,0.97);
            border-bottom: 1px solid rgba(226,232,240,0.8);
            box-shadow: 0 1px 16px rgba(10,37,77,0.05);
        }

        /* Hero background */
        .hero-pattern {
            background-color: var(--navy);
            background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%231e3a5f' fill-opacity='0.4'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
        }

        /* ── Focus & outline propres (page autonome) ── */
        #atl-page button,
        #atl-page a {
            outline: none;
        }
        #atl-page input:focus,
        #atl-page select:focus,
        #atl-page textarea:focus {
            outline: none;
            box-shadow: 0 0 0 3px rgba(0, 184, 192, 0.25);
        }

        /* Buttons */
        .btn-primary {
            background: linear-gradient(135deg, var(--cyan) 0%, var(--cyan-dark) 100%);
            transition: transform 0.2s ease, box-shadow 0.2s ease;
        }
        .btn-primary:hover {
            transform: scale(1.02);
            box-shadow: 0 10px 15px -3px rgba(0,184,192,0.3);
        }

        /* Service cards */
        .card-service { transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); }
        .card-service:hover {
            transform: translateY(-8px);
            box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.05);
            border-color: var(--cyan);
        }

        /* Accordion */
        .accordion-content { max-height: 0; overflow: hidden; transition: max-height 0.3s ease-out; }
        .accordion-item.active .accordion-content { max-height: 500px; }
        .accordion-item.active .accordion-icon { transform: rotate(180deg); }

        /* Phone wiggle */
        @keyframes wiggle {
            0%, 100% { transform: rotate(0deg); }
            3.3%  { transform: rotate(-15deg); }
            6.6%  { transform: rotate(15deg); }
            10%   { transform: rotate(-15deg); }
            13.3% { transform: rotate(15deg); }
            16.6% { transform: rotate(0deg); }
        }
        .animate-wiggle { animation: wiggle 8s ease-in-out infinite; transform-origin: center; }

        /* AI Widget */
        #aiWidgetPanel { transition: opacity 0.3s ease, transform 0.3s ease; }

        /* ── Validation formulaire ── */
        input[aria-invalid="true"],
        select[aria-invalid="true"] {
            border-color: #f87171 !important;
            background-color: #fff5f5 !important;
            box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.15) !important;
        }
        .field-error { animation: fadeSlideDown 0.18s ease; }

        /* ── Autocomplete adresse ── */
        .autocomplete-wrapper { position: relative; }

        .autocomplete-list {
            position: absolute;
            top: calc(100% + 6px);
            left: 0;
            right: 0;
            background: #fff;
            border: 1px solid #e2e8f0;
            border-radius: 14px;
            box-shadow: 0 12px 32px -4px rgba(10,37,77,0.12);
            z-index: 200;
            max-height: 260px;
            overflow-y: auto;
            animation: fadeSlideDown 0.15s ease;
        }

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

        .autocomplete-item {
            display: flex;
            align-items: flex-start;
            gap: 10px;
            padding: 12px 16px;
            cursor: pointer;
            border-bottom: 1px solid #f1f5f9;
            transition: background 0.15s;
        }
        .autocomplete-item:last-child { border-bottom: none; }
        .autocomplete-item:hover,
        .autocomplete-item.highlighted { background: #e6f8f9; }

        .autocomplete-icon {
            width: 28px;
            height: 28px;
            border-radius: 8px;
            background: #e6f8f9;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
            margin-top: 1px;
        }
        .autocomplete-icon svg { width: 14px; height: 14px; color: #00b8c0; }

        .autocomplete-main {
            font-size: 13px;
            font-weight: 600;
            color: #0a254d;
            line-height: 1.3;
        }
        .autocomplete-sub {
            font-size: 11px;
            color: #94a3b8;
            margin-top: 2px;
            line-height: 1.3;
        }

        .autocomplete-loading {
            padding: 14px 16px;
            font-size: 12px;
            color: #94a3b8;
            display: flex;
            align-items: center;
            gap: 8px;
        }
        .autocomplete-spinner {
            width: 14px;
            height: 14px;
            border: 2px solid #e2e8f0;
            border-top-color: #00b8c0;
            border-radius: 50%;
            animation: spin 0.7s linear infinite;
            flex-shrink: 0;
        }
        @keyframes spin { to { transform: rotate(360deg); } }

        .autocomplete-empty {
            padding: 14px 16px;
            font-size: 12px;
            color: #94a3b8;
            font-style: italic;
        }

        /* Badge moteur */
        .autocomplete-footer {
            padding: 6px 14px;
            font-size: 10px;
            color: #cbd5e1;
            text-align: right;
            border-top: 1px solid #f1f5f9;
            background: #fafafa;
            border-radius: 0 0 14px 14px;
            font-weight: 600;
            letter-spacing: 0.04em;
        }
    

/* ── Couleurs et liens ── */
#atl-page a { color: inherit; text-decoration: none; }
#atl-page nav a { color: #475569; text-decoration: none; }
#atl-page nav a:hover { color: #00b8c0; }
#atl-page .btn-primary, #atl-page .btn-primary:hover { color: #fff !important; }
#atl-page footer a { color: #94a3b8; text-decoration: none; }
#atl-page footer a:hover { color: #00b8c0; }
#atl-page .text-cyan-400, #atl-page .hover\:text-cyan-600:hover { color: #00b8c0 !important; }

/* ── Champ téléphone avec indicatif pays ── */
.atl-phone-wrap {
    display: flex;
    align-items: stretch;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    background: #f8fafc;
    transition: border-color .2s, box-shadow .2s;
    width: 100%;
    position: relative;
    z-index: 1;
}
.atl-phone-wrap:focus-within {
    border-color: #00b8c0;
    box-shadow: 0 0 0 3px rgba(0,184,192,.15);
    background: #fff;
}
.atl-phone-wrap[data-invalid="true"] {
    border-color: #f87171 !important;
    background: #fff5f5 !important;
    box-shadow: 0 0 0 3px rgba(248,113,113,.15) !important;
}
.atl-country-select {
    background: #f1f5f9;
    border: none;
    border-right: 1.5px solid #e2e8f0;
    padding: 10px 18px 10px 8px;
    position: relative;
    z-index: 2;
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    outline: none;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 5px center;
    width: auto;
    min-width: 72px;
    max-width: 88px;
    flex-shrink: 0;
}
.atl-phone-input {
    flex: 1 1 auto;
    width: 0;
    min-width: 80px;
    background: transparent;
    border: none;
    padding: 14px 12px;
    font-size: 14px;
    color: #334155;
    outline: none;
    font-family: inherit;
    display: block;
    -webkit-appearance: none;
    appearance: none;
}
.atl-phone-input::placeholder { color: #94a3b8; }

/* ── Forcer texte blanc sur boutons colorés ── */
#atl-page a[style*="color:#ffffff"],
#atl-page .bg-navy,
#atl-page .bg-cyan-600,
#atl-page [class*="bg-navy"] { color: #ffffff !important; }
#atl-page .bg-navy svg,
#atl-page .bg-cyan-600 svg { stroke: #ffffff !important; color: #ffffff !important; }

/* ── Numéro téléphone 54 05 54 ── */

/* Desktop : 2 clignots rapides toutes les 10s */
@keyframes atl-pulse-desktop {
    0%, 100%  { color: inherit; }
    3.3%      { color: #00b8c0; }
    6.6%      { color: inherit; }
    10%       { color: inherit; }
    13.3%     { color: #00b8c0; }
    16.6%     { color: inherit; }
}

/* Mobile : même double clignotement + légère montée */
@keyframes atl-pulse-mobile {
    0%,  7%,  100% { color: inherit;      }
    3%             { color: #00b8c0;   }
    10%, 16%       { color: inherit;      }
    13%            { color: #00b8c0;   }
}

.atl-num-highlight {
    display: inline;
    will-change: color;
    white-space: nowrap;
    margin: 0;
    padding: 0;
    font-size: inherit;
    line-height: inherit;
}

@media (hover: hover) {
    /* Desktop */
    .atl-num-highlight {
        animation: atl-pulse-desktop 8s ease-in-out infinite;
    }
}

@media (hover: none) {
    /* Mobile */
    .atl-num-highlight {
        will-change: color;
        animation: atl-pulse-mobile 8s ease-in-out infinite;
    }
}

/* ── Secousse mobile 7s — synchro téléphone ── */
@keyframes atl-wiggle-mobile {
    0%, 100%  { transform: rotate(0deg); }
    3.3%      { transform: rotate(-12deg); }
    6.6%      { transform: rotate(12deg); }
    10%       { transform: rotate(-12deg); }
    13.3%     { transform: rotate(12deg); }
    16.6%     { transform: rotate(0deg); }
}
@keyframes atl-shake-digits {
    0%, 100%  { transform: translateX(0); }
    3.3%      { transform: translateX(-1.5px); }
    6.6%      { transform: translateX(1.5px); }
    10%       { transform: translateX(-1.5px); }
    13.3%     { transform: translateX(1.5px); }
    16.6%     { transform: translateX(0); }
}
.atl-sticky-digits {
    display: inline;
    animation: atl-shake-digits 7s ease-in-out infinite;
}
.atl-sticky-phone-icon {
    animation: atl-wiggle-mobile 7s ease-in-out infinite;
    transform-origin: center;
}

/* ── Bouton Login ── */
.btn-login {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border: 1.5px solid #e2e8f0;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 700;
    color: #334155;
    background: transparent;
    transition: all 0.2s ease;
    white-space: nowrap;
    text-decoration: none !important;
}
.btn-login:hover {
    border-color: #00b8c0;
    color: #00b8c0 !important;
    background: #e6f8f9;
}
.btn-login svg { width: 15px; height: 15px; flex-shrink: 0; }
/* Mobile : icône seule */
@media (max-width: 1023px) {
    .btn-login span.login-label { display: none; }
    .btn-login { padding: 8px; border-radius: 50%; }
}

/* ── Erreur champ téléphone sous le wrap ── */
.field-error {
    display: flex;
    width: 100%;
    clear: both;
}



/* ══════════════════════════════════════════════
   HERO — Layout 2 colonnes desktop
   ══════════════════════════════════════════════ */
@media (min-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1.05fr 0.95fr !important;
        align-items: center !important;
    }
    /* Espace à droite du formulaire uniquement */
    .hero-grid > div:last-child {
        padding-right: clamp(24px, 4vw, 64px);
    }
}

/* ══════════════════════════════════════════════
   HERO — Mobile first (< 768px)
   ══════════════════════════════════════════════ */
@media (max-width: 767px) {

    /* Section hero : padding réduit, pas de hauteur forcée */
    #reservation {
        min-height: auto !important;
        padding-top: 24px !important;
        padding-bottom: 32px !important;
    }

    /* Grille : une seule colonne, espacement réduit */
    .hero-grid {
        gap: 28px !important;
    }

    /* Branding : centré sur mobile */
    .hero-grid > div:first-child {
        max-width: 100% !important;
        text-align: center;
    }

    /* Badge live : centré */
    .hero-grid > div:first-child > p:first-child {
        margin-left: auto;
        margin-right: auto;
    }

    /* H1 : taille lisible mobile */
    #hero-title {
        font-size: clamp(24px, 7vw, 32px) !important;
        text-align: center;
    }

    /* Sous-titre */
    .hero-grid > div:first-child > p:nth-child(3) {
        text-align: center;
        margin-left: auto;
        margin-right: auto;
        font-size: 14px !important;
    }

    /* Engagements : 2 colonnes compactes, parfaitement centrées */
    .hero-grid ul.grid {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        margin-bottom: 20px !important;
        padding: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        width: 100%;
    }
    .hero-grid ul.grid li {
        justify-content: flex-start;
        text-align: left;
        flex-direction: row;
        align-items: center;
        padding: 10px 12px;
        gap: 8px;
        margin: 0 !important;
    }
    .hero-grid ul.grid li span:last-child {
        font-size: 11px !important;
    }

    /* Boutons de contact : colonne pleine largeur */
    .hero-grid .flex.flex-wrap.gap-3 {
        flex-direction: column;
        gap: 10px !important;
    }
    .hero-grid .flex.flex-wrap.gap-3 > a {
        width: 100%;
        justify-content: center;
        font-size: 15px !important;
        padding: 14px 16px !important;
        border-radius: 16px !important;
    }

    /* Note légale */
    .hero-grid > div:first-child > p:last-child {
        text-align: center;
    }

    /* Carte formulaire : coins moins arrondis, ombre réduite */
    .booking-card {
        border-radius: 20px;
        box-shadow: 0 12px 40px -8px rgba(5,17,36,.22);
    }
    .booking-card-body {
        padding: 16px 16px 20px !important;
    }
    .booking-card-header {
        padding: 14px 16px !important;
    }

    /* Formulaire : une seule colonne forcée */
    #bookingForm {
        grid-template-columns: 1fr !important;
        gap: 14px !important;
    }
    #bookingForm > div[class*="md:col-span-2"] {
        grid-column: span 1 !important;
    }

    /* Inputs : hauteur confortable sur mobile */
    .booking-input,
    #bookingForm input,
    #bookingForm select {
        padding: 13px 14px !important;
        border-radius: 12px !important;
        font-size: 16px !important;
    }

    /* Bouton submit */
    #bookingForm button[type="submit"] {
        padding: 16px !important;
        font-size: 16px !important;
        border-radius: 16px !important;
    }
}

/* ══════════════════════════════════════════════
   HERO — Tablette (768px – 1023px)
   ══════════════════════════════════════════════ */
@media (min-width: 768px) and (max-width: 1023px) {
    #reservation {
        min-height: auto !important;
        padding-top: 40px !important;
        padding-bottom: 48px !important;
    }
    .hero-grid { gap: 36px !important; }

    /* Boutons de contact : 2 par ligne */
    .hero-grid .flex.flex-wrap.gap-3 > a {
        flex: 1 1 calc(50% - 8px);
        justify-content: center;
    }
    .hero-grid .flex.flex-wrap.gap-3 > a:last-child {
        flex: 1 1 100%;
    }
    .booking-card-body { padding: 20px !important; }
    #bookingForm { gap: 16px !important; }
}

/* ══════════════════════════════════════════════
   CARTE FORMULAIRE — Styles de base
   ══════════════════════════════════════════════ */
.booking-card {
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 24px 64px -8px rgba(5,17,36,.28), 0 0 0 1px rgba(255,255,255,.06);
    overflow: hidden;
}
.booking-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 24px;
    background: linear-gradient(135deg, #00b8c0 0%, #0284c7 100%);
    position: relative;
}
.booking-card-icon {
    width: 38px; height: 38px;
    background: rgba(255,255,255,.2);
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    color: #fff;
}
.booking-card-title {
    font-family: 'Manrope', sans-serif;
    font-weight: 800;
    color: #fff;
    font-size: 15px;
    line-height: 1.2;
    margin: 0;
}
.booking-card-sub {
    font-size: 11px;
    color: rgba(255,255,255,.75);
    margin: 2px 0 0;
}
.booking-steps {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
    flex-shrink: 0;
}
.booking-step {
    width: 24px; height: 24px;
    border-radius: 50%;
    background: rgba(255,255,255,.2);
    color: rgba(255,255,255,.6);
    font-size: 11px;
    font-weight: 800;
    display: flex; align-items: center; justify-content: center;
}
.booking-step-active {
    background: rgba(255,255,255,.9);
    color: #0891b2;
}
.booking-step-line {
    width: 16px; height: 2px;
    background: rgba(255,255,255,.25);
    border-radius: 2px;
}
.booking-card-body { padding: 24px 24px 28px; }

/* Labels avec icône */
.label-icon {
    display: inline-flex;
    align-items: center;
    margin-right: 5px;
    vertical-align: middle;
    color: #00b8c0;
}

/* Inputs — anti-zoom iOS */
.booking-input {
    transition: border-color .2s, box-shadow .2s;
    font-size: 16px !important;
}
@media screen and (-webkit-min-device-pixel-ratio: 0) {
    #atl-page input,
    #atl-page select,
    #atl-page textarea {
        font-size: 16px !important;
    }
}

/* Desktop intermédiaire */
@media (min-width: 1024px) and (max-width: 1279px) {
    .booking-card-header { padding: 16px 20px; }
    .booking-steps { display: none; }
    .booking-card-body { padding: 20px 20px 24px; }
}
