/**
 * Diet & Sens - Styles principaux
 * Version professionnelle refactorisée
 *
 * Structure:
 * 1. Variables CSS
 * 2. Reset & Base
 * 3. Loader
 * 4. Typography
 * 5. Layout
 * 6. Components
 * 7. Animations
 * 8. Accessibility
 * 9. Responsive (Mobile-first approach)
 */

/* ============================================================================
   1. VARIABLES CSS
   ============================================================================ */

:root {
    /* Couleurs principales */
    --emerald: #064e3b;
    --emerald-light: #10b981;
    --gold: #d4af37;
    --gold-light: #f3e5ab;

    /* Couleurs neutres */
    --background: #faf9f6;
    --text-color: #1f2937;
    --gray-300: #d1d5db;
    --gray-600: #4b5563;

    /* Effets */
    --transition: all 0.6s cubic-bezier(0.22, 1, 0.36, 1);
    --transition-fast: all 0.3s ease;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.5);
    --shadow-soft: 0 10px 40px -10px rgba(0, 0, 0, 0.08);
    --shadow-medium: 0 30px 60px rgba(0, 0, 0, 0.1);

    /* Espacements */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;

    /* Bordures */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
}

/* ============================================================================
   2. RESET & BASE
   ============================================================================ */

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

body {
    font-family: 'Montserrat', sans-serif;
    overflow-x: hidden;
    color: var(--text-color);
    background-color: var(--background);
    background-image: linear-gradient(to bottom, rgba(250, 249, 246, 0.4), rgba(250, 249, 246, 0.3)), url('../Abstrait.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 700;
}

.text-gray-300 {
    color: var(--gray-300);
}

/* ============================================================================
   3. LOADER
   ============================================================================ */

.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100dvh;
    background-color: var(--emerald);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: transform 1s cubic-bezier(0.65, 0, 0.35, 1),
                opacity 0.5s ease-out,
                visibility 0.5s ease-out;
    transform: translateZ(0);
}

/* Fallback CSS si JS désactivé - masque le loader après 3s */
.no-js .loader {
    animation: hideLoaderNoJs 3s forwards;
}

@keyframes hideLoaderNoJs {
    0%, 90% { opacity: 1; visibility: visible; }
    100% { opacity: 0; visibility: hidden; pointer-events: none; }
}

.loader.hidden {
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-content {
    color: white;
    text-align: center;
}

.loader-bar {
    width: 300px;
    height: 2px;
    background-color: rgba(255, 255, 255, 0.2);
    margin: 30px auto;
    position: relative;
}

.loader-progress {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background-color: var(--gold);
    width: 0%;
    transition: width 0.5s ease;
}

/* ============================================================================
   4. TYPOGRAPHY
   ============================================================================ */

.gradient-text {
    background: linear-gradient(120deg, var(--emerald), var(--gold));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.gold-accent {
    color: var(--gold);
}

/* Split text pour animations */
.split-text {
    visibility: hidden;
}

.char {
    display: inline-block;
    opacity: 0;
    transform: translateY(30px);
    transition: transform 0.5s, opacity 0.5s;
}

/* ============================================================================
   5. LAYOUT
   ============================================================================ */

.section {
    min-height: 100vh;
    width: 100%;
    padding: 8% 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* ============================================================================
   6. COMPONENTS
   ============================================================================ */

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 30px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    transition: var(--transition);
}

.logo {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem;
    color: var(--emerald);
    font-weight: 700;
}

/* Navigation */
.main-nav {
    display: flex;
    gap: 30px;
}

.nav-link {
    color: var(--emerald);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    padding: 5px 0;
    transition: var(--transition);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background-color: var(--gold);
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--gold);
}

.nav-link:hover::after {
    width: 100%;
}

/* Navigation dots */
.nav-dots {
    position: fixed;
    right: 50px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 20px;
    z-index: 100;
}

.nav-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: var(--transition);
}

