/* 
 * Theme La Brigantine - Premium Edition
 */

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

:root {
    --color-primary: #0369a1;      /* Bleu Méditerranéen élégant */
    --color-primary-light: #0ea5e9;
    --color-secondary: #e06b53;    /* Terre cuite / Corail Provençal (Chaleureux) */
    --color-terracotta: #c2523d;    /* Terre cuite durable pour lisibilité et contrastes */
    --color-accent: #fcfaf8;       /* Sable très lumineux */
    --color-dark: #1e293b;         /* Ardoise foncée */
    --text-main: #334155;
    --text-light: #64748b;
    --bg-main: #ffffff;
    --bg-alt: #f8fafc;             /* Gris-bleu extrêmement clair */
    --transition: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --radius-lg: 24px;
    --radius-md: 16px;
    --shadow-soft: 0 10px 40px -10px rgba(3,105,161,0.08);
    --shadow-hover: 0 20px 40px -10px rgba(3,105,161,0.15);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: var(--text-main);
    background-color: var(--bg-main);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    color: var(--color-primary);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: all var(--transition);
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

.text-center { text-align: center; }

/* Typography & Content Formatting */
p {
    margin-bottom: 1.5rem;
}

ul, ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

li {
    margin-bottom: 0.5rem;
}

.contact-list {
    list-style: none;
    padding-left: 0;
}

/* Sections */
.section { padding: 8rem 0; position: relative; }
.section-alt { background-color: var(--color-accent); }

.section-title {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto 4rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1.2rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-family: 'Outfit', sans-serif;
    font-size: 1.05rem;
    letter-spacing: 0.5px;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    text-transform: uppercase;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-terracotta), #c2523d);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(194,82,61,0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(194,82,61,0.4);
    color: #ffffff;
}

.btn-outline {
    background: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
}

.btn-outline:hover {
    background: var(--color-primary);
    color: #ffffff;
    border-color: var(--color-primary);
}

/* Header (Glassmorphism) */
.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.0);
    transition: var(--transition);
    padding: 20px 0;
}

.site-header.scrolled {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 15px 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
}

body:not(.header-transparent) .site-header {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
    padding: 15px 0;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-text {
    font-family: 'Outfit', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: #ffffff; /* White by default on hero */
    transition: var(--transition);
}

.site-header.scrolled .logo-text,
body:not(.header-transparent) .logo-text {
    color: var(--color-primary);
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    margin: 0;
    padding: 0;
    align-items: center;
}

.nav-item {
    margin: 0;
    padding: 0;
}

.nav-item a {
    font-weight: 500;
    font-size: 0.95rem;
    color: rgba(255,255,255,0.9);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.site-header.scrolled .nav-item a,
body:not(.header-transparent) .nav-item a {
    color: var(--color-primary);
}

.nav-item a:hover {
    color: var(--color-terracotta);
}

.site-header.scrolled .nav-item a:hover {
    color: var(--color-terracotta);
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 1;
    animation: zoomOut 20s ease-out forwards; /* subtle movement */
}

@keyframes zoomOut {
    from { transform: scale(1.1); }
    to { transform: scale(1); }
}

.hero::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.5) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    color: #ffffff;
    max-width: 900px;
    text-align: center;
}

.hero-title {
    font-size: 5rem;
    color: #ffffff;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: 1.4rem;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 300;
    margin-bottom: 3rem;
    opacity: 0.9;
}

/* Presentation Grid & Layout */
#presentation {
    margin-top: -120px;
    position: relative;
    z-index: 10;
    padding-top: 0;
}

#presentation .container {
    background: var(--bg-main);
    padding: 6rem;
    border-radius: var(--radius-lg);
    box-shadow: 0 30px 60px -15px rgba(3,105,161,0.08);
}

.presentation-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: flex-start;
}

.presentation-text {
    position: relative;
}

.presentation-text p {
    font-size: 1.15rem;
    color: var(--text-light);
    margin-bottom: 1.8rem;
}

.presentation-text h3 {
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-terracotta);
}

.presentation-text ul {
    list-style: none;
    padding-left: 0;
}

.presentation-text li {
    margin-bottom: 1rem;
    color: var(--text-main);
    position: relative;
    padding-left: 1.5rem;
}

.presentation-text li::before {
    content: '—';
    position: absolute;
    left: 0;
    color: var(--color-terracotta);
    font-weight: bold;
}

/* Features - Minimalist Editorial */
.features-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.feature-item {
    background: transparent;
    padding: 2rem 0;
    border-radius: 0;
    box-shadow: none;
    border: none;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    transition: transform var(--transition), border-color var(--transition);
}

.feature-item:last-child {
    border-bottom: none;
}

.feature-item:hover {
    transform: translateX(10px);
    box-shadow: none;
    border-color: var(--color-secondary);
}

.feature-icon {
    font-size: 1.8rem;
    margin-bottom: 0.8rem;
    display: inline-block;
    color: var(--color-primary);
}

.feature-title {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.feature-desc {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* Gallery - Swiper Thumbs Layout */
.gallery-single {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
}

.gallery-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1.5rem;
    height: 500px;
}

.main-swiper {
    width: 100%;
    height: 100%;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
}

.main-swiper .swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-swiper .swiper-button-next,
.main-swiper .swiper-button-prev {
    color: #ffffff;
    background: rgba(0, 0, 0, 0.4);
    width: 45px;
    height: 45px;
    border-radius: 50%;
}

.main-swiper .swiper-button-next::after,
.main-swiper .swiper-button-prev::after {
    font-size: 1.2rem;
    font-weight: bold;
}

.thumbs-swiper {
    width: 100%;
    height: 100%;
    border-radius: var(--radius-md);
}

.thumbs-swiper .swiper-slide {
    opacity: 0.5;
    transition: opacity 0.3s;
    cursor: pointer;
    border-radius: var(--radius-md);
    overflow: hidden;
}

.thumbs-swiper .swiper-slide-thumb-active {
    opacity: 1;
    border: 2px solid var(--color-primary);
}
.gallery-item {
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
    cursor: pointer;
    box-shadow: var(--shadow-soft);
    width: 100%;
    height: 100%;
}

.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-item:hover .gallery-img {
    transform: scale(1.08);
}

.gallery-item::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to top, rgba(30,58,95,0.4), transparent);
    opacity: 0;
    transition: var(--transition);
}

