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

:root {
    --primary: #d5a72f;
    --secondary: #1a1e2e;
    --accent: #ff6b9d;
    --accent2: #d49c0a;
    --light: #f8f9fa;
    --dark: #0f0f1e;
}

body {
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    overflow-x: hidden;
    color: var(--secondary);
}

/* Navigation */
nav {
    position: fixed;
    width: 100%;
    z-index: 1000;
    background: rgba(26, 30, 46, 0.8);
    backdrop-filter: blur(10px);
    padding: 1.5rem 5%;
    transition: all 0.3s;
}

nav.scrolled {
    padding: 1rem 5%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 2rem;
    font-weight: lighter;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.logo img {
    height: 60px;
    width: 60px;
    object-fit: contain;
    transition: transform 0.3s;
    filter: drop-shadow(0 2px 8px rgba(212, 175, 55, 0.3));
    border-radius: 50%;
}

.logo:hover img {
    transform: rotate(360deg) scale(1.1);
}

.logo-text {
    font-size: 1.5rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-menu a {
    text-decoration: none;
    color: white;
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

.nav-menu a::after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s;
}

.nav-menu a:hover::after {
    width: 100%;
}

.nav-menu a:hover {
    color: var(--primary);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    width: 40px;
    height: 40px;
    justify-content: space-between;
    background: var(--primary);
    /* background: rgba(144, 144, 142, 0.355); */
    border-radius: .4rem;
}

.menu-toggler-icon,
.menu-toggler-icon::before,
.menu-toggler-icon::after {
    content: "";
    display: block;
    width: 22px;
    height: 2px;
    background-color:#f8f9fabd;
    transition: all 0.3s ease;
    border-radius: .6rem;
}

.menu-toggler-icon {
    position: relative;
    top: 19px;
    left: 9px;
}

.menu-toggler-icon::before {
    position: absolute;
    top: -8px;
}

.menu-toggler-icon::after {
    position: absolute;
    top: 8px;
}

/* Active state for menu toggle */
.menu-toggle.active .menu-toggler-icon {
    background-color: transparent;
}

.menu-toggle.active .menu-toggler-icon::before {
    transform: rotate(45deg);
    top: 0;
}

.menu-toggle.active .menu-toggler-icon::after {
    transform: rotate(-45deg);
    top: 0;
}

/* Hero Section with Parallax */
.hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120%;
    background: linear-gradient(135deg, var(--dark) 0%, var(--secondary) 100%);
    z-index: -2;
}

.hero-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.1;
    background-image:
        radial-gradient(circle at 20% 50%, var(--primary) 1px, transparent 1px),
        radial-gradient(circle at 80% 80%, var(--accent) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: -1;
}

.hero-content {
    text-align: center;
    color: white;
    z-index: 1;
    padding: 2rem;
}

.hero h1 {
    font-size: 5rem;
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease;
}

.hero .subtitle {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease 0.2s backwards;
}

.hero p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 3rem;
    line-height: 1.8;
    animation: fadeInUp 1s ease 0.4s backwards;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    animation: fadeInUp 1s ease 0.6s backwards;
}

.btn {
    padding: 1rem 2.5rem;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: var(--primary);
    color: var(--dark);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.4);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: var(--dark);
}

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

/* Services Section */
.services {
    padding: 8rem 5%;
    background: var(--light);
}

.section-title {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--secondary);
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 4rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    max-width: 1400px;
    margin: 0 auto;
}

.service-card {
    background: white;
    padding: 3rem 2rem;
    border-radius: 20px;
    text-align: center;
    transition: all 0.3s;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2.5rem;
}

.service-card h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--secondary);
}

.service-card p {
    color: #666;
    line-height: 1.8;
}

/* Parallax Section */
.parallax {
    height: 500px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.parallax-bg {
    position: absolute;
    top: -50%;
    left: 0;
    width: 100%;
    height: 200%;
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)),
    linear-gradient(135deg, var(--dark) 0%, var(--secondary) 50%, var(--primary) 100%);
    background-size: cover;
    background-position: center center;
    background-attachment: fixed;
    will-change: transform;
}

.parallax-bg::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(212, 175, 55, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255, 107, 157, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(26, 26, 46, 0.3) 0%, transparent 60%);
    background-size: 100% 100%;
    animation: parallaxPattern 20s ease-in-out infinite alternate;
}

@keyframes parallaxPattern {
    0% {
        background-position: 0% 0%, 100% 100%, 50% 50%;
    }
    100% {
        background-position: 100% 100%, 0% 0%, 60% 40%;
    }
}

.parallax-content {
    position: relative;
    z-index: 1;
    color: white;
    text-align: center;
    padding: 2rem;
}

.parallax h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.parallax p {
    font-size: 1.3rem;
    max-width: 700px;
}

/* Process Section */
.process {
    padding: 8rem 5%;
    background: white;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    max-width: 1400px;
    margin: 0 auto;
}

.step {
    text-align: center;
    position: relative;
}

.step-number {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: bold;
    margin: 0 auto 1.5rem;
}