.nav-dot.active {
    background-color: var(--gold);
    transform: scale(1.5);
}

/* Vertical text */
.vertical-text {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    font-family: 'Montserrat', sans-serif;
    letter-spacing: 2px;
    font-size: 0.8rem;
    position: fixed;
    left: 50px;
    top: 50%;
    transform: translateY(-50%) rotate(180deg);
    color: var(--emerald);
    z-index: 100;
}

/* Buttons */
.luxury-btn {
    position: relative;
    background: var(--emerald);
    color: white;
    border: none;
    padding: 18px 40px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
    transition: var(--transition);
    cursor: pointer;
    overflow: hidden;
    z-index: 1;
    font-size: 0.9rem;
}

.luxury-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gold);
    transition: all 0.4s ease-in-out;
    z-index: -1;
}

.luxury-btn:hover {
    color: var(--emerald);
}

.luxury-btn:hover::before {
    left: 0;
}

/* Service cards */
.service-card {
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: var(--radius-xl);
    padding: 50px 40px;
    transition: var(--transition);
    transform: translateY(0);
    box-shadow: var(--shadow-soft);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-medium);
    border-color: var(--gold);
}

/* Custom cursor (Desktop only) */
.cursor {
    position: fixed;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(30, 126, 52, 0.2);
    pointer-events: none;
    mix-blend-mode: difference;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: transform 0.1s ease-out, width 0.3s ease, height 0.3s ease;
}

.cursor-follower {
    position: fixed;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--emerald);
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: transform 0.15s ease-out;
}

/* Image reveal */
.image-reveal {
    position: relative;
    overflow: hidden;
}

.image-reveal::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--emerald);
    background-image: url('../logo.svg');
    background-repeat: no-repeat;
    background-position: center center;
    background-size: 30%;
    transform: translateX(0);
    transition: transform 1s cubic-bezier(0.65, 0, 0.35, 1);
}

.image-reveal.revealed::after {
    transform: translateX(100%);
}

/* Approach section */
.approach-image {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-sm);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.approach-image img {
    transform: scale(1.1);
    opacity: 0;
    transition: transform 1.2s cubic-bezier(0.215, 0.61, 0.355, 1), opacity 1s ease;
}

.approach-image.revealed img {
    transform: scale(1);
    opacity: 1;
}

.approach-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--emerald), var(--gold));
    opacity: 0.2;
    z-index: 1;
    transition: opacity 1.5s ease;
}

.approach-image.revealed::before {
    opacity: 0;
}

/* Approach tabs */
.approach-tabs {
    position: relative;
    margin-bottom: 40px;
}

.approach-tab {
    position: relative;
    font-family: 'Montserrat', sans-serif;
    padding: 1rem 1rem 1.5rem;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: var(--transition-fast);
    color: var(--text-color);
    opacity: 0.7;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.approach-tab::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 60%;
    height: 3px;
    background: var(--emerald);
    transition: transform 0.3s ease;
}

.approach-tab.active {
    opacity: 1;
}

.approach-tab.active::after {
    transform: translateX(-50%) scaleX(1);
}

.approach-tab:hover {
    opacity: 0.9;
}

.approach-tab .step-number {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--emerald);
    margin-bottom: 5px;
}

.approach-tab .step-name {
    font-size: 0.95rem;
    font-weight: 600;
    margin-top: 5px;
}

.approach-content {
    position: relative;
    padding: 2rem 0;
}

.approach-panel {
    opacity: 0;
    height: 0;
    overflow: hidden;
    transition: opacity 0.5s ease;
}

.approach-panel.active {
    opacity: 1;
    height: auto;
    overflow: visible;
}

/* Map container */
.map-container {
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.map-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.map-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(26, 93, 26, 0.05), transparent);
    pointer-events: none;
    z-index: 10;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.map-container:hover::before {
    opacity: 1;
}

