/* Charte Épurée : Noir, Blanc, Gris - Custom My Events */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #ffffff;
    color: #1c1917;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

/* Utilitaires de mise en page */
.max-w-7xl { max-width: 80rem; margin-left: auto; margin-right: auto; }
.text-center { text-align: center; }
.font-bold { font-weight: 700; }
.mt-3 { margin-top: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-12 { margin-bottom: 3rem; }
.bg-light { background-color: #f5f5f4; }
.border-bottom { border-bottom: 1px solid #e7e5e4; }

.grid {
    display: grid;
    gap: 2rem;
}
@media (min-width: 768px) {
    .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.gap-sm { gap: 1.5rem; }

.section {
    padding: 6rem 1.5rem;
}
.section-header {
    text-align: center;
    margin-bottom: 5rem;
}
.section-title {
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.025em;
    text-transform: uppercase;
}
.section-subtitle {
    color: #78716c;
    max-width: 36rem;
    margin: 1rem auto 0 auto;
    font-size: 1rem;
}

/* Boutons */
.btn {
    display: inline-block;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.875rem;
    padding: 1rem 2rem;
    text-decoration: none;
    transition: background-color 0.2s, border-color 0.2s;
    text-align: center;
    cursor: pointer;
    border: none;
}
.btn-primary { background-color: #0c0a09; color: #ffffff; }
.btn-primary:hover { background-color: #292524; }
.btn-sm { padding: 0.625rem 1.25rem; font-size: 0.75rem; }
.btn-light { background-color: #ffffff; color: #0c0a09; }
.btn-light:hover { background-color: #e7e5e4; }
.btn-outline { background-color: transparent; border: 1px solid #44403c; color: #ffffff; }
.btn-outline:hover { background-color: #1c1917; }
.btn-submit { background-color: #ffffff; color: #0c0a09; width: 100%; padding: 1rem; }
.btn-submit:hover { background-color: #e7e5e4; }

/* Header */
/* Header de base (Grand et opaque) */
.site-header {
    background-color: rgba(255, 255, 255, 1); /* Blanc 100% */
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid #e7e5e4;
    transition: all 0.3s ease-in-out; /* Fluidité du changement de taille et d'opacité */
}

.header-container {
    max-width: 80rem;
    margin: 0 auto;
    padding: 1.5rem 1.5rem; /* Hauteur de base */
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease-in-out;
}

.site-logo img {
    transition: height 0.3s ease-in-out; /* Fluidité pour le redimensionnement du logo */
}

/* --- ÉTAT LORSQU'ON SCROLL --- */

/* Fond blanc à 40% d'opacité avec un flou de verre (backdrop-blur) très qualitatif */
.site-header.scrolled {
    background-color: rgba(255, 255, 255, 0.4); 
    backdrop-filter: blur(8px); /* Floute l'arrière-plan sous le header pour garder le texte lisible */
    -webkit-backdrop-filter: blur(8px);
}

/* Réduction de la hauteur du conteneur au scroll */
.site-header.scrolled .header-container {
    padding: 0.75rem 1.5rem; /* Divise par deux l'espace haut/bas */
}

/* Réduction optionnelle de la hauteur du logo au scroll */
.site-header.scrolled .site-logo img {
    height: 50px; /* Réduit la hauteur du logo (ajuste selon tes préférences) */
}
/* --- CHANGEMENT DE COULEUR DES ONGLETS AU SCROLL --- */

/* Rend les liens du menu blancs */
.site-header.scrolled .nav-link {
    color: #000;
}

/* Optionnel : Changement de couleur au survol (hover) pour que ça reste interactif */
.site-header.scrolled .nav-link:hover {
    color: #a8a29e; /* Gris clair au survol */
}

/* Ajustement du bouton "Demander un devis" au scroll pour qu'il ressorte bien */
.site-header.scrolled .btn-primary {
    background-color: #ffffff;
    color: #0c0a09; /* Écrit en noir sur fond blanc */
}

.site-header.scrolled .btn-primary:hover {
    background-color: #e7e5e4; /* Un gris très léger au survol */
}
.main-nav {
    display: none;
}
@media (min-width: 768px) {
    .main-nav {
        display: flex;
        align-items: center;
        gap: 2rem;
    }
}
.nav-link {
    color: #78716c;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: color 0.2s;
}
.nav-link:hover { color: #0c0a09; }

/* Hero */
/* Hero Section Container */
.hero-section {
    position: relative;
    color: #ffffff;
    padding: 8rem 1.5rem;
    overflow: hidden;
    background-color: #0c0a09; /* Fond de secours */
}

/* Container des images qui défilent */
.hero-slideshow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* Style de chaque image du diaporama */
.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    animation: transitionHero 15s infinite ease-in-out;
}

/* Filtre noir transparent permanent par-dessus les images pour protéger le texte */
.hero-slideshow::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(12, 10, 9, 0.8); /* Ajuste le 0.8 (80%) pour assombrir plus ou moins */
    z-index: 2;
}

/* Gestion du timing du défilement (Exemple pour 3 images) */
/* Gestion du timing du défilement (Mise à jour avec l'extension .webp) */
.slide:nth-child(1) {
    background-image: url('images/slide1.webp');
    animation-delay: 0s;
}
.slide:nth-child(2) {
    background-image: url('images/slide2.webp');
    animation-delay: 5s;
}
.slide:nth-child(3) {
    background-image: url('images/slide3.webp');
    animation-delay: 10s;
}
.slide:nth-child(2) {
    background-image: url('images/slide4.webp');
    animation-delay: 15s;
}
.slide:nth-child(3) {
    background-image: url('images/slide5.webp');
    animation-delay: 20s;
}
/* Animation de fondu croisé */
@keyframes transitionHero {
    0% { opacity: 0; }
    8% { opacity: 1; }
    33% { opacity: 1; }
    41% { opacity: 0; }
    100% { opacity: 0; }
}

.hero-container {
    position: relative;
    z-index: 10; /* Augmenté pour passer devant le slideshow */
    max-width: 56rem;
    margin: 0 auto;
    text-align: center;
}

.badge {
    display: inline-block;
    border: 1px solid #44403c;
    padding: 0.25rem 1rem;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #a8a29e;
    margin-bottom: 1.5rem;
}
.hero-title {
    font-size: 2.5rem;
    font-weight: 300;
    letter-spacing: -0.025em;
    line-height: 1.2;
    margin-bottom: 2rem;
}
@media (min-width: 768px) { .hero-title { font-size: 3.75rem; } }
.hero-subtitle {
    font-size: 1rem;
    color: #a8a29e;
    max-width: 40rem;
    margin: 0 auto 3rem auto;
    line-height: 1.6;
}
.hero-actions {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1rem;
}
@media (min-width: 640px) { .hero-actions { flex-direction: row; } }

/* Cards */
.card {
    border: 1px solid #e7e5e4;
    padding: 2rem;
    background-color: #ffffff;
    transition: border-color 0.2s;
}
.card:hover { border-color: #78716c; }
.card-icon { font-size: 1.25rem; color: #0c0a09; margin-bottom: 1.5rem; }
.card-title { font-size: 1.125rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 0.75rem; }
.card-text { color: #78716c; font-size: 0.875rem; line-height: 1.6; }

/* Expertise & Supports */
.expertise-content { display: flex; flex-direction: column; justify-content: center; }
.sub-title { color: #78716c; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; }
.section-text { color: #44403c; font-size: 0.875rem; margin-bottom: 1.5rem; line-height: 1.6; }
.features-list { list-style: none; font-size: 0.875rem; color: #44403c; }
.features-list li { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1rem; }
.features-list i { color: #a8a29e; font-size: 0.75rem; }

.supports-box { background-color: #ffffff; border: 1px solid #e7e5e4; padding: 2rem; }
@media (min-width: 768px) { .supports-box { padding: 3rem; } }
.box-title { font-size: 1.125rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 2rem; text-align: center; }
.support-item { padding: 1.5rem; border: 1px solid #f5f5f4; background-color: #f5f5f4; text-align: center; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; font-weight: 600; color: #44403c; }
.support-item i { font-size: 1.25rem; color: #0c0a09; margin-bottom: 0.75rem; display: block; }

/* Réseau */
.network-title { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: #a8a29e; margin-bottom: 2rem; }
.network-links { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 2rem; }
@media (min-width: 768px) { .network-links { gap: 4rem; } }
.network-links a { font-size: 0.875rem; font-weight: 700; letter-spacing: 0.1em; color: #a8a29e; text-decoration: none; transition: color 0.2s; }
.network-links a:hover { color: #0c0a09; }

/* Formulaire Contact */
.contact-section { background-color: #0c0a09; color: #ffffff; }
.form-wrapper { max-width: 48rem; margin: 0 auto; }
.contact-form { display: flex; flex-direction: column; gap: 1.5rem; font-size: 0.875rem; }
.form-group { display: flex; flex-direction: column; }
.form-label { text-transform: uppercase; letter-spacing: 0.05em; font-size: 0.75rem; color: #a8a29e; margin-bottom: 0.5rem; }
.form-input, .form-select, .form-textarea { background-color: #1c1917; border: 1px solid #292524; padding: 0.75rem 1rem; color: #ffffff; font-family: inherit; }
.form-input:focus, .form-select:focus, .form-textarea:focus { border-color: #57534e; outline: none; }
.form-select { appearance: none; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23a8a29e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'></polyline></svg>"); background-repeat: no-repeat; background-position: right 1rem center; background-size: 1rem; }

/* Footer */
.site-footer { background-color: #ffffff; color: #000; padding: 3rem 1.5rem; text-align: center; font-size: 0.75rem; border-top: 1px solid #e7e5e4; }
