/* ========================================
   DORO HARMONIE V3.1 - CSS PRINCIPAL
   Background Géométrique + Carousel Fixe
======================================== */

:root {
    --font-serif: 'Cormorant Garamond', serif;
    --font-sans: 'Montserrat', sans-serif;
    --primary-color: #d78c8c;
    --text-color: #1a1a1a;
    --bg-color: #ffffff;
    --pattern-color: #5A5E6B;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    color: var(--text-color);
    background: var(--bg-color);
    line-height: 1.8;
    overflow-x: hidden;
    position: relative;
}

/* ========================================
   BACKGROUND GÉOMÉTRIQUE VISIBLE
======================================== */
body::before {
    content: '';
    position: fixed;
    top: -10%;
    left: -10%;
    width: 120%;
    height: 120%;
    z-index: 0;
    pointer-events: none;
    background-image: 
        /* Grandes lignes diagonales */
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 80px,
            var(--pattern-color) 80px,
            var(--pattern-color) 81px,
            transparent 81px,
            transparent 160px
        ),
        repeating-linear-gradient(
            -45deg,
            transparent,
            transparent 80px,
            var(--pattern-color) 80px,
            var(--pattern-color) 81px,
            transparent 81px,
            transparent 160px
        ),
        /* Petites lignes pour créer effet polygone */
        repeating-linear-gradient(
            30deg,
            transparent,
            transparent 120px,
            var(--pattern-color) 120px,
            var(--pattern-color) 120.5px
        ),
        repeating-linear-gradient(
            60deg,
            transparent,
            transparent 140px,
            var(--pattern-color) 140px,
            var(--pattern-color) 140.5px
        ),
        repeating-linear-gradient(
            150deg,
            transparent,
            transparent 100px,
            var(--pattern-color) 100px,
            var(--pattern-color) 100.5px
        );
    opacity: 0.08;
    will-change: transform;
    animation: parallaxBg 60s linear infinite;
}

@keyframes parallaxBg {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

/* ========================================
   LAYOUT PRINCIPAL
======================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.site-header.scrolled {
    padding: 0.5rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.site-nav {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.5rem 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: padding 0.3s ease;
}

.site-header.scrolled .site-nav {
    padding: 0.8rem 3rem;
}

.site-logo img {
    height: 60px;
    width: auto;
    transition: height 0.3s ease;
}

.site-header.scrolled .site-logo img {
    height: 45px;
}

.social-icons {
    display: flex;
    gap: 1rem;
    margin-left: auto;
    margin-right: 2rem;
}

.social-icon {
    display: inline-flex;
    width: 20px;
    height: 20px;
}

.social-icon svg {
    width: 100%;
    height: 100%;
    fill: var(--primary-color);
    transition: fill 0.3s ease;
}

.social-icon:hover svg {
    fill: var(--text-color);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
}

.main-menu {
    display: flex;
    gap: 3rem;
    list-style: none;
}

.main-menu a {
    position: relative;
    text-decoration: none;
    color: var(--primary-color);
    font-size: 0.9rem;
    font-weight: 400;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

.main-menu a::before {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.main-menu a:hover::before,
.main-menu a.active::before {
    width: 100%;
}

/* ========================================
   SECTIONS
======================================== */
.premium-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8rem 3rem;
}

.section-number {
    position: absolute;
    top: 8rem;
    left: 3rem;
    font-family: var(--font-serif);
    font-size: 5rem;
    font-weight: 300;
    color: rgba(0, 0, 0, 0.03);
    display: none; /* Masqué */
}

