/* --- 1. CONFIGURATION & VARIABLES --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;700;900&display=swap');

:root {
    --accent: #ffffff;
    --glass: rgba(120, 120, 120, 0.1);
    --border: rgba(255, 255, 255, 0.1);
    --bg-dark: #0a0a0a;
}

body {
    font-family: 'Inter', sans-serif;
    letter-spacing: -0.01em;
    background-color: var(--bg-dark);
    color: white;
    overflow-x: hidden;
}

section {
    min-height: 100dvh;
    overflow-x: hidden;
    overflow-y: visible;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

/* Page Réalisations : sections à hauteur naturelle */
.page-realisations section {
    height: auto !important;
    min-height: unset !important;
    max-height: unset !important;
    overflow: visible !important;
    display: block !important;
    justify-content: unset !important;
}

/* Section RDV : au moins 100dvh, peut grandir pour afficher le planning */
#rdv {
    height: auto !important;
    max-height: none !important;
    min-height: 100dvh !important;
    overflow-y: visible !important;
    justify-content: flex-start !important;
}

p {
    line-height: 1.8;
}

footer {
    min-height: 30vh;
}

/* Hide scrollbar for Chrome, Safari and Opera */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}

/* Hide scrollbar for IE, Edge and Firefox */
.no-scrollbar {
    -ms-overflow-style: none;
    /* IE and Edge */
    scrollbar-width: none;
    /* Firefox */
}

/* --- 2. COMPOSANTS RÉUTILISABLES (GLASS & BOUTONS) --- */
.card-glass {
    background: var(--glass) !important;
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.gradient-text {
    background: linear-gradient(135deg, #ffffff 40%, #555555 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.btn-premium {
    background: white;
    color: black;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    cursor: pointer;
    font-weight: 900;
    text-transform: uppercase;
}

.btn-premium:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 20px 40px rgba(255, 255, 255, 0.15);
}

/* --- 3. NAVIGATION & HEADER --- */
#navbar {
    padding-top: 0.75rem !important;
    padding-bottom: 0.75rem !important;
    background: rgba(10, 10, 10, 0.9) !important;
    z-index: 100;
}

/* Menu Mobile Base */
#mobile-dropdown {
    background: rgba(10, 10, 10, 0.98) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 40;
    display: none;
    /* Géré par JS */
    flex-direction: column;
    border-bottom: 1px solid var(--border);
}

/* Animations Menu */
@keyframes slideDown {
    from {
        transform: translateY(-10px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(0);
        opacity: 1;
    }

    to {
        transform: translateY(-10px);
        opacity: 0;
    }
}

#mobile-dropdown.show {
    display: flex !important;
    animation: slideDown 0.3s ease-out forwards;
}

#mobile-dropdown.hide {
    animation: slideUp 0.3s ease-in forwards;
}

.mobile-item {
    padding: 1.2rem 1.5rem;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #ffffff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.2s ease;
}

/* Correctif Bouton Premium dans le menu */
.mobile-item.btn-premium {
    border-bottom: none !important;
    padding: 1rem !important;
    margin-top: 10px;
    color: #000000 !important;
}

/* GESTION HOVER vs MOBILE (Pour éviter que le bouton reste "enfoncé") */
@media (hover: hover) {
    .btn-premium:hover {
        transform: translateY(-5px) scale(1.02);
        box-shadow: 0 20px 40px rgba(255, 255, 255, 0.15);
    }
}

.btn-premium:active {
    transform: scale(0.95);
    transition: transform 0.1s;
}

/* --- 4. CONFIGURATEUR & SOLUTIONS --- */
#solution-content {
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    will-change: opacity, transform;
}

/* --- 5. PACKS & EFFETS PREMIUM --- */
#packs .grid>div {
    transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    position: relative;
    top: 0;
    overflow: hidden;
}

#packs .grid>div:hover {
    top: -15px;
}

/* Pack Café (Noir & Gold) */
#packs div.bg-black.group {
    background-color: #000000 !important;
    position: relative;
    overflow: hidden;
    /* Changed from !important to allow shadow but keep pseudo element inside */
    border-radius: 4rem;
    /* Ensure radius is kept for pseudo element */
}