/* Tarifs section anchor offset */
#tarifs {
    scroll-margin-top: 100px;
}

/* OneDoc widget */
.od-widget {
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
}

.od-widget:hover {
    box-shadow: var(--shadow-medium);
}

/* Mobile menu */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.mobile-menu-btn span {
    width: 100%;
    height: 3px;
    background-color: var(--emerald);
    transition: var(--transition-fast);
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -8px);
}

.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--background);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transform: translateX(100%);
    transition: transform 0.5s cubic-bezier(0.77, 0, 0.175, 1);
}

.mobile-menu.active {
    transform: translateX(0);
}

.mobile-nav-link {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem;
    color: var(--emerald);
    text-decoration: none;
    margin: 15px 0;
    opacity: 0;
    transform: translateY(20px);
    transition: var(--transition-fast);
}

.mobile-menu.active .mobile-nav-link {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.2s;
}

.mobile-menu-close {
    position: absolute;
    top: 25px;
    right: 25px;
    width: 44px;
    height: 44px;
    background: var(--emerald);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: var(--transition-fast);
    z-index: 1001;
    box-shadow: 0 4px 15px rgba(6, 78, 59, 0.3);
}

.mobile-menu-close:hover {
    background: var(--gold);
    transform: rotate(90deg);
}

.mobile-menu-close:active {
    transform: scale(0.95) rotate(90deg);
}

/* Cookie banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
    padding: var(--spacing-md);
    z-index: 9999;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.cookie-banner.visible {
    transform: translateY(0);
}

.cookie-banner-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.cookie-banner-text {
    flex: 1;
}

.cookie-banner-text h4 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--emerald);
    margin-bottom: var(--spacing-xs);
}

.cookie-banner-text p {
    font-size: 0.875rem;
    color: var(--gray-600);
    line-height: 1.5;
}

.cookie-banner-text a {
    color: var(--emerald);
    text-decoration: underline;
    transition: color 0.2s;
}

.cookie-banner-text a:hover {
    color: var(--gold);
}

.cookie-banner-text .cookie-links {
    font-size: 0.75rem;
    margin-top: var(--spacing-xs);
    color: #6b7280;
}

.cookie-banner-text .cookie-links a {
    color: #6b7280;
    text-decoration: underline;
}

.cookie-banner-text .cookie-links a:hover {
    color: var(--gold);
}

.cookie-banner-buttons {
    display: flex;
    gap: 0.75rem;
    flex-shrink: 0;
}

.cookie-btn {
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-fast);
    border: none;
}

.cookie-btn-accept {
    background: linear-gradient(135deg, var(--gold) 0%, #c9a227 100%);
    color: #1a1a1a;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.35);
}

.cookie-btn-accept:hover {
    background: linear-gradient(135deg, #e6c447 0%, var(--gold) 100%);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.45);
    transform: translateY(-1px);
}

.cookie-btn-decline {
    background: transparent;
    color: var(--emerald);
    border: 1px solid var(--emerald);
}

.cookie-btn-decline:hover {
    background: rgba(6, 78, 59, 0.05);
}

/* ============================================================================
   7. ANIMATIONS
   ============================================================================ */

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fadeUp {
    animation: fadeUp 0.8s forwards;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }

/* Fallback: afficher le contenu si JS échoue (géré principalement par JS) */
.no-js .split-text,
.no-js .char,
.no-js .service-card,
.no-js .image-reveal,
.no-js .approach-image {
    visibility: visible;
    opacity: 1;
}

/* ============================================================================
   8. ACCESSIBILITY
   ============================================================================ */

/* Réduire les animations pour les utilisateurs sensibles */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms;
        animation-iteration-count: 1;
        transition-duration: 0.01ms;
        scroll-behavior: auto;
    }

    .loader {
        display: none;
    }

    .cursor,
    .cursor-follower {
        display: none;
    }

    .split-text span {
        opacity: 1;
        transform: none;
    }

    .approach-image img {
        transform: none;
    }
}

