/**
 * Style de l'accueil du site — Redesign Premium
 * @author Shawn Dutil
 */

/* ===========================
   VARIABLES & BASE
=========================== */
:root {
    --vert-profond: #1c2e1c;
    --vert-fonce: #243824;
    --vert-moyen: #3a5a3a;
    --or: #c9a84c;
    --or-clair: #e0c870;
    --or-pale: #f5e9c0;
    --creme: #f8f3e8;
    --blanc: #ffffff;
    --texte-sombre: #1a1a1a;
    --ombre: rgba(0, 0, 0, 0.6);
}

/* ===========================
   HERO WRAPPER
=========================== */
.hero-wrapper {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin: 0;
    padding: 0;
}

/* Image de fond */
.hero-image-bg {
    position: absolute;
    inset: 0;
    background-image: url('../assets/images_compagnie/gazebo_background.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transform: scale(1.05);
    animation: slowZoom 20s ease-in-out infinite alternate;
}

@keyframes slowZoom {
    from { transform: scale(1.05); }
    to   { transform: scale(1.12); }
}

/* Overlay dégradé multicouche */
.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            to bottom,
            rgba(10, 25, 10, 0.55) 0%,
            rgba(20, 45, 20, 0.65) 50%,
            rgba(10, 20, 10, 0.75) 100%
        );
}

/* ===========================
   DÉCORATIONS FLEUR DE LYS
=========================== */
.fleur-deco {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: var(--or);
    opacity: 0.18;
    width: 80px;
    animation: floatDeco 8s ease-in-out infinite;
    pointer-events: none;
    z-index: 1;
}

.fleur-left  { left: 5%;  animation-delay: 0s; }
.fleur-right { right: 5%; animation-delay: -4s; transform: translateY(-50%) scaleX(-1); }

@keyframes floatDeco {
    0%, 100% { transform: translateY(-50%)       translateY(0);   opacity: 0.18; }
    50%       { transform: translateY(-50%)       translateY(-12px); opacity: 0.26; }
}
.fleur-right {
    animation-name: floatDecoRight;
}
@keyframes floatDecoRight {
    0%, 100% { transform: translateY(-50%) scaleX(-1) translateY(0);    opacity: 0.18; }
    50%       { transform: translateY(-50%) scaleX(-1) translateY(-12px); opacity: 0.26; }
}

/* ===========================
   PARTICULES FLOTTANTES
=========================== */
.particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}

.particle {
    position: absolute;
    display: block;
    width: 4px;
    height: 4px;
    background: var(--or);
    border-radius: 50%;
    opacity: 0;
    animation: floatParticle 10s ease-in-out infinite;
}

.particle:nth-child(1) { left: 15%; animation-delay: 0s;   animation-duration: 12s; }
.particle:nth-child(2) { left: 30%; animation-delay: 2s;   animation-duration: 9s;  width: 3px; height: 3px; }
.particle:nth-child(3) { left: 55%; animation-delay: 4s;   animation-duration: 11s; }
.particle:nth-child(4) { left: 70%; animation-delay: 1s;   animation-duration: 8s;  width: 5px; height: 5px; }
.particle:nth-child(5) { left: 85%; animation-delay: 3s;   animation-duration: 13s; width: 3px; height: 3px; }
.particle:nth-child(6) { left: 42%; animation-delay: 5.5s; animation-duration: 10s; }

@keyframes floatParticle {
    0%   { bottom: -10px; opacity: 0;    transform: translateX(0)    rotate(0deg); }
    20%  {                opacity: 0.6; }
    80%  {                opacity: 0.4; }
    100% { bottom: 110%;  opacity: 0;    transform: translateX(30px) rotate(360deg); }
}

/* ===========================
   CONTENU HERO
=========================== */
.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 60px 40px;
    max-width: 780px;
    width: 100%;
    animation: fadeInUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(40px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Badge */
.hero-badge {
    font-family: 'Raleway', sans-serif;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--or);
    border: 1px solid rgba(201, 168, 76, 0.4);
    padding: 8px 20px;
    border-radius: 2px;
    margin-bottom: 28px;
    animation: fadeInUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.1s both;
}