#packs div.bg-black h3,
#packs div.bg-black h4,
#packs div.bg-black .text-2xl {
    color: #ffffff !important;
}

#packs div.bg-black p {
    color: #e0e0e0 !important;
}

#packs div.bg-black ul {
    color: #d1d1d1 !important;
}

/* Hover effect for all cards */
#packs .group {
    transition: transform 0.5s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.5s ease;
}

#packs .group:hover {
    transform: scale(1.02);
    /* Slight scale on mobile */
}

@media (min-width: 768px) {
    #packs .group:hover {
        transform: scale(1.06);
        /* Full scale on desktop */
    }
}

/* White shadow for regular cards, white subtle shadow for black */
#packs div.border-gray-100.group:hover {
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.1);
}

#packs div.bg-black.group:hover {
    box-shadow: 0 40px 100px rgba(255, 255, 255, 0.1);
}

/* Effet Or */
.text-gold {
    background: linear-gradient(to right, #bf953f 0%, #fcf6ba 30%, #b38728 50%, #fcf6ba 70%, #bf953f 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: goldShine 5s linear infinite;
    background-size: 200% auto;
}

@keyframes goldShine {
    to {
        background-position: 200% center;
    }
}

/* Effet Reflet (Shine) */
#packs div.bg-black.group::after {
    content: "";
    position: absolute;
    top: 0;
    left: -200%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.4) 50%, rgba(255, 255, 255, 0) 100%);
    transform: skewX(-30deg);
    pointer-events: none;
    /* Add this so it doesn't block hover on children */
}

/* --- 6. WHATSAPP FLOTTANT --- */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 9999;
    transition: transform 0.3s;
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

/* --- 7. HERO USP --- */
.hero-usp {
    font-size: 11px;
    letter-spacing: 0.15em;
    color: #888;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    padding: 0.85rem 0;
    margin-bottom: 2.5rem;
    line-height: 2.2;
}

.hero-usp strong {
    color: #fff;
    font-weight: 900;
}

.hero-usp-sep {
    margin: 0 0.75rem;
    opacity: 0.25;
}

@media (max-width: 640px) {
    .hero-usp {
        font-size: 10px;
        letter-spacing: 0.1em;
    }

    .hero-usp-sep {
        display: block;
        height: 0;
        opacity: 0;
        margin: 0;
    }
}

/* --- 8. LOGOS MARQUES HERO --- */
.hero-brand-link {
    color: white;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 900;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    opacity: 0.3;
    filter: grayscale(1);
    transition: opacity 0.3s, filter 0.3s, transform 0.3s;
}

@media (min-width: 768px) {
    .hero-brand-link { font-size: 1.75rem; }
}

.hero-brand-link:hover {
    opacity: 0.9;
    filter: grayscale(0);
    transform: scale(1.06);
}

/* .brand-logo-link = hook JS uniquement — styles visuels dans .hero-brand-link */

/* --- 9. FAQ --- */
#faq {
    height: auto !important;
    max-height: none !important;
    min-height: 100dvh !important;
    overflow-y: visible !important;
    background: #050505;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 80px 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

@media (min-width: 768px) {
    #faq {
        padding: 100px 40px;
    }
}

#faq h2 {
    text-align: center;
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 900;
    text-transform: uppercase;
    font-style: italic;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
    color: #fff;
}

#faq .faq-subtitle {
    text-align: center;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    color: #444;
    margin-bottom: 60px;
}

.faq-container {
    max-width: 760px;
    margin: 0 auto;
    width: 100%;
}

#faq details {
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 18px;
    margin-bottom: 10px;
    transition: background 0.25s, border-color 0.25s;
    overflow: hidden;
}

#faq details[open] {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.14);
}

#faq summary {
    padding: 22px 28px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #ddd;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    user-select: none;
    transition: color 0.2s;
}

#faq summary:hover {
    color: #fff;
}

#faq details[open] summary {
    color: #fff;
}