.section-inner {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* ========================================
   HERO
======================================== */
.hero-inner {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.hero-logo {
    height: 480px;
    margin-bottom: 3rem;
    opacity: 0;
    animation: fadeInUp 1s ease forwards;
}

.hero-title {
    font-family: var(--font-serif);
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 300;
    font-style: italic;
    line-height: 1.2;
    margin-bottom: 2rem;
    opacity: 0;
    animation: fadeInUp 1s ease 0.2s forwards;
}

.hero-subtitle {
    font-size: 1.1rem;
    font-weight: 300;
    line-height: 1.8;
    max-width: 700px;
    margin: 0 auto 3rem;
    opacity: 0;
    animation: fadeInUp 1s ease 0.4s forwards;
}

.cta-btn {
    display: inline-block;
    padding: 1rem 3rem;
    border: 1px solid var(--primary-color);
    background: transparent;
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: all 0.3s ease;
    opacity: 0;
    animation: fadeInUp 1s ease 0.6s forwards;
}

.cta-btn:hover {
    background: var(--primary-color);
    color: white;
}

/* ========================================
   ABOUT
======================================== */
.section-title {
    font-family: var(--font-serif);
    font-size: 3rem;
    font-weight: 300;
    font-style: italic;
    text-align: center;
    margin-bottom: 5rem;
}

.about-editorial {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8rem;
    margin-bottom: 5rem;
}

.about-intro {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    font-style: italic;
    line-height: 1.4;
    color: var(--primary-color);
    margin-bottom: 2rem;
}

.about-text p {
    font-size: 1rem;
    line-height: 1.9;
    margin-bottom: 1.5rem;
}

.about-img-wrap {
    width: 100%;
    margin-top: 3rem;
}

.about-img-wrap img {
    width: 100%;
    height: auto;
    display: block;
}

/* ========================================
   SERVICES
======================================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 4rem;
    margin-bottom: 6rem;
}

.service-item {
    padding: 3rem 0;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.service-icon {
    width: 60px;
    height: 60px;
    display: block;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

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

.service-num {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.service-title {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    font-weight: 400;
    margin-bottom: 1.5rem;
}

.service-desc {
    font-size: 1rem;
    line-height: 1.8;
}

/* ========================================
   CAROUSEL - TAILLE FIXE
======================================== */
.carousel-section {
    margin-top: 6rem;
    padding-top: 4rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.carousel-section h3 {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    font-weight: 300;
    font-style: italic;
    text-align: center;
    margin-bottom: 3rem;
}

/* ========================================
   CONTACT
======================================== */
.contact-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3rem;
    max-width: 600px;
    margin: 0 auto;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 2rem 0;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    width: 100%;
}

.contact-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    flex-shrink: 0;
}

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

.contact-link {
    font-family: var(--font-sans);
    font-size: 1.2rem;
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-link:hover {
    color: var(--primary-color);
}

/* ========================================
   CAROUSEL SUITE
======================================== */

.carousel {
    position: relative;
    width: 100%;
    max-width: 1200px; /* Largeur max réduite */
    height: 700px; /* HAUTEUR FIXE réduite */
    margin: 0 auto;
    overflow: hidden;
    background: #f5f5f5;
    border-radius: 8px; /* Bords arrondis */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.carousel-slide {
    display: none;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

.carousel-slide.active {
    display: block;
}

/* AVANT/APRÈS - Images s'adaptent */
.before-after {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    height: 100%;
    width: 100%;
}

.before-after > div {
    position: relative;
    height: 100%;
    overflow: hidden;
}

.before-after img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Images s'adaptent à la taille */
    object-position: center;
}

.ba-label {
    position: absolute;
    top: 1rem;
    background: rgba(255, 255, 255, 0.95);
    padding: 0.5rem 1.5rem;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    z-index: 10;
}

.ba-label.before {
    left: 1rem;
}

.ba-label.after {
    left: 1rem;
}

/* VIDÉO - S'adapte à la taille fixe */
.video-container {
    position: relative;
    width: 100%;
    height: 100%;
    background: #000;
}

.video-container video {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Vidéo s'adapte à la taille */
    object-position: center;
}

.video-label {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: rgba(255, 255, 255, 0.95);
    padding: 0.5rem 1.5rem;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    z-index: 10;
}

.video-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.video-container:hover .video-controls {
    opacity: 1;
}

.play-pause-btn {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.play-pause-btn svg {
    width: 16px;
    height: 16px;
    fill: var(--text-color);
}

.video-progress {
    flex: 1;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    cursor: pointer;
}

.video-progress-bar {
    height: 100%;
    background: var(--primary-color);
    border-radius: 2px;
    width: 0%;
}

.video-time {
    color: white;
    font-size: 0.85rem;
    min-width: 80px;
    text-align: right;
}

/* Navigation du carousel */
.carousel-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.carousel-btn {
    background: transparent;
    border: 1px solid var(--text-color);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--text-color);
    transition: all 0.3s ease;
}

.carousel-btn:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    margin-top: 2rem;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: var(--primary-color);
    transform: scale(1.3);
}

/* ========================================
   FOOTER
======================================== */
.site-footer {
    text-align: center;
    padding: 3rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    font-size: 0.9rem;
    position: relative;
    z-index: 1;
}

/* ========================================
   ANIMATIONS
======================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ========================================
   RESPONSIVE
======================================== */
@media (max-width: 968px) {
    .site-nav {
        padding: 1.5rem;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .main-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        gap: 0;
        padding: 2rem;
        display: none;
    }
    
    .main-menu.active {
        display: flex;
    }
    
    .about-editorial {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-content {
        gap: 2rem;
    }
    
    .contact-item {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .carousel {
        height: 550px; /* Taille medium réduite */
        max-width: 95%;
    }
    
    .before-after {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .contact-link {
        font-size: 1rem;
    }
    
    .carousel {
        height: 450px; /* Taille mobile réduite */
        max-width: 100%;
        border-radius: 0; /* Pas de bords arrondis sur mobile */
    }
    
    .ba-label,
    .video-label {
        font-size: 0.7rem;
        padding: 0.4rem 1rem;
    }
    
    .video-controls {
        padding: 1rem;
    }
    
    .play-pause-btn {
        width: 35px;
        height: 35px;
    }
}