/* Focus states visibles pour navigation clavier */
:focus-visible {
    outline: 3px solid var(--gold);
    outline-offset: 3px;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 3px solid var(--gold);
    outline-offset: 3px;
    border-radius: 4px;
}

.luxury-btn:focus-visible {
    outline: 3px solid var(--gold);
    outline-offset: 4px;
    box-shadow: 0 0 0 6px rgba(212, 175, 55, 0.2);
}

.nav-link:focus-visible,
.mobile-nav-link:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 4px;
    background: rgba(212, 175, 55, 0.1);
    border-radius: 4px;
}

.approach-tab:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
    background: rgba(212, 175, 55, 0.1);
}

.service-card:focus-within {
    box-shadow: 0 0 0 3px var(--gold), 0 10px 40px rgba(0, 0, 0, 0.1);
}

input:focus-visible,
textarea:focus-visible {
    outline: none;
    border-color: var(--emerald);
    box-shadow: 0 0 0 3px rgba(6, 78, 59, 0.2);
}

#back-to-top:focus-visible {
    outline: 3px solid var(--gold);
    outline-offset: 3px;
}

.cookie-btn:focus-visible {
    outline: 3px solid var(--gold);
    outline-offset: 3px;
}

/* Skip link */
.skip-link {
    position: absolute;
    top: -100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--emerald);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
    z-index: 10000;
    transition: top 0.3s;
    font-weight: 600;
    text-decoration: none;
}

.skip-link:focus {
    top: 0;
    outline: 3px solid var(--gold);
    outline-offset: 2px;
}

[tabindex="0"]:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 3px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :focus-visible {
        outline: 3px solid currentColor;
        outline-offset: 3px;
    }

    .luxury-btn {
        border: 2px solid currentColor;
    }
}

/* ============================================================================
   9. RESPONSIVE - TABLET & DESKTOP OVERRIDES
   ============================================================================ */

