/* Police personnalisée Astrale pour les titres */
@font-face {
    font-family: 'Astrale';
    src: url('fonts/Royal_Hefana.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: #0a0a0a;
    color: #fff;
    line-height: 1.6;
}

header {
    background-color: rgba(10, 10, 10, 0.1);
    padding: 1.5rem 5%;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 60px;
    width: auto;
    object-fit: contain;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #B69F5E;
}

h1 {
    font-family: 'Astrale';
}

/* Hero Section - Image Desktop */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    background-image: url('images/Salon.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #0a0a0a;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(10, 10, 10, 0.7);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 0 2rem;
}

.hero-content h1 {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    color: #B69F5E;
    letter-spacing: 2px;
}

.hero-content p {
    font-size: 1.5rem;
    color: #fff;
}

/* Sections empilées */
section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5rem 10%;
}

/* Alternance des couleurs de fond */
#realisations {
    background-color: #0a0a0a;
}

/* Section À Propos - Image Desktop */
#apropos {
    background-color: #0a0a0a;
    position: relative;
    background-image: url('images/Hamza.png');
    background-size: cover;
    background-position: center right;
    background-repeat: no-repeat;
    background-attachment: scroll;
    justify-content: flex-start;
    padding-left: 10%;
}

#apropos::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(10, 10, 10, 0.5);
    z-index: 1;
}

#apropos .box-content {
    position: relative;
    z-index: 2;
    text-align: left;
    max-width: 33%;
}

#contact {
    background-color: #0a0a0a;
}

section:last-of-type {
    background-color: #0a0a0a;
}

.box-content {
    text-align: center;
    max-width: 800px;
}

.box-content h2 {
    font-family: 'Astrale';
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: #B69F5E;
    letter-spacing: 1px;
}

.box-content p {
    font-size: 0.9rem;
    color: #fff;
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.contact-btn {
    display: inline-block;
    margin-top: 2rem;
    padding: 1.2rem 3rem;
    background-color: #B69F5E;
    color: #0a0a0a;
    text-decoration: none;
    border-radius: 0;
    font-weight: bold;
    font-size: 1.1rem;
    letter-spacing: 1px;
    transition: all 0.3s;
    border: 2px solid #B69F5E;
}

.contact-btn:hover {
    background-color: transparent;
    color: #B69F5E;
}

/* Correction : Empêche le bouton de rester noir après clic */
.contact-btn:active,
.contact-btn:focus {
    background-color: #B69F5E;
    color: #0a0a0a;
    outline: none;
}

/* Icônes réseaux sociaux */
.social-icons {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 2rem 0;
}

.social-icon {
    display: inline-block;
    transition: transform 0.3s, opacity 0.3s;
}

.social-icon img {
    width: 75px;
    height: 60px;
    transition: transform 0.3s;
}

/* Effet hover uniquement sur desktop */
@media (hover: hover) {
    .social-icon:hover {
        transform: translateY(-5px);
    }
    
    .social-icon:hover img {
        opacity: 0.8;
    }
}

/* Désactive l'effet sur mobile pour éviter les bugs */
.social-icon:active {
    transform: none;
}

/* ==================== CARROUSEL AVANT/APRÈS ==================== */

.carousel-container {
    width: 100%;
    max-width: 900px;
    margin: 3rem auto 0;
    position: relative;
}

.carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.carousel-slide {
    display: none;
    width: 100%;
}

.carousel-slide.active {
    display: block;
}

/* Comparateur avant/après */
.before-after-container {
    position: relative;
    width: 100%;
    max-width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
    border-radius: 8px;
    cursor: ew-resize;
    user-select: none;
}

.after-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.before-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    overflow: hidden;
}

.before-image {
    display: block;
    width: 900px;
    max-width: none;
    height: 100%;
    object-fit: cover;
}

/* Barre de séparation */
.slider-bar {
    position: absolute;
    top: 0;
    left: 50%;
    width: 4px;
    height: 100%;
    background-color: #B69F5E;
    transform: translateX(-50%);
    cursor: ew-resize;
    z-index: 10;
}

.slider-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background-color: #B69F5E;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 20px rgba(182, 159, 94, 0.5);
    gap: 5px;
}

.slider-button .arrow-left,
.slider-button .arrow-right {
    color: #0a0a0a;
    font-size: 14px;
    font-weight: bold;
}

/* Points de navigation SUR l'image */
.carousel-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
    gap: 12px;
    z-index: 20;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(182, 159, 94, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.8);
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.dot:hover {
    background-color: rgba(182, 159, 94, 0.8);
    transform: scale(1.2);
}

.dot.active {
    background-color: #B69F5E;
    border-color: #fff;
    transform: scale(1.3);
}

/* Responsive carrousel */
@media (max-width: 768px) {
    .carousel-container {
        max-width: 100%;
    }
    
    .before-after-container {
        aspect-ratio: 4/3;
    }
    
    .slider-button {
        width: 40px;
        height: 40px;
    }
    
    .slider-button .arrow-left,
    .slider-button .arrow-right {
        font-size: 12px;
    }
    
    .carousel-dots {
        bottom: 15px;
    }
    
    .dot {
        width: 10px;
        height: 10px;
    }
}

