/* Reset CSS */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Variables */
:root {
    --gold: #d4a76a;
    --dark: #111;
    --light: #f5f5f5;
    --snow-white: #ffffff;
    --aboutme-p: #807d7a;
    --aboutme-h1: #807d7a;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: #000000;
    color: var(--light);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Header et navigation */
header {
    position: fixed;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: background-color 0.3s ease;
}

header.scrolled {
    background-color: rgba(0, 0, 0, 0.253);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo img {
    height: 100px;
    width: auto;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    color: var(--light);
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--gold);
}

/* Hero Section avec Parallaxe */
.hero-section {
    position: relative;
    height: 100vh;
    overflow: hidden;
    background-color: #000;
}

.parallax-bg-back,
.parallax-bg-front {
    position: absolute;
    top: -5%;
    left: -5%;
    width: 110%; 
    height: 110%;
    background-size: cover;
    background-position: center;
    will-change: transform;
}

.parallax-bg-back {
    background-image: url('./img/background/header1-arriere.png');
    z-index: 1;
}

.parallax-bg-front {
    background-image: url('./img/background/header1-avant.png');
    z-index: 3;
    background-repeat: no-repeat;
}

.parallax-bg-front::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 150px; /* Hauteur du gradient */
    background: linear-gradient(to bottom, rgba(255,255,255,0) 0%, #f6f6f7 60%);
    /* Utilisez la même couleur que votre fond de page au lieu de blanc */
    pointer-events: none;
}

.parallax-title {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    text-align: center;
    width: 100%;
    will-change: transform, opacity;
}

.parallax-title h1 {
    font-size: 5rem;
    font-weight: 300;
    color: var(--gold);
    line-height: 1.2;
    letter-spacing: 2px;
}

.parallax-title span {
    font-size: 3rem;
}

/* Effet blanc progressif au bas de la section hero */
.white-gradient-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 25%; /* Dernier quart de l'écran */
    background: linear-gradient(to top, 
                rgba(255, 255, 255, 1) 0%, 
                rgba(255, 255, 255, 0.95) 30%,
                rgba(255, 255, 255, 0.8) 50%,
                rgba(255, 255, 255, 0.4) 70%,
                rgba(255, 255, 255, 0) 100%);
    z-index: 4;
    pointer-events: none;
}

/* About Section avec arrière-plan neige visible */
.about-section {
    position: relative;
    width: 100%;
    color: var(--light);
    padding: 80px 0; /* Espace vertical pour le contenu */
    margin: 0;
    background-image: url('./img/background/sec2.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 100vh; /* Hauteur minimale pour assurer la visibilité */
}

/* Overlay semi-transparent pour améliorer la lisibilité du texte */
.about-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0); /* Fond noir semi-transparent */
    z-index: 1;
}

.about-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 200px; /* Hauteur du gradient */
    background: linear-gradient(to top, rgba(255,255,255,0) 0%, #f6f6f7 50%);
    /* Utilisez la même couleur que votre fond de page au lieu de blanc */
    pointer-events: none;
}
.about-section .snowbottom{
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 200px; /* Hauteur du gradient */
    background: linear-gradient(to bottom, rgba(255,255,255,0) 0%, #f2f2f1 50%);
    /* Utilisez la même couleur que votre fond de page au lieu de blanc */
    pointer-events: none;
}

.about-section .content-wrapper {
    display: flex;
    justify-content: flex-start; /* Aligne le contenu à gauche */
    align-items: center;
    width: 100%;
    padding: 2rem 0;
}
.about-section .text-content {
    opacity: 0;
    transform: translateX(-100px);
    transition: opacity 1s ease-out, transform 1s ease-out;

        /* Effet glass */
    background: rgba(255, 255, 255, 0.644);
    backdrop-filter: blur(20px);
    border-radius: 15px;
 
    /* Dimensions et padding */
    width: 60%;
    max-width: 700px;
    padding: 2.5rem;
    margin-left: 5%; /* Espace depuis la gauche */
    
    /* Texte */
    color: var(--aboutme-p);
    font-size: 15px;
    line-height: 1.7;
}

.about-section .text-content.visible {
    opacity: 1;
    transform: translateX(0);
}


/* Pour une meilleure lisibilité */
.about-section .text-content p {
    margin: 0;
}


.about-section .container {
    max-width: 800px;
    margin: 0 auto;
    padding: 80px;
    position: relative;
    z-index: 2; /* Au-dessus de l'overlay */
}

.about-section h2 {
    color: #6f6f6f;
    font-size: 36px;
    margin-bottom: 5px;
    font-weight: 600;
    text-transform: none;
    letter-spacing: 2px;
    position: relative;
    text-align: center;
}
.about-section h2::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.3);
}

.content-wrapper {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.text-content {
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
    text-align: left;
    color: #e0e0e0;
    font-size: 16px;
}

/* Section Vidéo avec cadre SVG */
.video-section {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    background-color: #f2f2f1;
}

.video-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.video-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

/* Cadre SVG supérieur style papier déchiré */
.svg-frame-top {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 180px; /* Hauteur ajustée pour l'effet déchiré */
    z-index: 3;
    pointer-events: none;
    overflow: hidden; /* Contient les détails déchirés */
}

.svg-frame-top svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 5px 15px rgba(0,0,0,0.2));
}