#faq summary::-webkit-details-marker {
    display: none;
}

#faq summary::after {
    content: '+';
    font-size: 22px;
    font-weight: 300;
    color: #555;
    flex-shrink: 0;
    transition: transform 0.35s cubic-bezier(0.165, 0.84, 0.44, 1), color 0.25s;
    line-height: 1;
    min-width: 22px;
    text-align: center;
}

#faq details[open] summary::after {
    transform: rotate(45deg);
    color: #aaa;
}

/* Animation d'ouverture du contenu */
@keyframes faqContentIn {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#faq details[open] p {
    animation: faqContentIn 0.28s cubic-bezier(0.165, 0.84, 0.44, 1) both;
}

#faq details p {
    padding: 0 28px 24px;
    color: #888;
    font-size: 13px;
    line-height: 1.85;
    font-weight: 500;
    text-transform: none;
    letter-spacing: 0.01em;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 16px;
}

#faq details strong {
    color: #ccc;
    font-weight: 800;
}

/* --- 10. CONFIGURATEUR MULTI-STEP --- */
#configurateur {
    min-height: 100dvh;
    justify-content: center;
    padding-top: 80px;
    padding-bottom: 80px;
}

.config-progress {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.config-progress-bar {
    display: flex;
    align-items: center;
}

.config-step-dot {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.12);
    color: #444;
    font-size: 15px;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    flex-shrink: 0;
}

.config-step-dot.active {
    border-color: #fff;
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

.config-step-dot.done {
    border-color: #fff;
    background: #fff;
    color: #000;
}

.config-connector {
    width: 64px;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    transition: background 0.3s;
    flex-shrink: 0;
}

.config-connector.done {
    background: rgba(255, 255, 255, 0.45);
}

.config-step-labels {
    display: flex;
    gap: 0;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #444;
}

.config-step-labels span {
    width: 46px;
    text-align: center;
    flex-shrink: 0;
}

.config-step-labels span:not(:last-child) {
    margin-right: 64px;
}

.config-step-title {
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: #666;
    text-align: center;
    margin-bottom: 28px;
}

.config-brands-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

@media (max-width: 500px) {
    .config-brands-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .config-step-labels span:not(:last-child) {
        margin-right: 64px;
    }
}

.config-brand-btn {
    padding: 22px 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.02);
    color: #bbb;
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    cursor: pointer;
    transition: all 0.22s;
    text-align: center;
}

.config-brand-btn:hover,
.config-brand-btn:focus {
    border-color: rgba(255, 255, 255, 0.45);
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
    transform: translateY(-2px);
    outline: none;
}

.config-brand-autre {
    grid-column: 1 / -1;
    background: transparent;
    color: #555;
    border-style: dashed;
}

.config-brand-autre:hover {
    color: #aaa;
    background: rgba(255, 255, 255, 0.03);
}

.config-univers-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

@media (min-width: 580px) {
    .config-univers-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.config-univers-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 32px 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.02);
    cursor: pointer;
    transition: all 0.22s;
    text-align: center;
}

.config-univers-btn:hover {
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.06);
    transform: translateY(-3px);
}

.config-univers-icon {
    font-size: 28px;
    color: #888;
    transition: color 0.2s;
}

.config-univers-btn:hover .config-univers-icon {
    color: #fff;
}

.config-univers-name {
    display: block;
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #ddd;
}

.config-univers-desc {
    display: block;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #555;
}

.config-back-btn {
    display: block;
    margin: 20px auto 0;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #444;
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.2s;
    padding: 8px;
}

.config-back-btn:hover {
    color: #999;
}

.config-text-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 16px 20px;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #fff;
    transition: border-color 0.2s;
    font-family: 'Inter', sans-serif;
}

.config-text-input:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.3);
}

.config-text-input::placeholder {
    color: #333;
    font-weight: 600;
}

.config-confirm-btn {
    width: 100%;
    margin-top: 10px;
    padding: 18px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    color: #ccc;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Inter', sans-serif;
}

.config-confirm-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.config-recap-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.config-recap-label {
    color: #555;
}

