/* ===================================
   Variables CSS
   =================================== */
:root {
    --primary-color: #d4a574;
    --secondary-color: #8b6f47;
    --dark-color: #2c2c2c;
    --light-color: #f5f5f5;
    --white: #ffffff;
    --text-color: #333333;
    --text-light: #666666;
    --red-accent: #c92a2a;

    --font-primary: 'Poppins', sans-serif;
    --font-heading: 'Playfair Display', serif;

    --transition: all 0.3s ease;
    --shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.2);
}

/* ===================================
   Reset & Base Styles
   =================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    background-color: var(--white);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
}

/* ===================================
   Loader
   =================================== */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--dark-color);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.scissors-animation {
    font-size: 4rem;
    color: var(--primary-color);
    animation: scissorCut 1.5s ease-in-out infinite;
}

@keyframes scissorCut {
    0%, 100% {
        transform: rotate(0deg);
    }
    25% {
        transform: rotate(15deg);
    }
    75% {
        transform: rotate(-15deg);
    }
}

/* ===================================
   Navigation
   =================================== */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(44, 44, 44, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    transition: var(--transition);
}

#navbar.scrolled {
    box-shadow: var(--shadow);
    padding: 0.5rem 0;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo h1 {
    font-size: 1.8rem;
    color: var(--primary-color);
    font-family: var(--font-heading);
    margin: 0;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
}

.nav-link {
    color: var(--light-color);
    font-size: 0.95rem;
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    gap: 0.4rem;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

/* ===================================
   Hero Section
   =================================== */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, var(--dark-color) 0%, var(--secondary-color) 100%);
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(44, 44, 44, 0.85) 0%, rgba(139, 111, 71, 0.75) 100%);
    z-index: 1;
}

.hero-visual {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-svg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white);
    max-width: 800px;
    padding: 2rem;
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--primary-color);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
    font-size: 2rem;
    font-weight: 400;
    margin-bottom: 1.5rem;
    color: var(--light-color);
}

.hero-description {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    line-height: 1.8;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2rem;
    color: var(--primary-color);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-20px);
    }
    60% {
        transform: translateX(-50%) translateY(-10px);
    }
}

/* ===================================
   Buttons
   =================================== */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--dark-color);
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

/* ===================================
   Sections
   =================================== */
.section {
    padding: 5rem 0;
    position: relative;
}

.section-dark {
    background-color: var(--dark-color);
    color: var(--light-color);
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-title {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.section-dark .section-title {
    color: var(--primary-color);
}

.section-intro {
    text-align: center;
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 3rem;
    color: var(--text-light);
}

.section-dark .section-intro {
    color: var(--light-color);
}

/* ===================================
   La Coiffeuse Section
   =================================== */
.coiffeuse-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-top: 3rem;
}

.coiffeuse-image img {
    width: 100%;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
}

.coiffeuse-content h3 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.coiffeuse-content .subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    font-style: italic;
}

.bio p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

/* ===================================
   Prestations
   =================================== */
.prestations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.prestation-card {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 2.5rem;
    border-radius: 15px;
    text-align: center;
    transition: var(--transition);
    border: 2px solid transparent;
}

.prestation-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-lg);
}

.prestation-icon {
    font-size: 3.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.prestation-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--white);
}

.prestation-card p {
    line-height: 1.8;
}

.price-info {
    text-align: center;
    margin-top: 3rem;
    font-size: 1.3rem;
    color: var(--primary-color);
    font-weight: 500;
}

.price-info i {
    color: var(--red-accent);
    margin-right: 0.5rem;
}

/* ===================================
   Galeries
   =================================== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    cursor: pointer;
    aspect-ratio: 1;
    box-shadow: var(--shadow);
    /* Optimisations GPU */
    will-change: transform;
    transform: translateZ(0);
    backface-visibility: hidden;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    /* Optimisations GPU */
    transform: translateZ(0);
    backface-visibility: hidden;
}

.gallery-item:hover img {
    transform: scale(1.1) translateZ(0);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(212, 165, 116, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    /* Optimisations GPU */
    will-change: opacity;
    transform: translateZ(0);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay i {
    font-size: 3rem;
    color: var(--white);
}

/* ===================================
   Agenda
   =================================== */
.agenda-container {
    margin-top: 3rem;
}

.agenda-item {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 15px;
    margin-bottom: 1.5rem;
    border-left: 4px solid var(--primary-color);
    transition: var(--transition);
}

.agenda-item:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow-lg);
}