/* Cookie banner - desktop layout */
@media (min-width: 768px) {
    .cookie-banner-content {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

/* Tablet & Mobile - Show mobile menu */
@media (max-width: 1024px) {
    .main-nav {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .vertical-text {
        display: none;
    }

    .nav-dots {
        display: none;
    }

    .cursor,
    .cursor-follower {
        display: none;
    }

    /* Header */
    .header {
        padding: 15px 20px;
        background: rgba(250, 249, 246, 0.95);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }

    .logo {
        font-size: 1.5rem;
    }

    .logo img {
        height: 28px;
    }

    /* Hero */
    #hero {
        min-height: 100vh;
        min-height: 100dvh;
        padding-top: 100px;
        padding-bottom: 60px;
    }

    #hero .container {
        padding: 0 20px;
    }

    #hero h1.text-6xl,
    #hero h1.split-text {
        font-size: 2rem;
        line-height: 1.15;
        margin-bottom: 1.25rem;
    }

    #hero p.text-xl {
        font-size: 1rem;
        line-height: 1.6;
        margin-bottom: 1.5rem;
    }

    /* About */
    #about .grid {
        gap: 2rem;
    }

    #about h2.text-5xl {
        font-size: 1.75rem;
        margin-bottom: 1.5rem;
    }

    #about p.text-lg {
        font-size: 0.95rem;
        margin-bottom: 1.25rem;
    }

    /* Stats - horizontal scrollable */
    #about .flex.gap-4,
    #about .flex.gap-6 {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 1rem;
        padding-bottom: 0.5rem;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    #about .flex.gap-4::-webkit-scrollbar,
    #about .flex.gap-6::-webkit-scrollbar {
        display: none;
    }

    #about .flex.gap-4 > div,
    #about .flex.gap-6 > div {
        flex: 0 0 auto;
        min-width: 90px;
        text-align: center;
    }

    #about .flex.gap-4 .text-4xl,
    #about .flex.gap-6 .text-4xl {
        font-size: 1.75rem;
    }

    #about .flex.gap-4 .text-sm,
    #about .flex.gap-6 .text-sm {
        font-size: 0.7rem;
    }

    #about .image-reveal {
        max-height: 300px;
        border-radius: var(--radius-md);
    }

    #about .image-reveal img {
        object-fit: cover;
        height: 100%;
    }

    /* Approach */
    #approach {
        padding: 60px 0;
    }

    #approach h2.text-5xl {
        font-size: 1.75rem;
        margin-bottom: 2rem;
    }

    .approach-panel h3.text-2xl {
        font-size: 1.25rem;
    }

    .approach-panel p.text-lg {
        font-size: 0.9rem;
    }

    .approach-image {
        max-height: none;
        height: auto;
        margin-top: 1.5rem;
        border-radius: var(--radius-md);
        overflow: visible;
    }

    .approach-image img {
        width: 100%;
        height: auto;
        max-height: 280px;
        object-fit: contain;
        object-position: center;
    }

    /* Services */
    #services {
        padding: 60px 0;
    }

    #services h2.text-5xl {
        font-size: 1.75rem;
        margin-bottom: 2rem;
    }

    #services h3.text-3xl {
        font-size: 1.35rem;
        margin-bottom: 1rem;
    }

    #services p.text-lg {
        font-size: 0.9rem;
    }

    #services .grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .service-card {
        padding: 1.5rem 1.25rem;
        border-radius: var(--radius-lg);
    }

    .service-card .w-16 {
        width: 48px;
        height: 48px;
    }

    .service-card .w-16 svg {
        width: 24px;
        height: 24px;
    }

    .service-card h4.text-xl,
    .service-card h4.text-2xl {
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
    }

    .service-card p.text-gray-600,
    .service-card p.text-lg {
        font-size: 0.85rem;
    }

    .service-card ul {
        font-size: 0.85rem;
    }

    /* Service card layout - vertical on mobile */
    .service-card .flex.items-start {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .service-card .flex.items-start > .w-16 {
        margin-right: 0;
        margin-bottom: 1.25rem;
    }

    .service-card .flex.items-start > .flex-1 {
        width: 100%;
    }

    .service-card .flex.items-start > .flex-1 h4 {
        text-align: center;
    }

    .service-card .flex.items-start > .flex-1 p,
    .service-card .flex.items-start > .flex-1 ul {
        text-align: left;
    }

    .service-card .flex.items-start > .flex-1 > a.inline-flex {
        justify-content: center;
        width: 100%;
    }

    /* Alert boxes - keep icon left */
    .service-card .bg-amber-50 .flex.items-start,
    .service-card .bg-blue-50 .flex.items-start {
        flex-direction: row;
        align-items: flex-start;
        text-align: left;
    }

    .service-card .bg-amber-50 .flex.items-start > svg,
    .service-card .bg-blue-50 .flex.items-start > svg {
        margin-right: 0.75rem;
        margin-bottom: 0;
    }

    /* Visio card */
    #services .bg-gradient-to-r {
        padding: 1.5rem;
        border-radius: var(--radius-lg);
    }

    #services .bg-gradient-to-r h4.text-2xl {
        font-size: 1.25rem;
    }

    #services .bg-gradient-to-r p.text-lg {
        font-size: 0.9rem;
    }

    #services .bg-gradient-to-r .flex.flex-wrap {
        flex-direction: column;
        gap: 0.5rem;
    }

    #services .bg-gradient-to-r .w-20 {
        width: 56px;
        height: 56px;
    }

    /* Tarifs */
    #tarifs h3.text-3xl {
        font-size: 1.35rem;
    }

    #tarifs .service-card {
        padding: 1.25rem;
    }

    #tarifs h4.text-2xl {
        font-size: 1.15rem;
    }

    #tarifs .grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    #tarifs .bg-emerald-50 {
        padding: 1rem;
    }

    #tarifs .text-3xl {
        font-size: 1.5rem;
    }

    /* Les grilles à 2 colonnes deviennent 1 colonne sur mobile */

    .bg-amber-50,
    .bg-blue-50 {
        padding: 0.875rem;
    }

    .bg-amber-50 p,
    .bg-blue-50 p {
        font-size: 0.8rem;
    }

    /* Booking */
    #booking {
        padding: 60px 0;
    }

    #booking h2.text-5xl {
        font-size: 1.75rem;
        margin-bottom: 0.75rem;
    }

    #booking p.text-lg {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }

    #booking .bg-white {
        padding: 1rem;
        border-radius: var(--radius-lg);
    }

    #booking iframe.od-widget {
        height: 550px;
        min-height: 550px;
    }

    /* Contact */
    #contact {
        padding: 60px 0;
    }

    #contact .grid {
        gap: 2.5rem;
    }

    #contact h2.text-5xl {
        font-size: 1.75rem;
        margin-bottom: 1rem;
    }

    #contact h4.text-xl {
        font-size: 1rem;
    }

    #contact p.text-lg,
    #contact p.text-gray-600 {
        font-size: 0.9rem;
    }

    .map-container {
        height: 200px;
        border-radius: var(--radius-md);
    }

    #contact .flex.flex-wrap.gap-3 {
        gap: 0.5rem;
    }

    #contact .bg-emerald-50.px-3 {
        padding: 0.375rem 0.625rem;
    }

    #contact .bg-emerald-50 span {
        font-size: 0.75rem;
    }

    #contact form {
        padding: 1.5rem;
        border-radius: var(--radius-lg);
    }

    #contact form .mb-6 {
        margin-bottom: 1rem;
    }

    #contact form input,
    #contact form textarea {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }

    #contact form textarea {
        min-height: 100px;
    }

    #contact form label {
        font-size: 0.85rem;
        margin-bottom: 0.375rem;
    }

    /* Footer */
    footer {
        padding: 3rem 0 2rem;
    }

    footer .grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    footer .flex.items-center.gap-3 {
        justify-content: center;
    }

    footer h4 {
        font-size: 0.8rem;
    }

    footer p,
    footer li,
    footer a,
    footer span {
        font-size: 0.85rem;
    }

    footer .text-2xl {
        font-size: 1.35rem;
    }

    footer ul.space-y-3 {
        display: flex;
        flex-direction: column;
        flex-wrap: nowrap;
        align-items: center;
        gap: 0.5rem;
    }

    footer ul.space-y-3 li {
        width: auto;
        text-align: center;
    }

    footer ul.space-y-2 {
        display: block;
        max-width: 280px;
        margin: 0 auto;
    }

    footer ul.space-y-2 li {
        width: 100%;
    }

    footer .bg-emerald-50.rounded-xl {
        display: block;
        margin: 0 auto;
    }

    footer .border-t {
        margin-top: 2rem;
        padding-top: 1.5rem;
    }

    footer .border-t .flex {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    footer .flex.gap-4 {
        justify-content: center;
    }

    /* Back to top */
    #back-to-top {
        bottom: 20px;
        right: 20px;
        width: 44px;
        height: 44px;
    }

    /* Cookie banner */
    .cookie-banner {
        padding: 1rem;
    }

    .cookie-banner-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .cookie-banner-text h4 {
        font-size: 1rem;
    }

    .cookie-banner-text p {
        font-size: 0.8rem;
        line-height: 1.5;
    }

    .cookie-banner-text .cookie-links {
        font-size: 0.7rem;
    }

    .cookie-banner-buttons {
        flex-direction: column;
        width: 100%;
        gap: 0.5rem;
    }

    .cookie-btn {
        width: 100%;
        padding: 0.75rem 1rem;
        font-size: 0.85rem;
    }

    /* Loader */
    .loader-content h2 {
        font-size: 1.75rem;
    }

    .loader-bar {
        width: 200px;
    }

    .loader-content p {
        font-size: 0.9rem;
    }

    /* Mobile menu */
    .mobile-menu {
        padding: 80px 30px 30px;
    }

    .mobile-nav-link {
        font-size: 1.5rem;
        margin: 10px 0;
        padding: 8px 0;
    }

    .mobile-menu-close {
        top: 20px;
        right: 20px;
    }
}