/* Détails pour renforcer l'effet papier déchiré */
.torn-details {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 20px;
    opacity: 0.7;
    transform: translateY(-1px); /* Superpose légèrement pour éviter les espaces */
}

/* Animation légère sur les détails déchirés */
.torn-details svg {
    animation: slight-move 10s ease-in-out infinite;
}

@keyframes slight-move {
    0%, 100% { transform: translateY(0) scaleY(1); }
    50% { transform: translateY(1px) scaleY(1.02); }
}

/* Cadre SVG inférieur (gardé comme avant) */
.svg-frame-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 200px;
    z-index: 3;
    pointer-events: none;
}

.svg-frame-bottom svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 -5px 15px rgba(0,0,0,0.2));
}

/* Overlay pour le texte */
.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.2);
    z-index: 2;
}

.video-overlay h2 {
    color: #fff;
    font-size: 3.5rem;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 3px;
}

/* Version mobile */
@media (max-width: 768px) {
    .video-section {
        height: 60vh;
    }
    
    .svg-frame-top {
        height: 100px;
    }
    
    .svg-frame-bottom {
        height: 100px;
    }
    
    .video-overlay h2 {
        font-size: 2rem;
    }
}

/* Section Démarche avec image de fond de forêt sombre */
/* Section Démarche avec image de fond et intégration visuelle améliorée */
.demarche-section {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    overflow: hidden;
}

.demarche-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('./img/background/sec3.png');
    background-size: cover;
    background-position: center;
    z-index: -2;
}
.demarche-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100px; /* Hauteur du gradient */
    background: linear-gradient(to top, rgba(255,255,255,0) 0%, #17191d 80%);
    /* Utilisez la même couleur que votre fond de page au lieu de blanc */
    pointer-events: none;
}
/* Overlay subtil pour améliorer la lisibilité */
.demarche-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.7) 50%, rgba(0,0,0,0.85) 100%);
    z-index: -1;
}

.demarche-container {
    width: 100%;
    max-width: 800px;
    padding: 0 50px;
    margin: 0 auto;
    display: flex;
    justify-content: flex-end;
}

.demarche-content {
    opacity: 0;
    transform: translateX(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    /* Le reste de vos styles reste inchangé */
    width: 60%;
    max-width: 700px;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    padding: 40px;
    border-radius: 15px;
}

.demarche-content h2 {
    font-size: 48px;
    margin-bottom: 30px;
    font-weight: 400;
    color: #f2f2f1;
    text-transform: none;
    letter-spacing: 2px;
    position: relative;
}

.demarche-content.visible {
    opacity: 1;
    transform: translateX(0);
}

.demarche-content h2::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.3);
}

.demarche-text {
    font-size: 15px;
    line-height: 1.9;
    color: rgba(255, 255, 255, 0.9);
}

.demarche-text p {
    margin-bottom: 20px;
    text-shadow: 0px 1px 3px rgba(0, 0, 0, 0.3);
}

/* Effet spécial sur certains mots clés */
.demarche-text strong {
    color: #f2f2f1;
    font-weight: 600;
}