.step h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--secondary);
}

.step p {
    color: #666;
    line-height: 1.6;
}

/* Gallery Section */
.gallery {
    padding: 8rem 5%;
    background: var(--light);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
    perspective: 1000px;
}

.gallery-item {
    height: 400px;
    position: relative;
    cursor: pointer;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.gallery-item:hover {
    transform: scale(1.02);
}

.gallery-card {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.8s;
    transform-style: preserve-3d;
}

.gallery-item:hover .gallery-card {
    transform: rotateY(180deg);
}

.gallery-front,
.gallery-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

@-moz-document url-prefix() {
    .gallery-front {
        transform: rotateY(0deg) translateZ(1px);
    }

    .gallery-back {
        transform: rotateY(180deg) translateZ(0px);
    }
}

.gallery-front img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.gallery-item:hover .gallery-front img {
    transform: scale(1.1);
}

.gallery-front::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.2), rgba(0,0,0,0.7));
    z-index: 1;
}

.gallery-front-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
    z-index: 2;
}

.gallery-front-content h3 {
    color: white;
    font-size: 1.8rem;
    margin: 0;
}

.gallery-back {
    background: linear-gradient(135deg, var(--secondary), var(--dark));
    transform: rotateY(180deg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    text-align: center;
}

.gallery-back-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    color: var(--primary);
    font-weight: bold;
}

.gallery-back h3 {
    color: var(--primary);
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.gallery-back p {
    color: white;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.gallery-back-btn {
    padding: 0.8rem 2rem;
    background: var(--primary);
    color: var(--dark);
    border: none;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
    transform: translateZ(0);
}

.gallery-item:hover .gallery-back-btn {
    transform: translateY(-3px);
    filter: drop-shadow(0 5px 20px rgba(212, 175, 55, 0.5));
}

/* Contact Section */
.contact {
    padding: 8rem 5%;
    background: var(--secondary);
    color: white;
}

.contact-container {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--primary);
}

.contact-info p {
    margin-bottom: 2rem;
    line-height: 1.8;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.contact-item a {
    text-decoration: none;
    color: #d49c0a;
    font-weight: 500;
}

.contact-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--secondary), var(--accent2));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #ffffffcc;
}
.contact-icon svg,
.social-links a svg {
    width: 22px;
    height: 22px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    padding: 1rem;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

/* Footer */
footer {
    background: var(--dark);
    color: white;
    padding: 3rem 5%;
    text-align: center;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: var(--primary);
    margin-bottom: 1rem;
}

.social-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--secondary), var(--accent2));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffffcc;
    text-decoration: none;
    transition: transform 0.3s;
}

.social-links a:hover {
    transform: translateY(-5px);
}

.copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    color: #888;
}

/* Responsive */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }
    nav {
        background: var(--secondary);
        backdrop-filter: none; /* ← Retirer sur le parent */
        -webkit-backdrop-filter: none;
    }
    .nav-menu{
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(26, 30, 46, 0.8);
        backdrop-filter: blur(10px); /* ← Garder sur l'enfant */
        -webkit-backdrop-filter: blur(10px);
        transition: all 0.3s;
        flex-direction: column;
        padding: 1rem 2rem;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        gap:2rem;
        display: none;
    }
    .menu-toggle.active{
        background: rgb(176 34 0);
    }
    .nav-menu.active {
        display: flex;
    }
    .hero h1 {
        font-size: 3rem;
    }

    .nav-menu {
        display: none;
    }

    .contact-container {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 2rem;
    }

    .logo {
        font-weight: bold;
        color: var(--primary);
    }

    .logo img {
        height: 45px;
        width: 45px;
    }

    .logo-text {
        font-size: 1.2rem;
    }

    .gallery-item {
        height: 350px;
    }

    .gallery-back {
        padding: 1.5rem;
    }

    .gallery-back-icon {
        font-size: 3rem;
    }
}

/* ========================================
   STYLES POUR LES MESSAGES ET ERREURS
   ======================================== */

/* Messages d'alerte (succès/erreur) */
.alert {
    padding: 1rem 1.5rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
    animation: slideIn 0.3s ease;
    font-weight: 500;
}

/* Message de succès (vert) */
.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

/* Message d'erreur (rouge) */
.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Icône dans l'alerte */
.alert-icon {
    font-size: 1.5rem;
    font-weight: bold;
    line-height: 1;
}

/* Message d'erreur sous chaque champ */
.error-message {
    color: #ff6b6b;
    font-size: 0.85rem;
    margin-top: 0.4rem;
    display: block;
    font-weight: 500;
}

/* Bordure rouge pour les champs en erreur */
.input-error {
    border: 2px solid #ff6b6b !important;
    background: rgba(255, 107, 107, 0.05) !important;
    color: #fff;
}

/* Animation d'apparition */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Disparition automatique après 5 secondes */
.alert {
    animation: slideIn 0.3s ease, fadeOut 0.5s ease 4.5s forwards;
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
        transform: translateY(-10px);
    }
}
