/* Import des polices Google Fonts - avec variantes de poids */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500;600;700&family=Montserrat:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400;1,600&display=swap');

/* Variables et réinitialisation */
:root {
    /* Palette de couleurs principale */
    --primary-dark: #0a3d62;     /* Bleu très foncé */
    --primary: #1e5f8c;          /* Bleu principal */
    --primary-light: #3498db;    /* Bleu clair */
    --primary-pale: #e6f2fa;     /* Bleu très pâle */
    
    /* Palette secondaire */
    --secondary-dark: #1f6650;   /* Vert foncé */
    --secondary: #2E8B57;        /* Vert principal */
    --secondary-light: #4bc687;  /* Vert clair */
    --secondary-pale: #e7f8ef;   /* Vert très pâle */
    
    /* Palette accentuation */
    --gold: #d4a017;             /* Or */
    --gold-light: #f0c75e;       /* Or clair */
    --gold-pale: #fcf3de;        /* Beige doré */
    --accent: #e74c3c;           /* Rouge accent */
    --accent-light: #f7aca6;     /* Rouge clair */
    
    /* Palette neutre */
    --dark: #1a2a36;             /* Presque noir */
    --gray-dark: #4a5f70;        /* Gris foncé */
    --gray: #7f8c8d;             /* Gris moyen */
    --gray-light: #bdc3c7;       /* Gris clair */
    --light: #ecf0f1;            /* Blanc cassé */
    --white: #ffffff;            /* Blanc pur */
    
    /* Typographie */
    --font-heading: 'Playfair Display', serif;
    --font-subheading: 'Cormorant Garamond', serif;
    --font-body: 'Montserrat', sans-serif;
    
    /* Tailles de police */
    --fs-xxl: 3.2rem;    /* Très grand titre */
    --fs-xl: 2.5rem;     /* Grand titre */
    --fs-lg: 2rem;       /* Titre moyen */
    --fs-md: 1.5rem;     /* Sous-titre */
    --fs-normal: 1rem;   /* Texte normal */
    --fs-sm: 0.9rem;     /* Petit texte */
    --fs-xs: 0.8rem;     /* Très petit texte */
    
    /* Espacements */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 3rem;
    --space-xl: 5rem;
    --space-xxl: 8rem;
    
    /* Éléments d'interface */
    --radius-sm: 5px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-pill: 50px;
    --radius-circle: 50%;
    
    /* Ombres */
    --shadow-sm: 0 2px 5px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 15px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 20px 50px rgba(0, 0, 0, 0.15);
    --shadow-inner: inset 0 2px 5px rgba(0, 0, 0, 0.05);
    
    /* Transitions */
    --transition-fast: all 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --transition-medium: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --transition-slow: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --transition-bounce: all 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    
    /* Bordures */
    --border-thin: 1px solid rgba(0, 0, 0, 0.1);
    --border-medium: 2px solid rgba(0, 0, 0, 0.1);
    --border-thick: 3px solid rgba(0, 0, 0, 0.1);
    
    /* Dimensions maximales */
    --max-width: 1300px;
    --content-width: 1200px;
    
    /* Couleurs thématiques pour parc-sources */
    --parc-color: var(--secondary);
    --sources-color: var(--primary-light);
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    text-decoration: none;
    color: var(--primary);
    transition: var(--transition-medium);
    position: relative;
}

a:hover {
    color: var(--secondary);
}

img, video, svg {
    max-width: 100%;
    height: auto;
    display: block;
}

main {
    width: 100%;
    max-width: var(--content-width);
    margin: 0 auto;
    padding: 0 var(--space-sm);
}