.config-recap-value {
    color: #fff;
    font-weight: 900;
}

.config-step.hidden {
    display: none !important;
}

#packs div.bg-black.group:hover::after {
    left: 200%;
    transition: all 1s ease-in-out;
}

/* Allow shadows to escape the flex container on desktop and mobile */
#packs .flex-row {
    padding-top: 2rem;
    padding-bottom: 2rem;
    margin-top: -2rem;
}

@media (max-width: 768px) {
    #packs .flex-row {
        /* Centrage du premier et dernier élément sur mobile : 
           (100vw - 75vw) / 2 = 12.5vw.
           Avec px-6, le parent réduit déjà la largeur. 
           On annule la marge et on donne le padding en vw à la place. */
        margin-left: -1.5rem;
        /* Annule mb-6 (24px) */
        margin-right: -1.5rem;
        padding-left: 12.5vw;
        padding-right: 12.5vw;
    }
}

@media (min-width: 768px) {
    #packs .md\:grid {
        padding: 2rem;
        margin: -2rem;
    }
}

/* --- 6. FORMULAIRE DE CONTACT & INPUTS --- */
input,
textarea,
select {
    appearance: none !important;
    -webkit-appearance: none !important;
    color: white;
}

input:focus,
textarea:focus,
select:focus {
    background: rgba(255, 255, 255, 0.05) !important;
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.3) !important;
    outline: none;
}

select option {
    background: #1a1a1a;
    color: white;
}

/* --- 7. RESPONSIVE OPTIMISÉ --- */
@media (max-width: 768px) {
    section {
        padding-top: 60px !important; /* espace navbar */
        padding-bottom: 20px !important;
    }

    /* FAQ compact : les 8 items fermés tiennent dans 100dvh sans scroll interne */
    #faq h2 {
        margin-bottom: 16px !important;
    }

    #faq details {
        margin-bottom: 5px !important;
        border-radius: 10px !important;
    }

    #faq summary {
        padding: 12px 16px !important;
        font-size: 11px !important;
        gap: 10px !important;
    }

    #faq summary::after {
        font-size: 17px !important;
    }

    /* On réduit un peu les titres pour que tout tienne sans défiler sur un petit écran */
    h1 {
        font-size: 2.2rem !important;
    }

    h2 {
        font-size: 1.6rem !important;
        line-height: 1.1 !important;
    }

    h3 {
        font-size: 1.3rem !important;
    }

    p {
        font-size: 0.75rem !important;
        line-height: 1.5 !important;
    }

    .mb-20 {
        margin-bottom: 2rem !important;
    }

    .mb-16 {
        margin-bottom: 1.5rem !important;
    }

    .mb-12 {
        margin-bottom: 1.25rem !important;
    }

    .py-24 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }

    .gap-20 {
        gap: 1.5rem !important;
    }

    .gap-16 {
        gap: 1rem !important;
    }

    .gap-10 {
        gap: 1rem !important;
    }

    #solution-display {
        min-height: 15rem !important;
        padding: 1.5rem !important;
    }

    .text-6xl {
        font-size: 2.5rem !important;
    }

    .text-5xl {
        font-size: 2rem !important;
    }

    /* Make calendly smaller */
    #calendly-container {
        min-height: 360px !important;
    }

    #calendly-widget {
        height: 360px !important;
    }
}

#calendly-container {
    /* Style pour l'état "vide" avant chargement */
    background: radial-gradient(circle, rgba(255, 255, 255, 1) 0%, rgba(245, 245, 245, 1) 100%);
    transition: height 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

#calendly-widget iframe {
    width: 100% !important;
    height: 100% !important;
    border: none;
}

/* --- TEXTAREA AUTO-RESIZE --- */
#contact textarea {
    min-height: 140px;
    max-height: 380px;
    overflow-y: auto;
    resize: none;
    transition: height 0.15s ease;
}

/* --- CAL.COM INLINE EMBED --- */
[id^="my-cal-inline-"] {
    width: 100% !important;
}

[id^="my-cal-inline-"] > div,
[id^="my-cal-inline-"] iframe {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    border: none !important;
}