/* Landscape mobile - fix display issues */
@media (orientation: landscape) and (max-height: 600px) {
    .main-nav {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .vertical-text {
        display: none;
    }

    .section {
        min-height: auto;
        height: auto;
        padding: 40px 20px;
    }

    #hero {
        min-height: auto;
        height: auto;
        padding-top: 80px;
        padding-bottom: 40px;
    }

    #hero .container {
        padding: 0 20px;
    }

    #hero h1,
    .text-6xl,
    .md\:text-8xl {
        font-size: 1.75rem;
        line-height: 1.2;
        margin-bottom: 0.75rem;
    }

    #hero p,
    #hero .text-xl {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }

    .header {
        padding: 8px 15px;
    }

    .logo {
        font-size: 1.25rem;
    }

    .logo img {
        height: 24px;
    }

    .nav-dots {
        display: none;
    }

    .mobile-menu {
        overflow-y: auto;
        padding: 60px 20px 20px;
        justify-content: flex-start;
    }

    .mobile-nav-link {
        font-size: 1.2rem;
        margin: 6px 0;
        padding: 8px 0;
    }

    .loader {
        height: 100%;
    }

    .loader-content {
        transform: scale(0.8);
    }

    .loader-content h2 {
        font-size: 1.5rem;
    }

    .loader-bar {
        width: 150px;
        margin: 15px auto;
    }

    h2.text-5xl,
    .text-5xl {
        font-size: 1.5rem;
    }

    h3.text-3xl,
    .text-3xl {
        font-size: 1.25rem;
    }

    .text-4xl {
        font-size: 1.35rem;
    }

    .text-2xl {
        font-size: 1.1rem;
    }

    .text-xl {
        font-size: 0.95rem;
    }

    .text-lg {
        font-size: 0.875rem;
    }

    .service-card {
        padding: 20px 15px;
    }

    .service-card h3 {
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
    }

    .service-card p {
        font-size: 0.8rem;
    }

    #services .grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    #about {
        padding: 40px 20px;
    }

    #about .grid {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
        align-items: center;
    }

    #about .image-reveal {
        max-height: 250px;
        overflow: hidden;
    }

    #about .image-reveal img {
        object-fit: cover;
        height: 100%;
    }

    #about .flex.gap-4,
    #about .flex.gap-6 {
        flex-wrap: nowrap;
        justify-content: flex-start;
        gap: 15px;
    }

    #about .flex.gap-4 > div,
    #about .flex.gap-6 > div {
        flex: 0 0 auto;
    }

    #approach {
        padding: 40px 20px;
    }

    .approach-tabs {
        flex-wrap: nowrap;
        gap: 10px;
        margin-bottom: 20px;
    }

    .approach-tab {
        font-size: 0.8rem;
        padding: 8px 12px;
    }

    .approach-content {
        padding: 0.5rem 0;
    }

    .approach-panel .grid {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
        align-items: center;
    }

    .approach-image {
        max-height: none;
        height: auto;
        overflow: visible;
    }

    .approach-image img {
        object-fit: contain;
        object-position: center;
        height: auto;
        max-height: 200px;
        width: 100%;
    }

    .luxury-btn {
        padding: 10px 18px;
        font-size: 0.75rem;
        width: auto;
    }

    #hero .animate-bounce,
    .scroll-indicator {
        display: none;
    }

    #contact {
        padding: 40px 20px;
    }

    #contact .grid {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }

    .map-container {
        height: 180px;
    }

    #contact form input,
    #contact form textarea {
        padding: 10px 12px;
        font-size: 0.85rem;
    }

    #contact form textarea {
        min-height: 80px;
    }

    #booking {
        padding: 40px 20px;
    }

    #booking .od-widget {
        height: 350px;
    }

    footer {
        padding: 30px 20px;
    }

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

    footer p,
    footer li,
    footer a {
        font-size: 0.8rem;
    }

    footer h3 {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }

    #back-to-top {
        bottom: 10px;
        right: 10px;
        width: 36px;
        height: 36px;
    }

    .cookie-banner {
        padding: 0.75rem;
    }

    .cookie-banner-content {
        flex-direction: row;
        align-items: center;
        gap: 1rem;
    }

    .cookie-banner-text h4 {
        font-size: 0.9rem;
        margin-bottom: 0.25rem;
    }

    .cookie-banner-text p {
        font-size: 0.75rem;
    }

    .cookie-btn {
        padding: 0.5rem 1rem;
        font-size: 0.75rem;
    }

    .glass-panel {
        padding: 20px;
    }

    .image-reveal {
        max-height: 220px;
    }
}