.gallery-item:hover::after {
    opacity: 1;
}

/* Contact Section */
.contact-actions {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 3rem;
}

/* Footer */
.site-footer {
    background-color: var(--color-dark);
    color: #ffffff;
    padding: 6rem 0 2rem;
}

.footer-title {
    color: #ffffff;
    font-size: 2rem;
    margin-bottom: 1rem;
}

.footer-subtitle {
    color: var(--color-secondary);
    text-transform: uppercase;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.9rem;
    letter-spacing: 2px;
}

.contact-list li { margin-bottom: 1rem; }
.contact-list a { color: rgba(255,255,255,0.7); }
.contact-list a:hover { color: var(--color-secondary); }

.footer-bottom {
    text-align: center;
    padding-top: 3rem;
    margin-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
}

/* Floating Contact Button */
.fab-contact {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background-color: var(--color-primary);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    z-index: 1000;
    text-decoration: none;
    transition: transform 0.3s, box-shadow 0.3s, background-color 0.3s;
}

.fab-contact:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.3);
    background-color: var(--color-dark);
    color: white;
}

.fab-contact svg {
    flex-shrink: 0;
}

.fab-text {
    font-family: var(--font-main);
}

/* Scroll Animations */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Mobile Menu Toggle Base */
.mobile-menu-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    margin-bottom: 5px;
    background-color: #ffffff;
    transition: var(--transition);
}

.site-header.scrolled .mobile-menu-toggle span,
body:not(.header-transparent) .mobile-menu-toggle span {
    background-color: var(--color-primary);
}

/* Local Guide */
.guide-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.guide-card {
    background: var(--bg-main);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.03);
    position: relative;
    overflow: hidden;
}

.card-image {
    width: 100%;
    height: 200px;
    background-size: cover;
    background-position: center;
}

.event-image {
    width: 250px;
    height: auto;
}

.card-content {
    padding: 2.5rem;
}

.guide-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 4px; height: 100%;
    background: var(--color-secondary);
    opacity: 0;
    transition: var(--transition);
}

.guide-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.guide-card:hover::before {
    opacity: 1;
}

.guide-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    font-weight: 600;
}

.guide-category {
    color: var(--color-terracotta);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.guide-distance {
    color: var(--text-light);
    font-weight: 400;
}

.guide-title {
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.guide-desc {
    color: var(--text-light);
    margin-bottom: 0;
    font-size: 1rem;
}

/* Events Calendar */
.events-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 3rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.event-card {
    display: flex;
    background: var(--bg-main);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.03);
}

.event-card:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow-hover);
    border-color: var(--color-secondary);
}

.event-date {
    background: var(--color-primary);
    color: #ffffff;
    padding: 2rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-width: 140px;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1.2rem;
    line-height: 1.2;
}

.event-content {
    padding: 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.event-title {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

.event-desc {
    color: var(--text-light);
    margin-bottom: 0;
    font-size: 1rem;
}

/* Mobile Responsive */
@media (max-width: 1024px) {
    .presentation-grid { grid-template-columns: 1fr; gap: 4rem; }
    .hero-title { font-size: 4rem; }
    #presentation .container { padding: 4rem 2rem; }
}

@media (max-width: 768px) {
    .section { padding: 4rem 0; }
    #presentation { margin-top: -60px; }
    #presentation .container { padding: 2rem 1.5rem; }
    
    .hero-title { font-size: 3rem; }
    .features-list { grid-template-columns: 1fr; }
    
    .gallery-layout {
        grid-template-columns: 1fr;
        height: auto;
    }
    .main-swiper {
        height: 350px;
    }
    .thumbs-swiper {
        height: 100px;
    }

    .guide-grid { grid-template-columns: 1fr; }
    .event-card { flex-direction: column; }
    .event-image { width: 100%; height: 200px; }
    .event-date { padding: 1rem; min-width: auto; }
    .contact-actions { flex-direction: column; }
    
    .nav-list {
        display: flex;
        position: absolute;
        top: 100%;
        left: 0; width: 100%;
        background: rgba(255, 255, 255, 0.98);
        flex-direction: column;
        padding: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease-out;
    }
    .nav-list.is-open {
        max-height: 400px;
        padding: 2rem;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    }
    .nav-item a { color: var(--color-primary) !important; }
    .mobile-menu-toggle { display: block; }
    .mobile-menu-toggle span { background-color: var(--color-primary); }
    .site-header { background: rgba(255, 255, 255, 0.95); }
    .logo-text { color: var(--color-primary); }

    .fab-contact {
        bottom: 1.5rem;
        right: 1.5rem;
        padding: 0.75rem 1.25rem;
    }
    .fab-contact svg {
        width: 20px;
        height: 20px;
    }
    .fab-text {
        font-size: 0.95rem;
    }
}

/* Webcams */
.webcams-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.webcam-container {
    position: relative;
    padding-bottom: 78%; /* Approximately 640x500 aspect ratio */
    height: 0;
    overflow: hidden;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
    background-color: var(--bg-alt);
    border: 4px solid white;
}

.webcam-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

