/* ============================================
   CÉDRIC MOBIL HOMES — Custom Styles
   Design System : Primary #2ABFBF (Teal)
   Thème CLAIR — Dégradé mint/teal
   ============================================ */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:wght@500;600;700;800&display=swap');

/* ---- CSS Variables ---- */
:root {
    --primary-50:  #edfcfc;
    --primary-100: #d2f7f6;
    --primary-200: #aaeeed;
    --primary-300: #72e0e0;
    --primary-400: #3bcaca;
    --primary-500: #2ABFBF;
    --primary-600: #1e9999;
    --primary-700: #1d7a7b;
    --primary-800: #1e6264;
    --primary-900: #1e5254;
    --primary-950: #0c3334;
    --title-color: #2596be;
    --gradient-primary: linear-gradient(135deg, #2ABFBF, #1e9999);
    --gradient-hero-light: linear-gradient(160deg, #ffffff 0%, #edfcfc 25%, #d2f7f6 50%, #edfcfc 75%, #ffffff 100%);
    --gradient-section: linear-gradient(180deg, #f0fdfc 0%, #ffffff 100%);
    --gradient-dark: linear-gradient(145deg, #0c3334 0%, #1e5254 35%, #1d7a7b 100%);
    --font-body: 'Inter', system-ui, -apple-system, sans-serif;
    --font-heading: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
}

/* ---- Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 15px; }
body {
    font-family: var(--font-body);
    color: #1f2937;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    background: #fff;
}
h1, h2, h3, h4 { font-family: var(--font-heading); line-height: 1.15; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }

/* ---- Utilities ---- */
.container { max-width: 1140px; margin: 0 auto; padding: 0 1.25rem; }
.section { padding: 4rem 0; }
.section-alt { background: linear-gradient(180deg, #f8fffe 0%, #ffffff 100%); }
.text-primary { color: var(--primary-500); }
.teal { color: var(--title-color); }
.bg-primary { background: var(--gradient-primary); }
.text-center { text-align: center; }

/* ---- Navbar (toujours blanc/solide) ---- */
.navbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    height: 90px; display: flex; align-items: center;
    background: #fff; border-bottom: 1px solid #f0f0f0;
    transition: all 0.3s;
}
.navbar.scrolled {
    box-shadow: 0 1px 8px rgba(0,0,0,0.06);
}
.navbar .container { display: flex; align-items: center; justify-content: space-between; width: 100%; }

/* Logo avec icône + texte */
.navbar-logo { display: flex; align-items: center; gap: 0.6rem; }
.navbar-logo-icon {
    width: 40px; height: 40px; border-radius: 0.75rem;
    background: var(--primary-50); display: flex; align-items: center; justify-content: center;
    font-size: 1.25rem;
}
.navbar-logo-text { display: flex; flex-direction: column; }
.navbar-logo-name { font-family: var(--font-heading); font-weight: 800; font-size: 1rem; color: var(--title-color); }
.navbar-logo-sub { font-size: 0.625rem; color: var(--title-color); opacity: 0.8; transform: scale(0.65); transform-origin: top left; line-height: 1.4; }

/* Legacy logo (img) */
.navbar-logo img { height: 70px; width: auto; }
.navbar-logo span { font-family: var(--font-heading); font-weight: 700; font-size: 1.1rem; color: var(--title-color); }

/* Nav links as pills */
.navbar-links { display: flex; gap: 0.2rem; align-items: center; flex-shrink: 0; white-space: nowrap; }
.navbar-links a {
    font-size: 0.75rem; font-weight: 500; color: #6b7280;
    padding: 0.35rem 0.65rem; border-radius: 2rem; transition: all 0.2s;
}
.navbar-links a:hover { color: var(--primary-600); background: var(--primary-50); }
.navbar-links a.active { color: var(--primary-600); background: var(--primary-50); font-weight: 600; }

/* CTA button nav */
.btn-nav {
    padding: 0.5rem 1.25rem; border-radius: 2rem; font-weight: 600; font-size: 0.813rem;
    background: var(--gradient-primary); color: #fff !important;
    transition: all 0.2s; border: none; cursor: pointer;
    box-shadow: 0 4px 14px rgba(42,191,191,0.25);
    margin-left: 0.35rem;
}
.btn-nav:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(42,191,191,0.35); }

/* Mobile menu */
.navbar-toggle { display: none; background: none; border: none; cursor: pointer; padding: 0.5rem; }
.navbar-toggle span { display: block; width: 22px; height: 2px; margin: 4px 0; background: #374151; transition: all 0.3s; }
.mobile-menu {
    display: none; position: fixed; top: 90px; left: 0; right: 0; bottom: 0;
    background: rgba(255,255,255,0.98); backdrop-filter: blur(12px);
    flex-direction: column; padding: 1.5rem; gap: 1.25rem; z-index: 999;
}
.mobile-menu.open { display: flex; }
.mobile-menu a { font-size: 1rem; font-weight: 500; color: #374151; padding: 0.625rem 0; border-bottom: 1px solid #f3f4f6; }

@media (max-width: 1024px) {
    .navbar-links { display: none; }
    .navbar-toggle { display: block; }
}

/* ---- Hero (thème clair) ---- */
.hero {
    position: relative; min-height: 92vh; display: flex; align-items: center;
    background: var(--gradient-hero-light); overflow: hidden;
    padding-top: 90px;
}
.hero::after {
    content: ''; position: absolute; top: -50%; right: -20%; width: 60%; height: 200%;
    background: radial-gradient(circle, rgba(42,191,191,0.08) 0%, transparent 70%);
    pointer-events: none;
}
.hero-content { position: relative; z-index: 2; max-width: 680px; padding: 3rem 0; }

/* Hero badge avec point vert */
.hero-badge {
    display: inline-flex; align-items: center; gap: 0.5rem;
    background: rgba(255,255,255,0.8); backdrop-filter: blur(8px);
    padding: 0.5rem 1rem; border-radius: 2rem; font-size: 0.813rem; font-weight: 500;
    margin-bottom: 1.5rem; border: 1px solid #e5e7eb; color: #374151;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.hero-badge-dot {
    width: 9px; height: 9px; border-radius: 50%;
    background: var(--primary-500); flex-shrink: 0;
}
.hero h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); font-weight: 800; margin-bottom: 1rem; color: var(--title-color); }
.hero p { font-size: clamp(0.938rem, 1.5vw, 1.1rem); color: #6b7280; max-width: 560px; margin-bottom: 1.25rem; line-height: 1.7; }

/* Hero info box */
.hero-info {
    padding: 0.875rem 1.25rem; border-radius: 0.75rem; border: 1px solid var(--primary-200);
    background: rgba(255,255,255,0.7); margin-bottom: 2rem; color: var(--primary-700);
    font-size: 0.875rem; line-height: 1.6;
}
.hero-buttons { display: flex; gap: 0.875rem; flex-wrap: wrap; }

/* Hero Particles Animation */
.hero-particles {
    position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden;
}
.hero-particle {
    position: absolute; border-radius: 50%; opacity: 0;
    animation: particleFloat linear infinite;
}
@keyframes particleFloat {
    0% { opacity: 0; transform: translateY(100vh) scale(0); }
    10% { opacity: 0.6; }
    90% { opacity: 0.6; }
    100% { opacity: 0; transform: translateY(-10vh) scale(1); }
}
.hero-wave {
    position: absolute; bottom: -2px; left: 0; width: 100%; z-index: 2;
}

/* Hero dark (subpages) — AUSSI en clair */
.hero-dark {
    background: var(--gradient-hero-light);
    padding: 7.5rem 0 3rem; text-align: center;
    position: relative;
}
.hero-dark::after {
    content: ''; position: absolute; top: -50%; right: -20%; width: 60%; height: 200%;
    background: radial-gradient(circle, rgba(42,191,191,0.06) 0%, transparent 70%);
    pointer-events: none;
}
.hero-dark h1 { font-size: clamp(1.35rem, 2.5vw, 1.85rem); font-weight: 800; margin-bottom: 0.75rem; color: var(--title-color); }
.hero-dark p { font-size: clamp(0.875rem, 1.3vw, 1rem); color: #6b7280; max-width: 560px; margin: 0 auto; }

/* ---- Buttons (pill shapes — border-radius 2rem) ---- */
.btn-primary {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.813rem 2rem; border-radius: 2rem; font-weight: 600; font-size: 0.938rem;
    background: var(--gradient-primary); color: #fff; border: none; cursor: pointer;
    transition: all 0.2s; box-shadow: 0 4px 14px rgba(42,191,191,0.25);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(42,191,191,0.35); }

.btn-outline {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.813rem 2rem; border-radius: 2rem; font-weight: 600; font-size: 0.938rem;
    background: transparent; color: var(--primary-600); border: 2px solid var(--primary-300);
    cursor: pointer; transition: all 0.2s;
}
.btn-outline:hover { background: var(--primary-50); border-color: var(--primary-500); }

.btn-outline-sm {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.625rem 1.5rem; border-radius: 2rem; font-weight: 600; font-size: 0.875rem;
    color: var(--primary-600); border: 2px solid var(--primary-200); transition: all 0.2s;
}
.btn-outline-sm:hover { background: var(--primary-50); border-color: var(--primary-400); }

.btn-white {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.813rem 2rem; border-radius: 2rem; font-weight: 600; font-size: 0.938rem;
    background: #fff; color: var(--primary-700); border: none; cursor: pointer; transition: all 0.2s;
    box-shadow: 0 4px 14px rgba(0,0,0,0.08);
}
.btn-white:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(0,0,0,0.12); }

.btn-ghost-dark {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.813rem 2rem; border-radius: 2rem; font-weight: 600; font-size: 0.938rem;
    background: rgba(255,255,255,0.15); backdrop-filter: blur(8px);
    color: #fff; border: 1px solid rgba(255,255,255,0.3); cursor: pointer; transition: all 0.2s;
}
.btn-ghost-dark:hover { background: rgba(255,255,255,0.25); transform: translateY(-1px); }

.btn-secondary {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.813rem 2rem; border-radius: 2rem; font-weight: 600; font-size: 0.938rem;
    background: rgba(255,255,255,0.15); backdrop-filter: blur(8px);
    color: #fff; border: 1px solid rgba(255,255,255,0.3); cursor: pointer; transition: all 0.2s;
}
.btn-secondary:hover { background: rgba(255,255,255,0.25); transform: translateY(-1px); }

/* Filter buttons */
.filter-btn {
    padding: 0.5rem 1.25rem; border-radius: 2rem; font-weight: 600; font-size: 0.813rem;
    border: 2px solid var(--primary-200); color: var(--primary-600); background: transparent;
    cursor: pointer; transition: all 0.2s;
}
.filter-btn:hover { background: var(--primary-50); }
.filter-btn.active { background: var(--gradient-primary); color: #fff; border-color: transparent; }

/* ---- Cards ---- */
.card {
    background: #fff; border-radius: 1rem; border: 1px solid #e5e7eb;
    overflow: hidden; transition: all 0.3s;
}
.card:hover { box-shadow: 0 16px 36px rgba(0,0,0,0.06); transform: translateY(-3px); }
.card-img { position: relative; height: 180px; overflow: hidden; background: #f3f4f6; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.card:hover .card-img img { transform: scale(1.05); }
.card-badge {
    position: absolute; top: 0.75rem; left: 0.75rem;
    background: var(--gradient-primary); color: #fff;
    padding: 0.3rem 0.875rem; border-radius: 2rem; font-size: 0.75rem; font-weight: 600;
}
.card-body { padding: 1.25rem; }
.card-title { font-family: var(--font-heading); font-size: clamp(0.95rem, 1.3vw, 1.1rem); font-weight: 700; margin-bottom: 0.375rem; color: #111827; }
.card-subtitle { font-size: 0.813rem; color: #6b7280; margin-bottom: 0.875rem; }
.card-features { display: flex; flex-wrap: wrap; gap: 0.375rem; margin-bottom: 1rem; }
.card-feature {
    display: inline-flex; align-items: center; gap: 0.3rem;
    font-size: 0.75rem; color: #4b5563; background: #f3f4f6;
    padding: 0.3rem 0.625rem; border-radius: 2rem;
}
.card-feature svg { width: 14px; height: 14px; color: var(--primary-500); }
.card-footer { display: flex; align-items: center; justify-content: space-between; padding-top: 0.875rem; border-top: 1px solid #f3f4f6; }
.card-price { font-family: var(--font-heading); }
.card-price .amount { font-size: 1.25rem; font-weight: 800; color: var(--primary-600); }
.card-price .unit { font-size: 0.75rem; color: #9ca3af; }

/* ---- Horizontal Cards (listing page) ---- */
.card-horizontal {
    display: flex; flex-direction: row; border-radius: 1rem;
    border: 1px solid #e5e7eb; overflow: hidden; background: #fff;
    transition: all 0.3s;
}
.card-horizontal:hover { box-shadow: 0 16px 36px rgba(0,0,0,0.06); transform: translateY(-3px); }
.card-horizontal .card-img {
    width: 220px; min-width: 220px; height: auto; min-height: 170px;
    position: relative; overflow: hidden; background: #f3f4f6;
}
.card-horizontal .card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.card-horizontal:hover .card-img img { transform: scale(1.05); }
.card-horizontal .card-body { flex: 1; padding: 0.875rem 1rem; display: flex; flex-direction: column; justify-content: center; gap: 0.25rem; }
.grid-listing { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
@media (max-width: 1024px) {
    .grid-listing { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    .card-horizontal { flex-direction: column; }
    .card-horizontal .card-img { width: 100%; min-width: unset; height: 180px; min-height: unset; }
}
@media (max-width: 480px) {
    .card-horizontal .card-img { height: 160px; }
}

/* ---- Grid ---- */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
@media (max-width: 1024px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* ---- Section Headers ---- */
.section-header { text-align: center; max-width: 640px; margin: 0 auto 3rem; }
.section-header .overline {
    display: inline-flex; align-items: center; gap: 0.5rem;
    font-size: 0.813rem; font-weight: 600; color: var(--primary-600);
    text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 0.625rem;
}
.section-header h2 { font-size: clamp(1.5rem, 2.5vw, 2.1rem); font-weight: 800; color: #111827; margin-bottom: 0.75rem; }
.section-header p { font-size: clamp(0.875rem, 1.3vw, 1rem); color: #6b7280; line-height: 1.7; }
.overline {
    font-size: 0.813rem; font-weight: 600; color: var(--primary-600);
    text-transform: uppercase; letter-spacing: 0.05em;
}

/* ---- Features Grid ---- */
.feature-card {
    background: #fff; border-radius: 1rem; padding: 1.5rem; border: 1px solid #e5e7eb;
    transition: all 0.3s; text-align: center;
}
.feature-card:hover { box-shadow: 0 10px 28px rgba(0,0,0,0.05); transform: translateY(-2px); }
.feature-icon {
    width: 52px; height: 52px; border-radius: 0.875rem; display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, var(--primary-50), var(--primary-100));
    color: var(--primary-600); margin: 0 auto 1rem;
}
.feature-icon svg { width: 24px; height: 24px; }
.feature-card h3 { font-size: clamp(0.938rem, 1.3vw, 1.05rem); font-weight: 700; margin-bottom: 0.625rem; color: #111827; }
.feature-card p { font-size: clamp(0.813rem, 1.1vw, 0.875rem); color: #6b7280; line-height: 1.6; }

/* ---- Testimonials ---- */
.testimonial {
    background: #fff; border-radius: 1rem; padding: 1.5rem; border: 1px solid #e5e7eb;
}
.testimonial-stars { color: #f59e0b; font-size: 1rem; margin-bottom: 0.75rem; letter-spacing: 2px; }
.testimonial-text { font-size: 0.875rem; color: #374151; line-height: 1.7; margin-bottom: 1.25rem; font-style: italic; }
.testimonial-author { font-weight: 600; color: #111827; font-size: 0.875rem; }
.testimonial-date { font-size: 0.75rem; color: #9ca3af; }

/* ---- CTA Section (thème clair) ---- */
.cta-section {
    background: var(--gradient-hero-light); padding: 4rem 0; text-align: center;
    position: relative; overflow: hidden;
}
.cta-section::before {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(circle at 20% 50%, rgba(42,191,191,0.08) 0%, transparent 50%),
                radial-gradient(circle at 80% 50%, rgba(42,191,191,0.06) 0%, transparent 50%);
}
.cta-section .container { position: relative; z-index: 1; }
.cta-section h2 { font-size: clamp(1.5rem, 2.5vw, 2.1rem); font-weight: 800; margin-bottom: 0.75rem; color: #111827; }
.cta-section p { font-size: clamp(0.875rem, 1.3vw, 1rem); color: #6b7280; max-width: 520px; margin: 0 auto 1.5rem; }

/* ---- Footer (thème clair) ---- */
.footer { background: #f8fffe; color: #4b5563; padding: 3rem 0 1.5rem; border-top: 1px solid #e5e7eb; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2.5rem; margin-bottom: 2.5rem; }
.footer-brand p { font-size: 0.875rem; line-height: 1.7; margin-top: 0.75rem; color: #6b7280; }
.footer h4 { font-family: var(--font-heading); font-size: 0.938rem; font-weight: 700; color: #111827; margin-bottom: 1rem; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 0.625rem; }
.footer-links a { font-size: 0.813rem; color: #6b7280; transition: color 0.2s; }
.footer-links a:hover { color: var(--primary-600); }
.footer-links li { font-size: 0.813rem; color: #6b7280; }
.footer-bottom {
    border-top: 1px solid #e5e7eb; padding-top: 1.5rem;
    display: flex; justify-content: space-between; align-items: center; font-size: 0.75rem; color: #9ca3af;
}
.footer-social { display: flex; gap: 0.75rem; }
.footer-social a {
    width: 36px; height: 36px; border-radius: 0.5rem; display: flex; align-items: center; justify-content: center;
    background: #fff; color: #6b7280; border: 1px solid #e5e7eb; transition: all 0.2s;
}
.footer-social a:hover { background: var(--primary-50); color: var(--primary-600); border-color: var(--primary-300); }
@media (max-width: 768px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 1.25rem; }
}
@media (max-width: 480px) {
    .footer-grid { grid-template-columns: 1fr; }
}

/* ---- Calendar (compact & modern) ---- */
.calendar { max-width: 480px; margin: 0 auto; }
.calendar-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.calendar-header h3 { font-size: 1rem; font-weight: 700; }
.calendar-nav { display: flex; gap: 0.375rem; }
.calendar-nav button {
    width: 32px; height: 32px; border-radius: 2rem; border: 1px solid #e5e7eb;
    background: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center;
    transition: all 0.2s;
}
.calendar-nav button:hover { background: var(--primary-50); border-color: var(--primary-300); }
.calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.calendar-day-header { text-align: center; font-size: 0.688rem; font-weight: 600; color: #9ca3af; padding: 0.375rem; text-transform: uppercase; }
.calendar-day {
    aspect-ratio: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
    border-radius: 0.5rem; font-size: 0.75rem; cursor: default; position: relative; transition: all 0.2s;
}
.calendar-day.disponible { background: #ecfdf5; color: #065f46; cursor: pointer; }
.calendar-day.disponible:hover { background: #d1fae5; transform: scale(1.05); }
.calendar-day.reserve { background: #fef2f2; color: #991b1b; }
.calendar-day.bloque { background: #f3f4f6; color: #9ca3af; }
.calendar-day.empty { background: transparent; }
.calendar-day.selected { background: var(--primary-500); color: #fff; }
.calendar-day .prix { font-size: 0.563rem; color: inherit; opacity: 0.7; margin-top: 1px; }
.calendar-legend { display: flex; gap: 1.25rem; justify-content: center; margin-top: 1rem; }
.calendar-legend span { display: flex; align-items: center; gap: 0.375rem; font-size: 0.75rem; color: #6b7280; }
.calendar-legend .dot { width: 10px; height: 10px; border-radius: 3px; }

/* ---- Forms ---- */
.form-group { margin-bottom: 1rem; }
.form-label { display: block; font-size: 0.813rem; font-weight: 600; color: #374151; margin-bottom: 0.375rem; }
.form-input, .form-select, .form-textarea {
    width: 100%; padding: 0.625rem 0.875rem; border: 1px solid #d1d5db; border-radius: 0.625rem;
    font-family: var(--font-body); font-size: 0.875rem; color: #111827;
    transition: all 0.2s; background: #fff;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
    outline: none; border-color: var(--primary-400); box-shadow: 0 0 0 3px rgba(42,191,191,0.15);
}
.form-textarea { resize: vertical; min-height: 80px; }
.form-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.875rem; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }

/* ---- Alerts ---- */
.alert { padding: 0.875rem 1.25rem; border-radius: 0.625rem; margin-bottom: 1.25rem; font-size: 0.875rem; }
.alert-success { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.alert-error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }

/* ---- Photo Gallery ---- */
.gallery { display: grid; grid-template-columns: 2fr 1fr; gap: 0.5rem; border-radius: 1rem; overflow: hidden; max-height: 420px; }
.gallery-main { height: 100%; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-side { display: grid; grid-template-rows: 1fr 1fr; gap: 0.5rem; }
.gallery-side img { width: 100%; height: 100%; object-fit: cover; }
.gallery-more { position: relative; cursor: pointer; }
.gallery-more::after {
    content: 'Voir toutes les photos'; position: absolute; inset: 0;
    background: rgba(0,0,0,0.5); color: #fff; display: flex; align-items: center; justify-content: center;
    font-weight: 600; font-size: 0.813rem;
}
@media (max-width: 640px) {
    .gallery { grid-template-columns: 1fr; max-height: 260px; }
    .gallery-side { display: none; }
}

/* ---- Animations ---- */
.fade-in { opacity: 0; transform: translateY(24px); transition: opacity 0.7s cubic-bezier(0.22,1,0.36,1), transform 0.7s cubic-bezier(0.22,1,0.36,1); }
.fade-in.visible { opacity: 1; transform: translateY(0); }
.fade-in-left { opacity: 0; transform: translateX(-30px); transition: opacity 0.7s cubic-bezier(0.22,1,0.36,1), transform 0.7s cubic-bezier(0.22,1,0.36,1); }
.fade-in-left.visible { opacity: 1; transform: translateX(0); }
.fade-in-right { opacity: 0; transform: translateX(30px); transition: opacity 0.7s cubic-bezier(0.22,1,0.36,1), transform 0.7s cubic-bezier(0.22,1,0.36,1); }
.fade-in-right.visible { opacity: 1; transform: translateX(0); }
.scale-in { opacity: 0; transform: scale(0.9); transition: opacity 0.7s cubic-bezier(0.22,1,0.36,1), transform 0.7s cubic-bezier(0.22,1,0.36,1); }
.scale-in.visible { opacity: 1; transform: scale(1); }
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }

/* Pulse animation for badge dot */
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.7; transform: scale(1.2); } }
.hero-badge-dot { animation: pulse 2s ease-in-out infinite; }

/* Floating animation for hero images */
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.float { animation: float 4s ease-in-out infinite; }

/* Count-up numbers */
@keyframes countUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* Stagger children animation */
.stagger-children > * { opacity: 0; transform: translateY(20px); transition: opacity 0.5s ease-out, transform 0.5s ease-out; }
.stagger-children.visible > *:nth-child(1) { transition-delay: 0.05s; }
.stagger-children.visible > *:nth-child(2) { transition-delay: 0.1s; }
.stagger-children.visible > *:nth-child(3) { transition-delay: 0.15s; }
.stagger-children.visible > *:nth-child(4) { transition-delay: 0.2s; }
.stagger-children.visible > *:nth-child(5) { transition-delay: 0.25s; }
.stagger-children.visible > *:nth-child(6) { transition-delay: 0.3s; }
.stagger-children.visible > * { opacity: 1; transform: translateY(0); }

/* ---- Loading ---- */
.skeleton { background: linear-gradient(90deg, #f3f4f6 25%, #e5e7eb 50%, #f3f4f6 75%); background-size: 200% 100%; animation: shimmer 1.5s infinite; border-radius: 0.5rem; }
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* ---- Lightbox ---- */
.lightbox {
    display: none; position: fixed; inset: 0; z-index: 9999;
    background: rgba(0,0,0,0.9); align-items: center; justify-content: center;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 90%; max-height: 85vh; border-radius: 0.5rem; }
.lightbox-close {
    position: absolute; top: 1.25rem; right: 1.25rem;
    background: rgba(255,255,255,0.2); color: #fff; border: none;
    width: 44px; height: 44px; border-radius: 50%; cursor: pointer;
    font-size: 1.25rem; display: flex; align-items: center; justify-content: center;
}

/* ---- Misc ---- */
.badge {
    display: inline-flex; align-items: center; gap: 0.3rem;
    padding: 0.2rem 0.625rem; border-radius: 2rem; font-size: 0.688rem; font-weight: 600;
}
.badge-primary { background: var(--primary-50); color: var(--primary-700); }
.badge-success { background: #ecfdf5; color: #065f46; }
.badge-warning { background: #fffbeb; color: #92400e; }

.divider { height: 1px; background: #e5e7eb; margin: 1.5rem 0; }

/* Star rating */
.stars { color: #f59e0b; letter-spacing: 2px; }

/* Page detail */
.detail-info { display: grid; grid-template-columns: 2fr 1fr; gap: 2.5rem; }
@media (max-width: 768px) { .detail-info { grid-template-columns: 1fr; } }
.detail-sidebar {
    background: #fff; border-radius: 1rem; border: 1px solid #e5e7eb; padding: 1.5rem;
    position: sticky; top: 100px; height: fit-content;
}
.detail-specs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.75rem; margin-bottom: 1.5rem; }
.detail-spec {
    text-align: center; padding: 0.875rem; background: #f8fffe; border-radius: 0.625rem;
    border: 1px solid #edfcfc;
}
.detail-spec .value { font-size: 1.1rem; font-weight: 700; color: var(--primary-600); }
.detail-spec .label { font-size: 0.688rem; color: #6b7280; margin-top: 0.2rem; }

/* Responsive inline heading */
.heading-responsive { font-size: clamp(1.35rem, 2.5vw, 1.75rem); font-weight: 800; margin-bottom: 0.875rem; color: #111827; }

/* Detail page top spacing */
.detail-page-top { padding-top: 5.5rem; }

/* Camping two-col inline layout */
.camping-two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: center; }

/* Camping page */
.camping-hero-img { border-radius: 1rem; overflow: hidden; max-height: 360px; }
.camping-hero-img img { width: 100%; height: 100%; object-fit: cover; }

/* Services grid (visual photo cards) */
.services-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem; }
.service-card {
    position: relative; border-radius: 1rem; overflow: hidden;
    background: #fff; border: 1px solid #e5e7eb; transition: all 0.3s;
}
.service-card:hover { box-shadow: 0 12px 32px rgba(0,0,0,0.1); transform: translateY(-4px); }
.service-card-visual {
    height: 140px; position: relative; overflow: hidden;
    display: flex; align-items: center; justify-content: center;
}
.service-card-visual img {
    width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s;
}
.service-card:hover .service-card-visual img { transform: scale(1.08); }
.service-card-visual .service-overlay {
    position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, rgba(0,0,0,0.5) 100%);
}
.service-card-visual .service-emoji {
    position: absolute; top: 0.75rem; right: 0.75rem; font-size: 1.75rem;
    background: rgba(255,255,255,0.9); width: 44px; height: 44px; border-radius: 0.75rem;
    display: flex; align-items: center; justify-content: center; backdrop-filter: blur(4px);
}
.service-card-body { padding: 1rem; }
.service-card-body h4 { font-size: 0.938rem; font-weight: 700; color: #111827; margin-bottom: 0.25rem; }
.service-card-body p { font-size: 0.75rem; color: #6b7280; line-height: 1.5; }

/* Services épurés (icônes sans photos) */
.services-clean { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1.25rem; }
.service-clean-card {
    background: #fff; border-radius: 1rem; padding: 1.75rem 1.5rem;
    border: 1px solid #e5e7eb; transition: box-shadow 0.3s ease, transform 0.3s ease;
    text-align: center;
}
.service-clean-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,0.08); transform: translateY(-3px); }
.service-clean-icon {
    display: block; font-size: 2.5rem; margin-bottom: 0.75rem; line-height: 1;
}
.service-clean-card h4 { font-size: 1rem; font-weight: 700; color: #111827; margin-bottom: 0.5rem; }
.service-clean-card p { font-size: 0.813rem; color: #6b7280; line-height: 1.6; margin: 0; }

@media (max-width: 768px) {
    .services-clean { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
    .service-clean-card { padding: 1.25rem 1rem; }
    .service-clean-icon { font-size: 2rem; }
    .service-clean-card h4 { font-size: 0.875rem; }
    .service-clean-card p { font-size: 0.75rem; }
}
@media (max-width: 480px) {
    .services-clean { grid-template-columns: 1fr 1fr; gap: 0.625rem; }
    .service-clean-card { padding: 1rem 0.75rem; }
}

/* Legacy amenity grid */
.amenity-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 0.875rem; }
.amenity {
    display: flex; align-items: center; gap: 0.625rem; padding: 0.875rem;
    background: #fff; border-radius: 0.625rem; border: 1px solid #e5e7eb;
}
.amenity-icon { width: 36px; height: 36px; border-radius: 0.5rem; background: var(--primary-50); color: var(--primary-600); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.amenity-text { font-size: 0.875rem; font-weight: 500; }

/* Map */
.map-container { border-radius: 1rem; overflow: hidden; height: 350px; background: #e5e7eb; }
.map-container iframe { width: 100%; height: 100%; border: 0; }

/* ---- Pass Pirate / Tarifs obligatoires ---- */
.pass-pirate-card {
    background: #fff; border-radius: 1.25rem; border: 1px solid #e5e7eb;
    overflow: hidden; box-shadow: 0 4px 16px rgba(0,0,0,0.04); max-width: 780px; margin: 0 auto;
}
.pass-pirate-header {
    background: var(--gradient-primary); padding: 1.5rem 2rem; color: #fff; text-align: center;
}
.pass-pirate-header h3 { font-size: 1.25rem; font-weight: 800; margin: 0; }
.pass-pirate-header p { font-size: 0.813rem; opacity: 0.9; margin-top: 0.25rem; }
.tarif-table { width: 100%; border-collapse: collapse; }
.tarif-table thead th {
    background: rgba(42,191,191,0.08); color: var(--primary-700); padding: 0.875rem 1.25rem;
    font-family: var(--font-heading); font-weight: 700; font-size: 0.813rem; text-align: left;
    text-transform: uppercase; letter-spacing: 0.03em;
}
.tarif-table tbody td {
    padding: 0.75rem 1.25rem; border-bottom: 1px solid #f3f4f6; font-size: 0.875rem; color: #374151;
}
.tarif-table tbody tr:last-child td { border-bottom: none; }
.tarif-table tbody tr:hover { background: #f8fffe; }
.tarif-price { font-weight: 700; color: var(--primary-600); font-size: 1rem; }
.tarif-free { font-weight: 600; color: #059669; }
.tarif-note { font-size: 0.75rem; color: #6b7280; margin-top: 0.875rem; line-height: 1.6; }
.pass-pirate-footer {
    padding: 1.25rem 2rem; background: #f8fffe; border-top: 1px solid #edfcfc;
}

/* ---- Legal pages ---- */
.legal-nav { display: flex; gap: 0.375rem; flex-wrap: wrap; margin-bottom: 2rem; padding-bottom: 1.25rem; border-bottom: 1px solid #e5e7eb; }
.legal-nav a {
    padding: 0.4rem 1rem; border-radius: 2rem; font-size: 0.813rem; font-weight: 500;
    color: #6b7280; border: 1px solid #e5e7eb; transition: all 0.2s;
}
.legal-nav a:hover { color: var(--primary-600); border-color: var(--primary-300); background: var(--primary-50); }
.legal-nav a.active { color: #fff; background: var(--gradient-primary); border-color: transparent; }
.legal-content { line-height: 1.8; color: #4b5563; }
.legal-content h2 { font-size: 1.35rem; font-weight: 700; margin: 2rem 0 0.875rem; color: #111827; }
.legal-content h3 { font-size: 1.05rem; font-weight: 600; margin: 1.25rem 0 0.625rem; color: #1f2937; }
.legal-content p { margin-bottom: 0.625rem; font-size: 0.875rem; }
.legal-content ul { margin-bottom: 0.875rem; padding-left: 1.25rem; }
.legal-content li { margin-bottom: 0.375rem; font-size: 0.875rem; }

/* ---- Navbar logo with real image ---- */
.navbar-logo img.navbar-logo-img { height: 70px; width: auto; border-radius: 0.5rem; }

/* ---- Photo showcase grid (home page) ---- */
.photo-showcase { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.5rem; border-radius: 1rem; overflow: hidden; }
.photo-showcase img { width: 100%; height: 170px; object-fit: cover; transition: transform 0.5s; cursor: pointer; }
.photo-showcase img:hover { transform: scale(1.05); }
@media (max-width: 1024px) { .photo-showcase { grid-template-columns: repeat(2, 1fr); } .photo-showcase img { height: 160px; } }
@media (max-width: 480px) { .photo-showcase { grid-template-columns: 1fr; } }

/* ---- Extra responsive fixes ---- */

/* Tablet landscape / small desktop */
@media (max-width: 1024px) {
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Tablet portrait */
@media (max-width: 768px) {
    html { font-size: 14.5px; }
    .hero { min-height: auto; padding: 5.5rem 0 2.5rem; }
    .hero-content { padding: 1.5rem 0; }
    .hero h1 { font-size: 2rem; }
    .hero-buttons { flex-direction: column; }
    .hero-buttons a { width: 100%; justify-content: center; text-align: center; }
    /* Hero inline grid responsive */
    .container[style*="grid-template-columns:1fr 1fr"] { grid-template-columns: 1fr !important; }
    .container[style*="grid-template-columns: 1fr 1fr"] { grid-template-columns: 1fr !important; }
    .section { padding: 2.5rem 0; }
    .cta-section { padding: 2.5rem 0; }
    .navbar { height: 80px; }
    .mobile-menu { top: 80px; }
    .navbar-logo img.navbar-logo-img { height: 50px; }
    .navbar-logo-name { font-size: 0.95rem; }
    .navbar-logo-sub { font-size: 0.55rem; max-width: 240px; }
    .hero-dark { padding: 6.5rem 0 2rem; }
    .hero-dark h1 { font-size: 1.35rem; }
    .grid-3 { grid-template-columns: 1fr; }
    .grid-2 { grid-template-columns: 1fr; }
    .detail-specs { grid-template-columns: repeat(2, 1fr); }
    .detail-info { gap: 1.5rem; }
    .tarif-table { font-size: 0.75rem; }
    .tarif-table thead th, .tarif-table tbody td { padding: 0.5rem 0.625rem; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
    .footer { padding: 2.5rem 0 1.25rem; }
    .section-header { margin-bottom: 2rem; }
    .section-header h2 { font-size: 1.5rem; }
    .camping-hero-img { max-height: 260px; }
    .map-container { height: 260px; }
    .feature-card { padding: 1.25rem; }
    .camping-two-col { grid-template-columns: 1fr !important; gap: 1.5rem !important; }
    .detail-page-top { padding-top: 4.5rem; }
    .gallery { max-height: 300px; }
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .pass-pirate-card { margin: 0 -0.5rem; }
    .pass-pirate-header { padding: 1.25rem 1rem; }
    .pass-pirate-footer { padding: 1rem; }
    /* Result cards responsive */
    .result-card { grid-template-columns: 1fr; }
    .result-card-img { height: 200px; min-height: unset; }
}

/* Small tablets / large phones */
@media (max-width: 640px) {
    .card-img { height: 170px; }
    .photo-showcase { grid-template-columns: repeat(2, 1fr); }
    .photo-showcase img { height: 140px; }
    .detail-specs { grid-template-columns: repeat(2, 1fr); }
    .camping-hero-img { max-height: 200px; }
    .map-container { height: 220px; }
    .tarif-table thead th, .tarif-table tbody td { padding: 0.4rem 0.5rem; font-size: 0.75rem; }
    .hero-badge { font-size: 0.75rem; padding: 0.4rem 0.875rem; margin-bottom: 1.25rem; }
    .hero-info { font-size: 0.813rem; padding: 0.625rem 0.875rem; }
    .amenity-grid { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
    .gallery { max-height: 240px; }
    .detail-sidebar { padding: 1.25rem; }
    .calendar-grid { font-size: 0.75rem; }
    .calendar-day { font-size: 0.688rem; }
    .calendar-day .prix { font-size: 0.5rem; }
    .services-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-brand { text-align: center; }
    .footer-brand .navbar-logo { justify-content: center; }
}

/* Smartphones */
@media (max-width: 480px) {
    .hero h1 { font-size: 1.6rem; }
    .hero-dark { padding: 5.5rem 0 1.5rem; }
    .hero-dark h1 { font-size: 1.25rem; }
    .container { padding: 0 0.875rem; }
    .section { padding: 2rem 0; }
    .cta-section { padding: 2rem 0; }
    .cta-section h2 { font-size: 1.25rem; }
    .footer-bottom { flex-direction: column; gap: 0.875rem; text-align: center; }
    .footer { padding: 2rem 0 1.25rem; }
    .footer-grid { gap: 1.25rem; }
    .legal-nav { justify-content: center; }
    .card-img { height: 160px; }
    .card-body { padding: 1rem; }
    .section-header { margin-bottom: 1.5rem; }
    .section-header h2 { font-size: 1.25rem; }
    .photo-showcase img { height: 120px; }
    .feature-card { padding: 1rem; }
    .feature-icon { width: 44px; height: 44px; margin-bottom: 0.875rem; }
    .feature-icon svg { width: 20px; height: 20px; }
    .btn-primary, .btn-outline, .btn-secondary, .btn-ghost-dark, .btn-white { padding: 0.75rem 1.5rem; font-size: 0.875rem; }
    .calendar-grid { gap: 2px; }
    .calendar-day { font-size: 0.625rem; }
    .detail-sidebar { padding: 1rem; }
    .testimonial { padding: 1.25rem; }
    .amenity { padding: 0.625rem; }
    .amenity-text { font-size: 0.813rem; }
    .navbar { height: 65px; }
    .mobile-menu { top: 65px; }
    .navbar-logo img.navbar-logo-img { height: 36px; }
    .navbar-logo-name { font-size: 0.85rem; }
    .navbar-logo-sub { font-size: 0.45rem; max-width: 200px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
    .navbar-logo { gap: 0.4rem; }
    .hero { padding-top: 5rem; }
    .hero-dark { padding: 5rem 0 1.25rem; }
    .search-bar { grid-template-columns: 1fr !important; }

    /* Footer logo responsive */
    .footer-brand .navbar-logo img,
    .footer-brand img { height: 80px !important; }

    /* Detail specs 2→1 col */
    .detail-specs { grid-template-columns: 1fr; }

    /* Pass Pirate table scroll */
    .pass-pirate-card { border-radius: 0.75rem; }
    .tarif-table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .tarif-table thead, .tarif-table tbody, .tarif-table tr, .tarif-table th, .tarif-table td { white-space: nowrap; }

    /* Feature cards */
    .feature-card h3 { font-size: 0.938rem; }
    .feature-card p { font-size: 0.813rem; }

    /* Hero buttons full-width */
    .hero-buttons a, .hero-buttons button { width: 100%; justify-content: center; text-align: center; }
}

/* ---- Responsive inline hero grids (index + parc-aquatique) ---- */
@media (max-width: 768px) {
    /* Force inline grid containers to stack */
    .container[style*="grid-template-columns:1fr 1fr"],
    .container[style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
        padding-top: 1.5rem !important;
        padding-bottom: 1rem !important;
    }

    /* Hero sections with inline padding-top */
    section[style*="padding-top:90px"],
    section[style*="padding-top: 90px"] {
        padding-top: 80px !important;
    }

    /* Parc-aquatique hero (padding:7rem 0 0) */
    section[style*="padding:7rem"],
    section[style*="padding: 7rem"] {
        padding: 5.5rem 0 0 !important;
    }

    /* Image containers in hero */
    .container[style*="grid-template-columns"] > div:last-child img {
        border-radius: 0.75rem;
    }
    .container[style*="grid-template-columns"] > div:last-child > div {
        box-shadow: 0 10px 30px rgba(0,0,0,0.2) !important;
    }

    /* Hero inline badge pills wrap nicely */
    div[style*="display:flex"][style*="flex-wrap:wrap"] span[style*="border-radius:2rem"] {
        font-size: 0.688rem !important;
    }
}

@media (max-width: 640px) {
    /* Footer logo */
    .footer-brand .navbar-logo img,
    .footer-brand img { height: 100px !important; }

    /* Hero section clamp */
    section[style*="padding-top:90px"],
    section[style*="padding-top: 90px"] {
        padding-top: 70px !important;
    }

    /* Service cards text */
    .service-card-body h4 { font-size: 0.875rem; }
    .service-card-body p { font-size: 0.688rem; }

    /* Tarif table compact */
    .tarif-table thead th, .tarif-table tbody td { padding: 0.375rem 0.5rem; font-size: 0.688rem; }
    .tarif-price { font-size: 0.875rem; }

    /* CTA buttons stack */
    .cta-section .hero-buttons { flex-direction: column; align-items: center; }
    .cta-section .hero-buttons a { width: 100%; max-width: 300px; justify-content: center; text-align: center; }
}

@media (max-width: 480px) {
    /* Further footer logo */
    .footer-brand .navbar-logo img,
    .footer-brand img { height: 80px !important; }

    /* Hero wave SVG shrink */
    section > svg[viewBox="0 0 1440 60"] { height: 30px; }
}