.agenda-date {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.2rem;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

.agenda-date i {
    font-size: 1.5rem;
}

.agenda-title {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    color: var(--white);
}

.agenda-location {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    color: var(--light-color);
    margin-bottom: 1rem;
}

.agenda-description {
    line-height: 1.8;
    color: var(--light-color);
}

.no-events {
    text-align: center;
    padding: 3rem;
    font-size: 1.2rem;
    color: var(--text-light);
}

/* ===================================
   Contact
   =================================== */
.contact-info {
    max-width: 800px;
    margin: 3rem auto;
    text-align: center;
}

.contact-info h3 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.contact-info > p {
    margin-bottom: 2rem;
    font-size: 1.1rem;
    line-height: 1.8;
}

.contact-items {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin: 3rem 0;
}

.contact-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    font-size: 1.2rem;
}

.contact-item i {
    font-size: 1.8rem;
    color: var(--primary-color);
}

.contact-item a {
    font-weight: 500;
}

.contact-item a:hover {
    color: var(--primary-color);
}

.zone-intervention {
    background-color: var(--light-color);
    padding: 2rem;
    border-radius: 15px;
    margin-top: 3rem;
    box-shadow: var(--shadow);
}

.zone-intervention h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.zone-intervention p {
    font-size: 1.1rem;
}

.zone-intervention i {
    margin-right: 0.5rem;
}

/* ===================================
   Lightbox
   =================================== */
.lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
}