/* Prevent active pack button hover from going black-on-black */
.cal-pack-btn.bg-black:hover {
    background-color: #111111 !important;
    color: white !important;
}

/* =====================================================================
   GRAIN / NOISE TEXTURE
   ===================================================================== */
.grain-overlay {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9990;
    opacity: 0.038;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
    background-size: 220px 220px;
    background-repeat: repeat;
}

/* =====================================================================
   MARQUEE HERO
   ===================================================================== */
.marquee-wrap {
    overflow: hidden;
    max-width: 750px;
    margin: 0 auto;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 14%, black 86%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, black 14%, black 86%, transparent 100%);
}

.marquee-track {
    display: flex;
    align-items: center;
    width: max-content;
    animation: marquee-scroll 22s linear infinite;
}

.marquee-brand {
    flex-shrink: 0;
    color: white;
    text-decoration: none;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    opacity: 0.5;
    padding: 4px 26px;
    transition: opacity 0.3s;
    white-space: nowrap;
}

.marquee-brand:hover {
    opacity: 1;
}

@keyframes marquee-scroll {
    from { transform: translateX(0); }
    to   { transform: translateX(var(--marquee-pct, -50%)); }
}

/* =====================================================================
   SCROLL REVEAL
   ===================================================================== */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.is-visible {
    opacity: 1;
    transform: none;
}

.reveal-d1 { transition-delay: 0.1s; }
.reveal-d2 { transition-delay: 0.22s; }
.reveal-d3 { transition-delay: 0.34s; }
.reveal-d4 { transition-delay: 0.46s; }


/* =====================================================================
   SECTION #RDV — DARK THEME (boutons pack)
   ===================================================================== */
#rdv .cal-pack-btn {
    border-color: rgba(255, 255, 255, 0.1) !important;
    color: #666 !important;
    background: transparent !important;
}

#rdv .cal-pack-btn:hover {
    border-color: rgba(255, 255, 255, 0.35) !important;
    background: rgba(255, 255, 255, 0.04) !important;
    color: #ccc !important;
}

/* État sélectionné (JS ajoute .bg-black) */
#rdv .cal-pack-btn.bg-black {
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: rgba(255, 255, 255, 0.55) !important;
    color: #fff !important;
}

#rdv .cal-pack-btn h4 { color: inherit !important; }
#rdv .cal-pack-btn i  { color: inherit !important; }
#rdv .cal-pack-btn p  { color: inherit !important; }

/* =====================================================================
   MOBILE : COMPACTION DEMANDE SPÉCIFIQUE + PACKS RDV
   ===================================================================== */
@media (max-width: 768px) {
    /* --- Formulaire #contact --- */
    #contact form .grid {
        gap: 0.625rem !important;
    }
    #contact input,
    #contact select,
    #contact textarea {
        padding-top: 0.5rem !important;
        padding-bottom: 0.5rem !important;
        padding-left: 0.875rem !important;
        padding-right: 0.875rem !important;
        font-size: 0.7rem !important;
        border-radius: 0.875rem !important;
    }
    #contact textarea {
        min-height: 5rem !important;
        max-height: 220px !important;
        resize: none;
    }
    #contact #form-submit-btn {
        padding-top: 0.875rem !important;
        padding-bottom: 0.875rem !important;
        font-size: 0.65rem !important;
    }
    #contact form {
        --tw-space-y: 0.625rem;
    }
    #contact form > * + * {
        margin-top: 0.625rem !important;
    }

    /* --- Boutons pack dans #rdv --- */
    #rdv .cal-pack-btn {
        padding: 0.75rem 1rem !important;
    }
    #rdv .cal-pack-btn i {
        font-size: 1rem !important;
    }
    #rdv .cal-pack-btn h4 {
        font-size: 0.6rem !important;
        margin-bottom: 0 !important;
    }
    #rdv .cal-pack-btn p {
        font-size: 0.5rem !important;
    }
    #rdv .cal-pack-btn .flex.items-center {
        margin-bottom: 0.25rem !important;
    }
}

