/* ============================================
   S.A.B Digitals - Style Global
   Day Mode (Light) - Default
   ============================================ */

:root {
    --foret: #00561B;
    --vert-mode-sombre: #1e8f4a;
    --or: #C5A059;
    --or-light: #C5A059;
    --asphalte: #1A1A1A;
    --blanc-casse: #FDFBF7;
    --beige: #F5F0E8;
    --beige-givre: #F9F9FB;
    --noir-profond: #0b0c10;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Inter', system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
}

.header-fixed {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(253, 251, 247, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(197, 160, 89, 0.25);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
}

.btn-cta {
    background: linear-gradient(135deg, #E3C98C, #C5A059);
    color: #0A3A2F;
    font-weight: 600;
    padding: 16px 36px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 14px rgba(197, 160, 89, 0.35);
    font-size: 1.1rem;
}

/* Hero Section Enhancements */
#hero .hero-badge {
    animation: badgeFadeIn 0.8s ease-out 0.2s both;
}

@keyframes badgeFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#hero .fade-in {
    animation: fadeInUp 0.8s ease-out both;
}

#hero .fade-in:nth-child(2) { animation-delay: 0.15s; }
#hero .fade-in:nth-child(3) { animation-delay: 0.3s; }
#hero .fade-in:nth-child(4) { animation-delay: 0.45s; }
#hero .fade-in:nth-child(5) { animation-delay: 0.6s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================================================
   📱📟💻 VERY RESPONSIVE MEDIA QUERIES - HERO PADDING (Padding Haut/Bas Égal)
   Fix pour iPhone 16 Pro (trop d'espace) / Samsung Galaxy A55 (coupe le h1)
   ========================================================================== */
/* Petite mobile (téléphones compacts - jusqu'à 475px) - iPhone */
@media screen and (max-width: 475px) {
    #hero {
        padding-top: 20px !important;
        padding-bottom: 20px !important;
    }
}

/* Mobile standard (téléphones - 476px à 639px) */
@media screen and (min-width: 476px) and (max-width: 639px) {
    #hero {
        padding-top: 24px !important;
        padding-bottom: 24px !important;
    }
}

/* Mobile large (téléphones - 640px à 767px) */
@media screen and (min-width: 640px) and (max-width: 767px) {
    #hero {
        padding-top: 32px !important;
        padding-bottom: 32px !important;
    }
}

/* Tablet portrait & landscape (768px à 1023px) */
@media screen and (min-width: 768px) and (max-width: 1023px) {
    #hero {
        padding-top: 40px !important;
        padding-bottom: 40px !important;
    }
}

