/* ============================================
   BATEAU-IMMATRICULATION.COM — Design System
   Palette : 6 nuances de bleu uniquement
   ============================================ */

/* --- CSS Variables (Design Tokens) --- */
:root {
    --c-dark: #194569;
    --c-mid: #5F84A2;
    --c-steel: #91AEC4;
    --c-light: #B7D0E1;
    --c-pale: #CADEED;
    --c-ice: #DBECF4;
    --c-white: #ffffff;
    --c-black: #1a1a1a;
    --radius: 16px;
    --radius-sm: 12px;
    --radius-xs: 8px;
    --shadow-card: 0 1px 3px rgba(25,69,105,0.06);
    --shadow-card-hover: 0 20px 60px rgba(25,69,105,0.1), 0 0 0 1px rgba(25,69,105,0.08);
    --ease-out-expo: cubic-bezier(0.22, 1, 0.36, 1);
}

body {
    font-family: 'Outfit', system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}


/* ============================================
   GLASSMORPHISM (header)
   ============================================ */
.glass {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.10);
}
.glass-light {
    background: rgba(255,255,255,0.95);
    border: 1px solid #e5e7eb;
}


/* ============================================
   TEXT ACCENT (replaces text-gradient)
   ============================================ */
.text-gradient {
    color: white;
    background: none;
    -webkit-background-clip: unset;
    -webkit-text-fill-color: unset;
    background-clip: unset;
}


/* ============================================
   ACCENT BORDER (cards "pour qui")
   ============================================ */
.gradient-border {
    position: relative;
    background: var(--c-white);
    border-radius: var(--radius);
    border: 1px solid #e5e7eb;
    transition: border-color 0.3s ease;
}
.gradient-border:hover {
    border-color: #d1d5db;
}
.gradient-border::before {
    display: none;
}


/* ============================================
   CARD HOVER EFFECT
   ============================================ */
.card-hover {
    transition: all 0.4s var(--ease-out-expo);
}
.card-hover:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-card-hover);
}


/* ============================================
   PILL / TAG / BADGE
   ============================================ */
.pill {
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
}


/* ============================================
   BUTTON SHINE EFFECT
   ============================================ */
.btn-shine {
    position: relative;
    overflow: hidden;
}
.btn-shine::after {
    display: none;
}


/* ============================================
   SCROLL REVEAL
   ============================================ */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}


/* ============================================
   HERO BACKGROUNDS
   ============================================ */
.hero-mesh {
    background: var(--c-dark);
}
.hero-mesh-compact {
    background: var(--c-dark);
}


/* ============================================
   MESH LIGHT (alternate section bg)
   ============================================ */
.mesh-light {
    background: none;
}


/* ============================================
   FLOATING ANIMATIONS
   ============================================ */
@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    33% { transform: translateY(-8px) rotate(1deg); }
    66% { transform: translateY(4px) rotate(-1deg); }
}
.float-1 { animation: float 6s ease-in-out infinite; }
.float-2 { animation: float 8s ease-in-out infinite 1s; }
.float-3 { animation: float 7s ease-in-out infinite 2s; }


/* ============================================
   FAQ COMPONENT
   ============================================ */
details summary::-webkit-details-marker { display: none; }
details[open] summary .faq-chevron { transform: rotate(180deg); }
details[open] .faq-answer {
    animation: slideDown 0.3s ease-out;
}
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}


/* ============================================
   TAB BUTTONS
   ============================================ */
.tab-btn {
    background: white;
    color: #475569;
    border: 1px solid #e5e7eb;
    cursor: pointer;
}
.tab-btn:hover {
    color: var(--c-dark);
    border-color: #d1d5db;
    background: #f9fafb;
}
.tab-btn.active {
    background: var(--c-dark);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(25,69,105,0.25);
}


/* ============================================
   SERVICE CARD (filtered grid)
   ============================================ */