/* Animations principales */
@keyframes fadeIn {
    from { 
        opacity: 0; 
        transform: translateY(30px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

@keyframes slideIn {
    from { 
        opacity: 0; 
        transform: translateX(-30px); 
    }
    to { 
        opacity: 1; 
        transform: translateX(0); 
    }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@keyframes heroFadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== CONTENU SPÉCIFIQUE PARC-SOURCES ===== */

/* Titre de la page */
.page-title {
    color: var(--primary-dark);
    text-align: center;
    font-size: var(--fs-xl);
    margin-bottom: var(--space-lg);
    padding-bottom: 15px;
    border-bottom: 4px solid var(--secondary);
    font-family: var(--font-heading);
    position: relative;
    margin-top: 100px;
    display: inline-block;
    width: 100%;
}

.page-title::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(to right, var(--gold), var(--gold-light), var(--gold));
}

/* Introduction */
.intro-section {
    background: linear-gradient(135deg, var(--primary-pale), var(--secondary-pale));
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    box-shadow: var(--shadow-md);
    margin-bottom: var(--space-xl);
    text-align: center;
    position: relative;
    border-left: 5px solid var(--secondary);
}

.intro-text {
    font-size: var(--fs-md);
    line-height: 1.8;
    max-width: 900px;
    margin: 0 auto;
    color: var(--dark);
    font-family: var(--font-subheading);
}

/* Container principal */
.container {
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
}

/* Sections principales */
.parc-thermal, .sources {
    background-color: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    animation: fadeIn 0.6s ease-out forwards;
    position: relative;
}

.parc-thermal {
    animation-delay: 0.1s;
}

.sources {
    animation-delay: 0.3s;
}

/* En-têtes de section */
.section-header {
    padding: var(--space-lg);
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    position: relative;
}

.parc-thermal .section-header {
    background: linear-gradient(135deg, var(--secondary), var(--secondary-dark));
}

.sources .section-header {
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
}

.section-header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(to right, var(--gold), var(--gold-light));
}

.section-header h2 {
    font-size: var(--fs-lg);
    margin: 0;
    display: flex;
    align-items: center;
    font-family: var(--font-heading);
}

.section-header h2 i {
    margin-right: 15px;
    font-size: 1.8rem;
}

/* Contenu des sections */
.section-content {
    padding: var(--space-lg);
    display: grid;
    gap: var(--space-lg);
}

/* Carte d'information */
.info-card {
    background: linear-gradient(135deg, var(--primary-pale), var(--secondary-pale));
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    border-left: 5px solid var(--secondary);
    position: relative;
}

.card-content {
    font-size: var(--fs-normal);
}

.card-content p {
    margin-bottom: var(--space-sm);
    line-height: 1.8;
}

.card-content h3 {
    color: var(--primary-dark);
    margin-bottom: var(--space-sm);
    font-size: var(--fs-md);
    border-bottom: 2px solid var(--gold);
    display: inline-block;
    padding-bottom: 5px;
    font-family: var(--font-heading);
}

/* Liste des caractéristiques */
.features-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: var(--space-sm);
    margin: var(--space-sm) 0;
}

.features-list li {
    display: flex;
    align-items: center;
    background-color: var(--white);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-pill);
    font-weight: 500;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-medium);
}

.features-list li:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.features-list li i {
    margin-right: var(--space-sm);
    color: var(--secondary);
    font-size: 1.1rem;
}

/* Note */
.note {
    background-color: var(--white);
    padding: var(--space-md);
    border-radius: var(--radius-md);
    border-left: 4px solid var(--gold);
    margin-top: var(--space-md);
    box-shadow: var(--shadow-sm);
}

.note p {
    margin-bottom: var(--space-xs);
    display: flex;
    align-items: center;
}

.note p:last-child {
    margin-bottom: 0;
}

.note i {
    color: var(--gold);
    margin-right: var(--space-xs);
    width: 18px;
}

/* Histoire */
.history {
    margin: var(--space-md) 0;
}

.history h3 {
    color: var(--primary-dark);
    margin-bottom: var(--space-sm);
    font-size: var(--fs-md);
    font-family: var(--font-heading);
    border-bottom: 2px solid var(--gold);
    display: inline-block;
    padding-bottom: 5px;
}

/* Visites */
.visits {
    background-color: var(--white);
    padding: var(--space-md);
    border-radius: var(--radius-md);
    margin-top: var(--space-md);
    border-left: 4px solid var(--primary-light);
    box-shadow: var(--shadow-sm);
}

.visits h3 {
    color: var(--primary-dark);
    margin-bottom: var(--space-sm);
    font-size: var(--fs-md);
    font-family: var(--font-heading);
}

.visits p {
    margin-bottom: var(--space-xs);
    display: flex;
    align-items: flex-start;
}

.visits p i {
    margin-right: var(--space-sm);
    color: var(--primary-light);
    width: 18px;
    margin-top: 3px;
}

/* Image principale */
.hero-image {
    overflow: hidden;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    max-height: 400px;
    position: relative;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-md);
    transition: var(--transition-slow);
}

.hero-image:hover img {
    transform: scale(1.05);
}

/* Galerie */
.gallery {
    margin-top: var(--space-md);
}

.gallery h3 {
    color: var(--primary-dark);
    margin-bottom: var(--space-md);
    font-size: var(--fs-md);
    text-align: center;
    font-family: var(--font-heading);
    position: relative;
    padding-bottom: 10px;
}

.gallery h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background-color: var(--secondary);
}

.gallery-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: var(--space-md);
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    cursor: pointer;
    transition: var(--transition-bounce);
    aspect-ratio: 4/3;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item .overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: white;
    padding: var(--space-md);
    transform: translateY(100%);
    transition: var(--transition-medium);
    font-weight: 600;
}

.gallery-item:hover .overlay {
    transform: translateY(0);
}

.gallery-item.fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    background-color: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 0;
}

.gallery-item.fullscreen img {
    max-width: 90%;
    max-height: 90%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.gallery-item.fullscreen .overlay {
    transform: translateY(0);
    text-align: center;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.5), transparent);
}