@media (max-width: 480px) {
    .before-after-container {
        aspect-ratio: 1/1;
    }
    
    .slider-button {
        width: 35px;
        height: 35px;
    }
    
    .carousel-dots {
        bottom: 12px;
    }
    
    .dot {
        width: 9px;
        height: 9px;
    }
}

/* ============= FIN DU CARROUSEL ===================================================== */

/* Footer avec logos partenaires */
footer {
    padding: 3rem 5%;
    border-top: 1px solid #B69F5E;
    background-color: #0a0a0a;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.trust-section {
    text-align: left;
}

.trust-title {
    color: #B69F5E;
    font-family: 'Astrale';
    font-size: 1rem;
    font-weight: bold;
    margin-bottom: 1rem;
    letter-spacing: 0.5px;
}

.partner-logos {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.partner-logos img {
    height: 55px;
    width: auto;
    object-fit: contain;
    opacity: 0.8;
    transition: opacity 0.3s;
}

@media (hover: hover) {
    .partner-logos img:hover {
        opacity: 1;
    }
}

.footer-copyright {
    color: #888;
    font-size: 0.9rem;
}

.footer-copyright p {
    margin: 0;
}

/* ==================== RESPONSIVE ==================== */

/* Tablettes (jusqu'à 1024px) - Images Tablet */
@media (max-width: 1024px) {
    /* Charge les images tablettes */
    .hero {
        background-image: url('images/SalonTablet.png');
        background-position: center;
    }
    
    #apropos {
        background-image: url('images/HamzaTablet.png');
        background-position: 100% 50%;
    }
    
    .logo img {
        height: 50px;
    }
    
    .hero-content h1 {
        font-size: 3rem;
    }
    
    .hero-content p {
        font-size: 1.2rem;
    }
    
    .box-content h2 {
        font-size: 2.2rem;
    }
    
    .box-content p {
        font-size: 1rem;
    }
    
    section {
        padding: 4rem 8%;
    }
}

/* Mobiles (jusqu'à 768px) - Images Mobile */
@media (max-width: 768px) {
    /* Charge les images mobiles */
    .hero {
        background-image: url('images/SalonMobile.png');
        background-position: center;
        background-attachment: scroll;
    }
    
    #apropos {
        background-image: url('images/HamzaMobile.png');
        background-position: 100% 50%;
        background-size: cover;
    }
    
    #apropos::before {
        background-color: rgba(10, 10, 10, 0.6);
    }
    
    header {
        padding: 1rem 3%;
        background-color: rgba(10, 10, 10, 0.1);
        backdrop-filter: blur(10px);
    }
    
    nav {
        flex-direction: column;
        gap: 1rem;
    }
    
    .logo img {
        height: 45px;
    }
    
    .nav-links {
        gap: 1rem;
        font-size: 0.85rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .hero-content {
        padding: 0 1.5rem;
    }
    
    .hero-content h1 {
        font-size: 2.2rem;
        letter-spacing: 1px;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    section {
        padding: 3rem 5%;
        min-height: 80vh;
    }
    
    .box-content {
        max-width: 100%;
    }
    
    .box-content h2 {
        font-size: 1.8rem;
        margin-bottom: 1.5rem;
    }
    
    .box-content p {
        font-size: 0.95rem;
        line-height: 1.6;
    }
    
    .contact-btn {
        padding: 1rem 2rem;
        font-size: 1rem;
        width: 100%;
        max-width: 300px;
    }
    
    .social-icons {
        gap: 1.5rem;
    }
    
    .social-icon img {
        width: 60px;
        height: 50px;
    }
    
    /* Désactive complètement les animations sur mobile */
    .social-icon {
        transition: none;
    }
    
    .social-icon img {
        transition: none;
    }
    
    /* Footer responsive mobile */
    footer {
        padding: 2rem 5%;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }
    
    .trust-section {
        text-align: center;
    }
    
    .trust-title {
        font-size: 0.9rem;
    }
    
    .partner-logos {
        justify-content: center;
        gap: 1.5rem;
    }
    
    .partner-logos img {
        height: 40px;
    }
    
    .footer-copyright {
        font-size: 0.8rem;
    }
}

/* Petits mobiles (jusqu'à 480px) */
@media (max-width: 480px) {
    .logo img {
        height: 40px;
    }
    
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .hero-content p {
        font-size: 0.9rem;
    }
    
    .box-content h2 {
        font-size: 1.5rem;
    }
    
    .box-content p {
        font-size: 0.85rem;
    }
    
    .nav-links {
        gap: 0.8rem;
        font-size: 0.8rem;
    }
    
    section {
        padding: 2rem 4%;
    }
    
    .contact-btn {
        padding: 0.9rem 1.5rem;
        font-size: 0.95rem;
    }
    
    .social-icon img {
        width: 55px;
        height: 45px;
    }
    
    /* Footer très petits mobiles */
    .partner-logos {
        gap: 1rem;
    }
    
    .partner-logos img {
        height: 40px;
    }
    
    .trust-title {
        font-size: 0.85rem;
    }
}