/* Very small landscape phones */
@media (orientation: landscape) and (max-height: 450px) {
    #hero h1,
    .text-6xl,
    .md\:text-8xl {
        font-size: 1.5rem;
    }

    .section {
        padding: 30px 15px;
    }

    #hero {
        padding-top: 60px;
        padding-bottom: 30px;
    }

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

    .service-card {
        padding: 15px 10px;
    }

    .service-card h3 {
        font-size: 0.95rem;
    }

    footer .grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* Small mobile (iPhone SE, etc.) */
@media (max-width: 375px) {
    .header {
        padding: 12px 15px;
    }

    .logo {
        font-size: 1.25rem;
    }

    .logo img {
        height: 24px;
    }

    #hero h1.text-6xl,
    #hero h1.split-text {
        font-size: 1.65rem;
    }

    #hero p.text-xl {
        font-size: 0.9rem;
    }

    .luxury-btn {
        padding: 12px 20px;
        font-size: 0.75rem;
        letter-spacing: 2px;
    }

    #about h2.text-5xl,
    #approach h2.text-5xl,
    #services h2.text-5xl,
    #booking h2.text-5xl,
    #contact h2.text-5xl {
        font-size: 1.5rem;
    }

    .service-card {
        padding: 1.25rem 1rem;
    }

    #tarifs .text-3xl {
        font-size: 1.35rem;
    }

    #contact form {
        padding: 1.25rem;
    }

    .cookie-btn {
        padding: 0.625rem 0.875rem;
        font-size: 0.8rem;
    }
}

/* Portrait mobile - show all approach panels stacked */
@media (max-width: 767px) and (orientation: portrait) {
    .approach-panel {
        opacity: 1;
        height: auto;
        overflow: visible;
        display: block;
        margin-bottom: 3rem;
    }

    .approach-image {
        opacity: 1;
    }

    .approach-image img {
        opacity: 1;
        transform: scale(1);
    }

    .approach-panel h3.hidden.md\:block {
        display: none;
    }
}

/* iOS Safari fix */
@supports (-webkit-touch-callout: none) {
    #hero {
        min-height: -webkit-fill-available;
    }

    .mobile-menu {
        height: -webkit-fill-available;
    }
}

/* Touch device improvements */
@media (hover: none) and (pointer: coarse) {
    .luxury-btn:hover::before {
        left: -100%;
    }

    .luxury-btn:active::before {
        left: 0;
    }

    .service-card:hover {
        transform: none;
    }

    .service-card:active {
        transform: scale(0.98);
    }

    .nav-link:hover::after {
        width: 0;
    }
}