/* Sources gallery */
.sources-gallery {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

/* Section de visite */
.visit-info {
    animation: fadeIn 0.6s ease-out forwards;
    animation-delay: 0.5s;
    margin-bottom: 50px;
}

.visit-card {
    background: linear-gradient(135deg, var(--secondary), var(--primary-light));
    border-radius: var(--radius-lg);
    color: white;
    padding: var(--space-xl);
    display: flex;
    align-items: center;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.visit-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(to right, var(--gold), var(--gold-light));
}

.visit-icon {
    font-size: 3rem;
    margin-right: var(--space-lg);
    opacity: 0.9;
}

.visit-content h3 {
    margin-bottom: var(--space-sm);
    font-size: var(--fs-lg);
    font-family: var(--font-heading);
}

.visit-content p {
    line-height: 1.8;
    margin-bottom: var(--space-md);
}

.btn-visit {
    display: inline-block;
    background-color: var(--white);
    color: var(--primary);
    padding: 12px 24px;
    border-radius: var(--radius-pill);
    font-weight: 700;
    transition: var(--transition-bounce);
    box-shadow: var(--shadow-sm);
}

.btn-visit:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    color: var(--secondary);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .nav-toggle {
        display: flex;
        flex-direction: column;
        justify-content: space-around;
        top: -180px;
        right: -330px;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 85%;
        max-width: 320px;
        height: 100vh;
        background: linear-gradient(to bottom, var(--primary-dark), var(--primary));
        flex-direction: column;
        padding: 100px 0 30px;
        box-shadow: -5px 0 25px rgba(0, 0, 0, 0.15);
        transition: right var(--transition-medium);
        z-index: 100;
        overflow-y: auto;
    }

    .nav-menu.show {
        right: 0;
    }

    .nav-menu li {
        width: 100%;
        margin: 0;
    }

    .nav-menu a {
        width: 100%;
        padding: 15px 25px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-menu a::before {
        display: none;
    }

    .submenu {
        position: static;
        width: 100%;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
        padding: 0;
        background-color: rgba(0, 0, 0, 0.1);
        border-top: none;
    }

    .dropdown:hover .submenu {
        display: none;
    }

    .dropdown.active .submenu {
        display: block;
    }

    .submenu a {
        padding-left: 40px;
        color: rgba(255, 255, 255, 0.9);
        font-size: 0.9rem;
    }

    main {
        width: 95%;
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
        flex-direction: column;
        justify-content: space-around;
        top: -160px;
        right: -280px;
    }

    .logo-container {
        flex-direction: column;
        padding: var(--space-sm);
        text-align: center;
    }

    .logo {
        margin-right: 0;
        margin-bottom: var(--space-sm);
        width: 70px;
    }

    .page-title {
        font-size: var(--fs-lg);
    }

    .section-content {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }

    .visit-card {
        flex-direction: column;
        text-align: center;
        padding: var(--space-lg);
    }

    .visit-icon {
        margin-right: 0;
        margin-bottom: var(--space-md);
    }

    .features-list {
        grid-template-columns: 1fr;
    }

    .gallery-container {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }

    .footer-columns {
        flex-direction: column;
        text-align: center;
        gap: var(--space-lg);
    }

    .footer-column {
        flex: none;
    }

    .social-icons {
        justify-content: center;
    }
}

@media (max-width: 576px) {
    :root {
        --space-sm: 0.8rem;
        --space-md: 1.2rem;
        --space-lg: 1.8rem;
        --space-xl: 2.5rem;
        --fs-xl: 1.6rem;
        --fs-lg: 1.4rem;
        --fs-md: 1.2rem;
    }

    .nav-toggle {
        top: -200px;
        right: -150px;
    }

    .logo-container h1 {
        font-size: 1.8rem;
    }

    .slogan {
        font-size: 0.9rem;
    }

    main {
        padding: 0 var(--space-xs);
    }

    .intro-section,
    .parc-thermal,
    .sources {
        margin-bottom: var(--space-lg);
    }

    .section-content {
        padding: var(--space-md);
    }

    .info-card {
        padding: var(--space-md);
    }

    .visit-card {
        padding: var(--space-md);
    }
    
    .visit-info{
        margin-bottom: 100px;
    }

    .gallery-container {
        grid-template-columns: 1fr;
        gap: var(--space-sm);
    }

    .footer-links {
        flex-direction: column;
        gap: 8px;
    }

    .footer-links a {
        display: block;
        padding: 5px 0;
    }

    .separator {
        display: none;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .newsletter-form input {
        border-radius: 4px;
        margin-bottom: 10px;
    }

    .newsletter-form button {
        border-radius: 4px;
        width: 100%;
    }
}

@media (max-width: 400px) {
    :root {
        --space-xs: 0.4rem;
        --space-sm: 0.6rem;
        --space-md: 1rem;
        --space-lg: 1.5rem;
        --fs-xl: 1.4rem;
        --fs-lg: 1.2rem;
        --fs-md: 1.1rem;
    }

    .logo-container h1 {
        font-size: 1.5rem;
    }

    .page-title {
        font-size: 1.3rem;
    }

    .section-header h2 {
        font-size: 1.2rem;
    }

    .visit-icon {
        font-size: 2rem;
    }
    
    .nav-toggle {
        display: flex;
        flex-direction: column;
        justify-content: space-around;
        top: -250px;
        right: -150px;
    }

}

/* Submenu mobile toggle */
.submenu-toggle {
    display: inline-block;
    position: absolute;
    right: 15px;
    top: 15px;
    background: transparent;
    border: none;
    color: var(--white);
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 2;
}

.submenu-active {
    display: block !important;
}