/* Animation subtile d'entrée au scroll */
.demarche-content {
    opacity: 0;
    transform: translateX(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.demarche-content.visible {
    opacity: 1;
    transform: translateX(0);
}

.demarche-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 200px; /* Hauteur du gradient */
    background: linear-gradient(to bottom, rgba(255,255,255,0) 0%, #17191d 80%);
    /* Utilisez la même couleur que votre fond de page au lieu de blanc */
    pointer-events: none;
}

/* Responsive Design */
@media (max-width: 1100px) {
    .demarche-overlay {
        background: linear-gradient(90deg, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.7) 70%);
    }
    
    .demarche-container {
        justify-content: center;
    }
    
    .demarche-content {
        width: 70%;
        max-width: 700px;
    }
}

@media (max-width: 768px) {
    .demarche-overlay {
        background: rgba(0,0,0,0.6);
    }
    
    .demarche-content {
        width: 100%;
        padding: 30px;
        border-left: none;
        box-shadow: none;
    }
    
    .demarche-content h2 {
        font-size: 36px;
        margin-bottom: 25px;
    }
}

/* Instagram Section */
.instagram-section {
    padding: 100px 0;
    background-color: #17191d;
}

.instagram-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

.instagram-section h2 {
    color: var(--gold);
    font-size: 36px;
    margin-bottom: 40px;
    font-weight: 300;
}

.instagram-feed {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.insta-item {
    position: relative;
    height: 300px;
    background-color: #222;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.insta-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.insta-item:hover {
    transform: scale(1.02);
}

.insta-item:hover img {
    transform: scale(1.1);
}

.insta-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.insta-item:hover .insta-overlay {
    opacity: 1;
}

.insta-overlay span {
    color: white;
    font-size: 14px;
    font-weight: 500;
}

.follow-button {
    display: inline-block;
    padding: 12px 30px;
    background-color: transparent;
    border: 2px solid var(--gold);
    color: var(--gold);
    text-decoration: none;
    font-size: 16px;
    transition: all 0.3s;
    border-radius: 4px;
}

.follow-button:hover {
    background-color: var(--gold);
    color: #000;
}

/* Instagram Responsive */
@media (max-width: 768px) {
    .instagram-feed {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .insta-item {
        height: 250px;
    }
    
    .instagram-section h2 {
        font-size: 28px;
        margin-bottom: 30px;
    }
}

@media (max-width: 480px) {
    .instagram-feed {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .insta-item {
        height: 300px;
    }
}

/* Partners Section */
.partners-section {
    padding: 80px 0;
    background-color: #2c2c2c;
    position: relative;
}

.partners-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

.partners-section h2 {
    color: var(--gold);
    font-size: 24px;
    margin-bottom: 50px;
    font-weight: 300;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.partners-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.partner-item {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 80px;
    transition: transform 0.3s ease, opacity 0.3s ease;
    opacity: 0.8;
}

.partner-item:hover {
    transform: scale(1.1);
    opacity: 1;
}

.partner-item img {
    max-height: 60px;
    max-width: 150px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: brightness(0.9) contrast(1.1);
    transition: filter 0.3s ease;
}

.partner-item:hover img {
    filter: brightness(1.1) contrast(1.2);
}

/* Responsive pour les partenaires */
@media (max-width: 768px) {
    .partners-grid {
        gap: 30px;
    }
    
    .partner-item {
        height: 60px;
    }
    
    .partner-item img {
        max-height: 45px;
        max-width: 120px;
    }
    
    .partners-section h2 {
        font-size: 20px;
        margin-bottom: 40px;
    }
}

@media (max-width: 480px) {
    .partners-grid {
        gap: 20px;
    }
    
    .partner-item img {
        max-height: 35px;
        max-width: 100px;
    }
}

/* Press Section */
.press-section {
    padding: 100px 0;
    background-color: #17191d;
}

.press-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

.press-section h2 {
    color: var(--gold);
    font-size: 36px;
    margin-bottom: 40px;
    font-weight: 300;
}

.press-items {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.press-item {
    background-color: #222;
    border-radius: 4px;
    overflow: hidden;
    transition: transform 0.3s;
    padding-bottom: 20px;
}

.press-item:hover {
    transform: translateY(-10px);
}

.press-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.press-item h3 {
    color: var(--gold);
    margin: 20px 0 10px;
    font-weight: 300;
}

.press-item p {
    margin-bottom: 20px;
}

.read-more {
    display: inline-block;
    padding: 8px 20px;
    background-color: transparent;
    border: 1px solid var(--gold);
    color: var(--gold);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s;
    border-radius: 4px;
}

.read-more:hover {
    background-color: var(--gold);
    color: #000;
}

/* Footer */
footer {
    padding: 60px 0 30px;
    background-color: #17191d;
    border-top: 1px solid #222;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-section {
    flex: 1;
    margin-bottom: 30px;
    min-width: 250px;
}

.footer-section h3 {
    color: var(--gold);
    margin-bottom: 20px;
    font-weight: 300;
    font-size: 20px;
}

.social-links a,
.partners img {
    margin-right: 15px;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.social-links a:hover,
.partners img:hover {
    opacity: 1;
}

.copyright {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #222;
    color: #777;
    font-size: 14px;
}

/* Container commun */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Media Queries */
@media (max-width: 992px) {
    .parallax-title h1 {
        font-size: 4rem;
    }
    .parallax-title span {
        font-size: 2.5rem;
    }
    .snow-image-container {
        height: 400px;
    }
    .about-section .content-wrapper {
        justify-content: center;
    }
    
    .about-section .text-content {
        width: 85%;
        max-width: 600px;
        margin-left: 0; /* Réinitialiser la marge gauche */
        padding: 2rem;
    }
}

@media (max-width: 768px) {
    .parallax-title h1 {
        font-size: 3.5rem;
    }
    .parallax-title span {
        font-size: 2rem;
    }
    .about-section .container {
        padding-top: 40px;
    }
    .about-section h2 {
        font-size: 28px;
        margin-bottom: 30px;
    }
    .snow-image-container {
        height: 350px;
    }
}

@media (max-width: 576px) {
    .parallax-title h1 {
        font-size: 2.8rem;
    }
    .parallax-title span {
        font-size: 1.8rem;
    }
    .nav-links {
        display: none; /* Menu burger à implémenter */
    }
    .about-section .container {
        padding-top: 30px;
    }
    .about-section h2 {
        font-size: 24px;
        margin-bottom: 20px;
    }
    .snow-image-container {
        height: 300px;
    }
    .about-section .text-content {
        width: 90%;
        padding: 1.5rem;
        font-size: 1rem;
    }
}