/* Desktop & grands écrans (1024px et plus) */
@media screen and (min-width: 1024px) {
    #hero {
        padding-top: 48px !important;
        padding-bottom: 48px !important;
    }
}
.btn-cta:hover {
    background: linear-gradient(135deg, #E3C98C, #C5A059, #93733A);
    color: #FFFFFF !important;
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(197, 160, 89, 0.55);
}

.btn-ghost {
    background: var(--or);
    color: var(--asphalte);
    font-weight: 600;
    padding: 12px 28px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 14px rgba(197, 160, 89, 0.35);
}
.btn-ghost:hover {
    background: linear-gradient(135deg, #E3C98C, #C5A059, #93733A);
    color: #FFFFFF !important;
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(197, 160, 89, 0.55);
}

.btn-secondary {
    background: transparent;
    color: #C5A059;
    font-weight: 500;
    padding: 14px 34px;
    border-radius: 8px;
    border: 2px solid rgba(197, 160, 89, 0.6);
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 14px rgba(197, 160, 89, 0.25);
    font-size: 1rem;
}
.btn-secondary:hover {
    background: linear-gradient(135deg, #E3C98C, #C5A059, #93733A) !important;
    color: #0A3A2F !important;
    border-color: #C5A059;
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(197, 160, 89, 0.55);
}

/* Error button (404 page) - Green static, gold hover */
.error-btn {
    background: linear-gradient(135deg, #2E8B57, #00561B);
    color: #FFFFFF !important;
    border: none;
    font-weight: 700;
    padding: 12px 32px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 14px rgba(0, 86, 27, 0.3);
}
.error-btn:hover {
    background: linear-gradient(135deg, #E3C98C, #C5A059, #93733A) !important;
    color: #FFFFFF !important;
    box-shadow: 0 6px 24px rgba(197, 160, 89, 0.5);
    transform: translateY(-2px);
}

/* Gold to Green hover effect - for light mode */
.btn-gold-green-hover {
    background: linear-gradient(135deg, #E3C98C, #C5A059);
    color: #0A3A2F;
    font-weight: 600;
    padding: 16px 36px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 14px rgba(197, 160, 89, 0.35);
    font-size: 1.1rem;
}
.btn-gold-green-hover:hover {
    background: linear-gradient(135deg, #3CB371, #2E8B57, #00561B) !important;
    color: #FFFFFF !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(0, 86, 27, 0.5);
}

.card {
    background: white;
    border: 1px solid rgba(26, 26, 26, 0.06);
    border-radius: 16px;
    padding: 32px;
    transition: all 0.4s ease;
}
.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    border-color: rgba(197, 160, 89, 0.3);
}

.card.featured {
    border: 2px solid var(--or);
    position: relative;
}
.card.featured::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--or);
    border-radius: 0 0 4px 4px;
}

.bullet {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 10px;
    height: 10px;
    background: var(--or);
    border-radius: 50%;
    flex-shrink: 0;
    margin-right: 12px;
}
.bullet-green { background: var(--foret); }

.faq-item {
    border: 1px solid rgba(26, 26, 26, 0.08);
    border-radius: 12px;
    overflow: hidden;
    background: white;
    transition: all 0.3s ease;
}
.faq-item:hover {
    border-color: rgba(197, 160, 89, 0.4);
    background: var(--beige);
}
.faq-question {
    width: 100%;
    text-align: left;
    padding: 24px 28px;
    background: transparent;
    border: none;
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--asphalte);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s ease;
}
.faq-question:hover { background: var(--beige-givre); }
.faq-icon { width: 24px; height: 24px; transition: transform 0.3s ease; flex-shrink: 0; margin-left: 16px; }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s ease, padding 0.4s ease; padding: 0 28px; }
.faq-item.open .faq-answer { max-height: 500px; }
.faq-answer p { color: var(--asphalte); line-height: 1.7; padding-bottom: 24px; }

/* Dark mode - FAQ */ .dark .faq-question { background: var(--beige); color: var(--asphalte); } .dark .faq-item { background: var(--beige); } .dark .faq-answer { background: var(--noir-profond); color: var(--asphalte); }


/* Dark mode button hovers - main buttons stay gold, secondary uses translucent gold */
.dark .btn-cta:hover,
.dark .btn-ghost:hover {
    background: linear-gradient(135deg, #1e8f4a, #004012) !important;
    color: #FFFFFF !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(0, 86, 27, 0.5);
}

/* Dark mode secondary button hover - translucent gold */
.dark .btn-secondary:hover {
    background: rgba(197, 160, 89, 0.15) !important;
    color: #C5A059 !important;
    border-color: rgba(197, 160, 89, 0.4) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(197, 160, 89, 0.3);
}

.dark header { background: rgba(18, 18, 18, 0.95) !important; border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important; }
.dark .lang-btn { color: rgba(209, 213, 219, 0.7) !important; }
.dark .lang-btn.active { background: #1e8f4a !important; color: white !important; }
.dark .text-asphalte, .dark .text-asphalte\/70, .dark .text-asphalte\/60 { color: #d1d5db !important; }
.dark a:not(.btn-cta):not(.btn-secondary):not(.btn-ghost):not(.back-home):not(.error-btn) { color: #F3F4F6 !important; }
.dark a:not(.btn-cta):not(.btn-secondary):not(.btn-ghost):not(.back-home):not(.error-btn):hover { color: #C5A059 !important; }

.modern-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 12px;
}
.modern-table thead th {
    text-align: left;
    padding: 16px 24px;
    font-weight: 600;
    color: var(--asphalte);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 2px solid var(--or);
}
.modern-table tbody tr {
    background: white;
    border: 1px solid rgba(26, 26, 26, 0.06);
    border-radius: 12px;
    transition: all 0.3s ease;
}
.modern-table tbody tr:hover {
    transform: translateX(4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.06);
    border-color: rgba(197, 160, 89, 0.3);
}
.modern-table td {
    padding: 20px 24px;
    color: var(--asphalte);
    vertical-align: middle;
}
.modern-table td:first-child { border-radius: 12px 0 0 12px; }
.modern-table td:last-child { border-radius: 0 12px 12px 0; }
.modern-table .service-name { font-weight: 600; font-size: 1.05rem; }
.modern-table .service-desc { color: rgba(26, 26, 26, 0.6); }
.modern-table .price { font-weight: 700; color: var(--foret); font-size: 1.1rem; }

.input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: rgba(26, 26, 26, 0.1);
    outline: none;
}
.input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--or);
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(197, 160, 89, 0.4);
}
.input[type="range"]::-webkit-slider-thumb:hover {
    background: var(--foret);
    transform: scale(1.15);
    box-shadow: 0 4px 12px rgba(0, 86, 27, 0.4);
}
.input[type="range"]::-moz-range-thumb {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--or);
    cursor: pointer;
    border: none;
}

.icon-check { width: 20px; height: 20px; stroke: var(--or); stroke-width: 2.5; }
.icon-quote { width: 32px; height: 32px; stroke: var(--or); stroke-width: 1.5; opacity: 0.4; }
.icon-bullet { width: 12px; height: 12px; background: var(--or); border-radius: 50%; margin-right: 12px; flex-shrink: 0; }
.icon-bullet-green { background: var(--foret); }

.section-alt { background: var(--beige); }
.section-givre { background: var(--beige-givre); }

.fade-in {
    animation: fadeIn 0.6s ease-out forwards;
    opacity: 1;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
:focus-visible {
    outline: 2px solid var(--foret);
    outline-offset: 2px;
}
/* ============================================
   Dark Mode (Nuit) - Night Theme
   Applied via .dark class on body
   ============================================ */

.dark body {
    background-image:
        radial-gradient(circle at 15% 8%, rgba(197, 160, 89, 0.11), transparent 28%),
        radial-gradient(circle at 85% 92%, rgba(197, 160, 89, 0.08), transparent 32%);
    background-image:
        radial-gradient(circle at 12% 0%, rgba(197, 160, 89, 0.10), transparent 30%),
        radial-gradient(circle at 88% 100%, rgba(197, 160, 89, 0.07), transparent 34%);
}
.dark main {
    background-image:
        radial-gradient(circle at 12% 0%, rgba(197, 160, 89, 0.10), transparent 30%),
        radial-gradient(circle at 88% 100%, rgba(197, 160, 89, 0.07), transparent 34%);
}
.dark h1,
.dark h2,
.dark h3,
.dark .text-2xl,
.dark .text-xl {
    color: var(--foret) !important;
}
.dark a { color: #F3F4F6 !important; }
.dark a:hover { color: #C5A059 !important; }
.dark .lang-btn:hover { background-color: rgba(197, 160, 89, 0.12); }
.dark .lang-btn.active {
    background-color: #C5A059;
    color: #121212;
}
.dark .legal-card {
    border: 1px solid rgba(197, 160, 89, 0.18);
    background: linear-gradient(145deg, rgba(197, 160, 89, 0.08), rgba(30, 30, 30, 0.98));
    box-shadow: 0 0 28px rgba(197, 160, 89, 0.06);
}
.dark .back-home {
    background: linear-gradient(135deg, #2E8B57, #00561B);
    color: #FFFFFF !important;
    box-shadow: 0 0 24px rgba(0, 86, 27, 0.28);
}
.dark .back-home:hover {
    background: linear-gradient(135deg, #E3C98C, #C5A059, #93733A);
    color: #FFFFFF !important;
    box-shadow: 0 0 24px rgba(197, 160, 89, 0.5);
    transform: translateY(-3px);
}

/* Light mode back-home button (green static, gold hover) */
.back-home {
    background: linear-gradient(135deg, #2E8B57, #00561B);
    color: #FFFFFF !important;
    border: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 14px rgba(0, 86, 27, 0.3);
}
.signature-green {
    color: var(--foret) !important; /* Mode clair : vert forêt #00561B */
}

.dark .signature-green {
    color: var(--vert-mode-sombre) !important; /* Mode sombre : vert clair #1e8f4a */
}

.back-home {
    background: linear-gradient(135deg, #2E8B57, #00561B);
    color: #FFFFFF;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    display: inline-block;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 14px rgba(0, 86, 27, 0.3);
}

.back-home:hover {
    background: linear-gradient(135deg, #E3C98C, #C5A059, #93733A) !important;
    color: #FFFFFF !important;
    box-shadow: 0 6px 24px rgba(197, 160, 89, 0.5);
    transform: translateY(-2px);
}

/* ==========================================================================
    📱 STYLE MOBILE PAR DÉFAUT (Écrans de smartphones)
    ========================================================================== */

/* Data table styles */
.data-table { border-collapse: collapse; width: 100%; }
.data-table th, .data-table td { border: 1px solid rgba(26, 26, 26, 0.06); padding: 12px; text-align: left; }
.data-table th { background-color: var(--beige); color: var(--asphalte); font-weight: 600; }
.data-table tr:nth-child(even) { background-color: rgba(197, 160, 89, 0.04); }
.dark .data-table th { background: #1e8f4a; border-bottom: 1px solid #374151; color: #FFFFFF; }
.dark .data-table td { border-color: #1e8f4a; }
.dark .data-table tbody tr:hover td { background-color: rgba(197, 160, 89, 0.08); }
.dark .data-table tr:nth-child(even) { background-color: #1f2937; }

/* Language button styles */
.lang-btn {
    transition: all 0.2s ease;
}

/* Hover for inactive language buttons - green with opacity */
.lang-btn:hover:not(.active) {
    background-color: rgba(0, 86, 27, 0.1);
}

/* Hover for active language button (stays green) */
.lang-btn.active:hover {
    background-color: var(--foret) !important;
    color: white !important;
}

/* Active state styling */
.lang-btn.active {
    background-color: var(--foret) !important;
    color: white !important;
}

/* ==========================================================================
   📝 FORM HELPER TEXT - Textes d'aide dans les formulaires
   ========================================================================== */
.form-helper {
    font-size: 11px !important;
    line-height: 1.3 !important;
    margin-bottom: 4px !important;
}

/* ==========================================================================
   📱 STYLE MOBILE PAR DÉFAUT (Écrans de smartphones)
   ========================================================================== */
.hero-container {
    text-align: center !important;
    padding: 40px 20px !important;
}

h1 {
    font-size: 1.85rem !important; /* Taille réduite pour mobile */
    line-height: 1.3 !important;
    max-width: 100% !important;
    text-align: center !important;
    margin-bottom: 24px !important;
}

p {
    font-size: 1rem !important;
    line-height: 1.6 !important; /* Interligne aérée */
    /* text-align: center !important; removed to allow Tailwind alignment classes */
    margin-bottom: 24px !important;
}

.cta-container {
    display: flex;
    flex-direction: column !important; /* Boutons empilés sur mobile */
    gap: 16px !important;
}


/* ==========================================================================
   💻 DESKTOP OPTIMIZATION (Écrans PC à partir de 1024px)
   ========================================================================== */
@media screen and (min-width: 1024px) {
  .hero-container {
    align-items: center !important; /* Centre le contenu horizontalement */
    padding: 80px 10% !important; /* Donne de l'air sur les côtés */
  }

  h1 {
    font-size: 3rem !important; /* Titre grand et impactant sur PC */
    line-height: 1.2 !important;
    max-width: 850px !important; /* Empêche le texte de s'étaler trop largement */
    margin-bottom: 32px !important;
  }

  p {
    font-size: 1.15rem !important;
    line-height: 1.7 !important; /* Confort de lecture optimal */
    max-width: 700px !important; /* Largeur idéale pour l'œil humain */
    margin-bottom: 40px !important;
  }

  .cta-container {
    flex-direction: row !important; /* Aligne les boutons côte à côte sur PC */
    justify-content: center !important; /* Centre les boutons */
    gap: 20px !important;
  }
}