.service-card {
    transition: all 0.35s var(--ease-out-expo);
}
.service-card.hidden-card {
    display: none;
}
.service-icon {
    background: #f3f4f6;
    transition: all 0.3s ease;
}
.card-hover:hover .service-icon {
    background: var(--c-dark);
    color: white;
}
.card-hover:hover .service-icon svg {
    stroke: white;
}


/* ============================================
   GLOW EFFECTS
   ============================================ */
.glow-blue { box-shadow: none; }
.glow-blue-strong { box-shadow: none; }


/* ============================================
   CHECKLIST COMPONENT (for service pages)
   ============================================ */
.checklist-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    background: var(--c-white);
    border-radius: var(--radius-sm);
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
}
.checklist-item:hover {
    border-color: #d1d5db;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}
.checklist-icon {
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 1px;
}


/* ============================================
   STEP COUNTER (for "comment ça marche")
   ============================================ */
.step-number {
    width: 3rem;
    height: 3rem;
    border-radius: var(--radius-sm);
    background: var(--c-dark);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
    box-shadow: 0 8px 24px rgba(25,69,105,0.2);
    flex-shrink: 0;
}


/* ============================================
   SCROLLBAR
   ============================================ */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #f3f4f6; }
::-webkit-scrollbar-thumb { background: #d1d5db; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #9ca3af; }


/* ============================================
   BREADCRUMB
   ============================================ */
.breadcrumb a {
    color: rgba(255,255,255,0.6);
    transition: color 0.2s;
}
.breadcrumb a:hover {
    color: rgba(255,255,255,0.9);
}
.breadcrumb .separator {
    color: rgba(255,255,255,0.3);
    margin: 0 0.5rem;
}
.breadcrumb .current {
    color: rgba(255,255,255,0.9);
}


/* ============================================
   FORM COMPONENTS
   ============================================ */

/* Radio card selection */
.form-radio-card input {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
.form-radio-card input:checked + div {
    border-color: var(--c-dark);
    background: rgba(25,69,105,0.05);
}
.form-radio-card input:checked + div svg {
    color: var(--c-dark);
}
.form-radio-card input:checked + div .radio-label {
    color: var(--c-dark);
    font-weight: 600;
}

/* Form inputs */
.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    border: 1px solid #d1d5db;
    color: #111827;
    font-size: 0.875rem;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: white;
}
.form-input::placeholder { color: #9ca3af; }
.form-input:focus {
    outline: none;
    border-color: var(--c-dark);
    box-shadow: 0 0 0 3px rgba(25,69,105,0.1);
}

/* Form select */
.form-select {
    width: 100%;
    padding: 0.75rem 2.5rem 0.75rem 1rem;
    border-radius: var(--radius-sm);
    border: 1px solid #d1d5db;
    color: #111827;
    font-size: 0.875rem;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: white url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 8 4 4 4-4'/%3E%3C/svg%3E") no-repeat right 0.75rem center;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}
.form-select:focus {
    outline: none;
    border-color: var(--c-dark);
    box-shadow: 0 0 0 3px rgba(25,69,105,0.1);
}

/* Upload zone */
.upload-zone {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1.5rem;
    border-radius: var(--radius-sm);
    border: 2px dashed #d1d5db;
    background: #f9fafb;
    cursor: pointer;
    transition: all 0.2s;
}
.upload-zone:hover {
    border-color: var(--c-dark);
    background: rgba(25,69,105,0.03);
}
.upload-zone.dragover {
    border-color: var(--c-dark);
    background: rgba(25,69,105,0.05);
}
.upload-zone.has-file {
    border-style: solid;
    border-color: var(--c-dark);
    background: rgba(25,69,105,0.03);
}

/* Conditional section transitions */
.form-conditional {
    transition: opacity 0.3s ease, max-height 0.3s ease;
    overflow: hidden;
}
.form-conditional.hidden {
    display: none;
}

/* Form section card */
.form-card {
    border-radius: var(--radius);
    border: 1px solid #e5e7eb;
    overflow: hidden;
}
.form-card-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
}
.form-card-body {
    padding: 1.5rem;
}
@media (min-width: 1024px) {
    .form-card-body {
        padding: 2rem;
    }
}