/* Titre */
.hero-title {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin: 0 0 20px 0;
    line-height: 1.05;
}

.title-line {
    display: block;
    font-family: 'Playfair Display', serif;
    font-size: clamp(3rem, 7vw, 5.5rem);
    font-weight: 400;
    color: var(--blanc);
    text-shadow: 0 2px 30px rgba(0, 0, 0, 0.4);
    animation: fadeInUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both;
}

.title-accent {
    font-style: italic;
    color: var(--or-clair);
    animation-delay: 0.35s;
}

/* Séparateur décoratif */
.hero-divider {
    display: flex;
    align-items: center;
    gap: 14px;
    color: var(--or);
    margin: 20px 0 24px;
    animation: fadeInUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.5s both;
}

.hero-divider span {
    display: block;
    width: 60px;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--or), transparent);
}

/* Sous-titre */
.hero-subtitle {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(1.1rem, 2.5vw, 1.45rem);
    font-weight: 300;
    font-style: italic;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.7;
    margin: 0 0 40px 0;
    animation: fadeInUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.6s both;
}

/* Bouton CTA */
.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: 'Raleway', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--vert-profond);
    background: linear-gradient(135deg, var(--or) 0%, var(--or-clair) 100%);
    padding: 16px 40px;
    border-radius: 2px;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 20px rgba(201, 168, 76, 0.35);
    animation: fadeInUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.75s both;
}

.hero-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--or-clair) 0%, var(--or) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.hero-cta span,
.hero-cta svg {
    position: relative;
    z-index: 1;
}

.hero-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 35px rgba(201, 168, 76, 0.5);
}

.hero-cta:hover::before {
    opacity: 1;
}

.hero-cta:hover svg {
    transform: translateX(4px);
    transition: transform 0.3s ease;
}

/* ===========================
   INDICATEUR DE DÉFILEMENT
=========================== */
.scroll-indicator {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    width: 26px;
    height: 40px;
    border: 1.5px solid rgba(201, 168, 76, 0.5);
    border-radius: 13px;
    display: flex;
    justify-content: center;
    padding-top: 6px;
    animation: fadeInUp 1.2s ease 1.2s both;
}

.scroll-dot {
    width: 4px;
    height: 8px;
    background: var(--or);
    border-radius: 2px;
    animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
    0%, 100% { transform: translateY(0);   opacity: 1; }
    50%       { transform: translateY(10px); opacity: 0.4; }
}

/* ===========================
   SECTION VALEURS
=========================== */
.valeurs-section {
    background: var(--creme);
    padding: 80px 40px;
    position: relative;
}

.valeurs-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(to right, var(--vert-fonce), var(--or), var(--vert-fonce));
}

.valeurs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    max-width: 960px;
    margin: 0 auto;
}

.valeur-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 40px 24px;
    background: white;
    border-radius: 2px;
    border-bottom: 2px solid var(--or);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.valeur-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}

.valeur-icon {
    width: 52px;
    height: 52px;
    margin-bottom: 20px;
    color: var(--or);
}

.valeur-icon svg {
    width: 100%;
    height: 100%;
}

.valeur-item h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--vert-profond);
    margin: 0 0 12px 0;
}

.valeur-item p {
    font-family: 'Raleway', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    color: #444;
    line-height: 1.7;
    margin: 0;
}

/* ===========================
   RESPONSIVE
=========================== */
@media (max-width: 900px) {
    .fleur-deco { display: none; }

    .valeurs-grid {
        grid-template-columns: 1fr;
        max-width: 480px;
        gap: 24px;
    }
}

@media (max-width: 600px) {
    .hero-wrapper { min-height: 100svh; }

    .hero-content { padding: 40px 24px; }

    .hero-badge { font-size: 0.65rem; letter-spacing: 0.2em; }

    .hero-divider span { width: 35px; }

    .hero-cta {
        padding: 14px 28px;
        font-size: 0.82rem;
    }

    .valeurs-section { padding: 60px 20px; }
}