.lightbox.active {
    display: flex;
    justify-content: center;
    align-items: center;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
    from {
        transform: scale(0.5);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.lightbox-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    font-size: 3rem;
    color: var(--white);
    cursor: pointer;
    transition: var(--transition);
}

.lightbox-close:hover {
    color: var(--primary-color);
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 3rem;
    color: var(--white);
    background-color: rgba(255, 255, 255, 0.1);
    border: none;
    padding: 1rem 1.5rem;
    cursor: pointer;
    transition: var(--transition);
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background-color: var(--primary-color);
    color: var(--dark-color);
}

.lightbox-prev {
    left: 2rem;
}

.lightbox-next {
    right: 2rem;
}

.lightbox-caption {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    color: var(--white);
    font-size: 1.2rem;
}

/* ===================================
   Footer
   =================================== */
.footer {
    background-color: var(--dark-color);
    color: var(--light-color);
    text-align: center;
    padding: 2rem 0;
}

.footer p {
    margin: 0.5rem 0;
}

/* ===================================
   Animations
   =================================== */
[data-animate] {
    opacity: 0;
    transition: opacity 0.8s ease, transform 0.8s ease;
}

[data-animate].animated {
    opacity: 1;
}

[data-animate="fadeInUp"] {
    transform: translateY(30px);
}

[data-animate="fadeInUp"].animated {
    transform: translateY(0);
}

[data-animate="fadeInLeft"] {
    transform: translateX(-30px);
}

[data-animate="fadeInLeft"].animated {
    transform: translateX(0);
}

[data-animate="fadeInRight"] {
    transform: translateX(30px);
}

[data-animate="fadeInRight"].animated {
    transform: translateX(0);
}

/* ===================================
   Modal Mentions Légales
   =================================== */
.legal-link {
    color: var(--primary-color);
    text-decoration: underline;
    cursor: pointer;
}

.legal-link:hover {
    color: var(--secondary-color);
}

.legal-modal {
    display: none;
    position: fixed;
    z-index: 3000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    overflow-y: auto;
}

.legal-modal.active {
    display: block;
}

.legal-modal-content {
    background-color: var(--white);
    margin: 3rem auto;
    padding: 3rem;
    max-width: 900px;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    position: relative;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.legal-modal-close {
    position: absolute;
    top: 1.5rem;
    right: 2rem;
    font-size: 2.5rem;
    color: var(--text-color);
    cursor: pointer;
    transition: var(--transition);
}

.legal-modal-close:hover {
    color: var(--primary-color);
}

.legal-modal-content h2 {
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-align: center;
}

.legal-section {
    margin-bottom: 2.5rem;
}

.legal-section h3 {
    color: var(--secondary-color);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.legal-section p {
    line-height: 1.8;
    margin-bottom: 1rem;
}

@media (max-width: 768px) {
    .legal-modal-content {
        margin: 1rem;
        padding: 2rem 1.5rem;
    }

    .legal-modal-content h2 {
        font-size: 1.8rem;
    }

    .legal-section h3 {
        font-size: 1.3rem;
    }

    .legal-modal-close {
        top: 1rem;
        right: 1rem;
        font-size: 2rem;
    }
}

/* ===================================
   Responsive Design
   =================================== */
@media (max-width: 992px) {
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        height: 100vh;
        background-color: var(--dark-color);
        flex-direction: column;
        padding: 6rem 2rem;
        gap: 1rem;
        transition: right 0.3s ease;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.3);
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-toggle {
        display: flex;
    }

    .hero-title {
        font-size: 3rem;
    }

    .hero-subtitle {
        font-size: 1.5rem;
    }

    .section-title {
        font-size: 2.5rem;
    }

    .coiffeuse-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 15px;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-description {
        font-size: 0.95rem;
        line-height: 1.6;
    }

    .section {
        padding: 2.5rem 0;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .section-intro {
        font-size: 1rem;
    }

    .coiffeuse-content h3 {
        font-size: 2rem;
    }

    .coiffeuse-content .subtitle {
        font-size: 1rem;
    }

    .bio p {
        font-size: 0.95rem;
    }

    .prestation-card h3 {
        font-size: 1.3rem;
    }

    .prestation-card p {
        font-size: 0.9rem;
    }

    .contact-info h3 {
        font-size: 1.6rem;
    }

    .contact-item {
        font-size: 1rem;
    }

    .prestations-grid {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }

    .lightbox-prev,
    .lightbox-next {
        font-size: 2rem;
        padding: 0.5rem 1rem;
    }

    .lightbox-prev {
        left: 0.5rem;
    }

    .lightbox-next {
        right: 0.5rem;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 14px;
    }

    .nav-container {
        padding: 0 2rem 0 1rem;
    }

    .container {
        padding: 0 1rem;
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-description {
        font-size: 0.9rem;
        line-height: 1.5;
    }

    .btn {
        padding: 0.8rem 2rem;
        font-size: 0.9rem;
    }

    .section {
        padding: 2rem 0;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .section-intro {
        font-size: 0.95rem;
    }

    .coiffeuse-content h3 {
        font-size: 1.6rem;
    }

    .prestation-card {
        padding: 2rem;
    }

    .prestation-card h3 {
        font-size: 1.2rem;
    }

    .prestation-icon {
        font-size: 2.5rem;
    }

    .agenda-title {
        font-size: 1.4rem;
    }

    .agenda-date {
        font-size: 1rem;
    }

    .contact-info h3 {
        font-size: 1.4rem;
    }

    .contact-item {
        font-size: 0.95rem;
    }

    .contact-item i {
        font-size: 1.4rem;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }
}

/* ===================================
   Gallery Page Specific
   =================================== */
.gallery-header {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 2rem;
    transition: var(--transition);
}

.back-link:hover {
    color: var(--secondary-color);
    transform: translateX(-5px);
}

.back-link i {
    font-size: 1.2rem;
}

#gallerySection {
    min-height: 100vh;
    padding-top: 120px;
}

@media (max-width: 768px) {
    #gallerySection {
        padding-top: 100px;
    }

    .back-link {
        font-size: 0.95rem;
    }
}

/* ===================================
   Call to Action Button (Mobile)
   =================================== */
.call-button {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 24px;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(212, 165, 116, 0.4);
    transition: all 0.3s ease;
    z-index: 999;
    animation: pulse 2s infinite;
}

.call-button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(212, 165, 116, 0.6);
}

.call-button:active {
    transform: scale(0.95);
}

/* Animation de pulsation */
@keyframes pulse {
    0%, 100% {
        box-shadow: 0 4px 20px rgba(212, 165, 116, 0.4);
    }
    50% {
        box-shadow: 0 4px 30px rgba(212, 165, 116, 0.7);
    }
}

/* Masquer sur desktop */
@media (min-width: 769px) {
    .call-button {
        display: none;
    }
}

/* Responsive mobile */
@media (max-width: 480px) {
    .call-button {
        width: 55px;
        height: 55px;
        font-size: 22px;
        bottom: 20px;
        right: 20px;
    }
}
