/* --- Importation des polices Google --- */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&family=Montserrat:wght@400;500&display=swap');

/* --- Variables de couleur --- */
:root {
    --bleu-fonce: #000033;
    --oranj-accent: #ff5400;
    --blanc: #ffffff;
    --gris-clair: #f9f9f9;
    --oranj-tres-clair: #fff4e6;
    --texte-couleur: #333333;
    --box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

/* --- Styles de base --- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Montserrat', sans-serif;
    color: var(--texte-couleur);
    background-color: var(--blanc);
    line-height: 1.7;
    padding-top: 80px;
}
.container { max-width: 1200px; margin: auto; padding: 0 2rem; }
section { padding: 5rem 0; }
.section-title { text-align: center; font-size: 2.5rem; margin-bottom: 3rem; position: relative; }
.section-title::after {
    content: ''; position: absolute; bottom: -10px; left: 50%;
    transform: translateX(-50%); width: 80px; height: 4px;
    background-color: var(--oranj-accent); border-radius: 2px;
}

/* --- Header / Navigation --- */
.main-header {
    background-color: var(--blanc);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed; width: 100%; top: 0; left: 0; z-index: 1000;
}
.main-header .container {
    display: flex; justify-content: space-between; align-items: center;
    height: 80px;
}
.logo img { max-height: 55px; width: auto; }
.primary-nav { display: flex; align-items: center; }
.primary-nav a {
    text-decoration: none; color: var(--bleu-fonce); font-weight: 600;
    padding: 29px 15px;
    position: relative; transition: color 0.3s ease;
    border-bottom: 3px solid transparent;
}
.primary-nav a.active, .primary-nav a:hover {
    color: var(--oranj-accent);
    border-bottom-color: var(--oranj-accent);
}
.hamburger-nav { position: relative; margin-left: 1rem; }
.nav-toggle {
    display: none;
    flex-direction: column; justify-content: space-around;
    width: 30px; height: 25px; background: transparent; border: none;
    cursor: pointer; padding: 0; z-index: 1010;
}
.nav-toggle .bar { width: 30px; height: 3px; background-color: var(--bleu-fonce); border-radius: 10px; transition: all 0.3s linear; }
.secondary-nav-links {
    display: none; position: absolute; top: 120%;
    right: 0; background: var(--blanc); box-shadow: var(--box-shadow);
    border-radius: 8px; padding: 1rem; width: 220px; z-index: 1000;
}
.secondary-nav-links.active { display: block; }
.secondary-nav-links ul { list-style: none; padding: 0; margin: 0; }
.secondary-nav-links li a {
    display: block; padding: 0.8rem 1rem; color: var(--bleu-fonce);
    text-decoration: none; border-radius: 5px; transition: background-color 0.2s, color 0.2s;
}
.secondary-nav-links li a:hover { background-color: var(--gris-clair); color: var(--oranj-accent); }
.secondary-nav-links .mobile-nav-item { display: none; }

/* --- Éléments généraux --- */
.btn {
    display: inline-block; background: var(--oranj-accent); color: var(--blanc);
    padding: 0.8rem 1.8rem; border-radius: 50px; text-decoration: none;
    font-weight: 600; transition: background-color 0.3s ease, transform 0.1s ease;
    margin-top: auto; border: none; cursor: pointer; font-family: 'Poppins', sans-serif;
}
.btn:hover { background: var(--bleu-fonce); color: var(--blanc); transform: translateY(-3px); }
.btn:active { transform: translateY(1px) scale(0.98); box-shadow: 0 2px 5px rgba(0,0,0,0.15); }
.text-center { text-align: center; }

/* --- Sections spécifiques --- */
#hero {
    height: 90vh; color: var(--blanc); display: flex;
    justify-content: center; align-items: center; text-align: center;
    margin-top: -80px; position: relative; overflow: hidden;
    background-color: var(--bleu-fonce);
}
#hero::before {
    content: ''; position: absolute; top: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(rgba(0, 0, 51, 0.4), rgba(0, 0, 51, 0.4)), url('../images/mockup.jpg') no-repeat center center/cover;
    animation: ken-burns 20s infinite; z-index: 1;
}
@keyframes ken-burns {
    0% { transform: scale(1.05); }
    50% { transform: scale(1.15); }
    100% { transform: scale(1.05); }
}
.hero-content { position: relative; z-index: 2; }
#hero h1 {
    max-width: 900px;
    margin: 0 auto 1rem;
    padding: 0 1rem;
    font-size: clamp(1.8rem, 4.5vw, 3.5rem);
    line-height: 1.2;
}
.hero-content .slogan { padding: 0 1rem; }
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 2rem; }
.service-card {
    background: var(--blanc); border: 1px solid #eee; border-radius: 10px;
    box-shadow: var(--box-shadow); overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex; flex-direction: column;
}
.service-card:hover { transform: translateY(-10px); }
.service-card .card-content { padding: 1.5rem; flex-grow: 1; display: flex; flex-direction: column; }
.service-intro-card { text-align: center; }
.service-intro-card .icon { font-size: 3.5rem; color: var(--oranj-accent); margin-bottom: 1rem; }
.service-card .card-img, .service-card .image-placeholder, .service-card video { width: 100%; height: 220px; object-fit: cover; }
.card-content h3 { color: var(--bleu-fonce); margin-bottom: 1rem; }
.card-content ul { list-style: none; padding-left: 0; color: #555; }
.card-content ul li { margin-bottom: 0.5rem; }

#cta {
    background-color: var(--oranj-tres-clair);
    color: var(--texte-couleur);
    text-align: center;
    padding: 4rem 2rem;
}
#cta h2 { color: var(--bleu-fonce); }
.page-header { background-color: var(--bleu-fonce); color: var(--blanc); text-align: center; padding: 6rem 0 3rem 0; margin-top: -80px; }
.page-header h1 { color: var(--blanc); }
.shop-notice {
    max-width: 760px;
    margin: 0 auto;
    padding: 3rem;
    text-align: center;
    background: var(--oranj-tres-clair);
    border-radius: 15px;
    box-shadow: var(--box-shadow);
}
.shop-notice h2 { color: var(--bleu-fonce); margin-bottom: 1rem; }
.shop-notice p { margin-bottom: 1.5rem; }
#shop-products[hidden] { display: none; }

.main-footer {
    background-color: var(--oranj-tres-clair);
    color: #666;
    padding: 3rem 0 1.5rem 0;
    text-align: center;
}
.footer-content h4 { font-family: 'Poppins', sans-serif; color: var(--texte-couleur); text-transform: uppercase; margin-bottom: 1.5rem; font-size: 1rem; letter-spacing: 1px; }
.social-links a { 
    color: var(--bleu-fonce); font-size: 1.8rem; margin: 0 0.8rem; 
    text-decoration: none; transition: all 0.3s; 
}
.footer-bottom { padding-top: 1.5rem; border-top: 1px solid #ddd; font-size: 0.9rem; }
.credit-tag { margin-top: 0.5rem; font-size: 0.8rem; color: #888; }
.footer-links { margin-top: 1rem; }
.footer-links a { color: #888; text-decoration: none; font-size: 0.9rem; margin: 0 10px; transition: color 0.3s; }
.footer-links a:hover { color: var(--oranj-accent); }

/* --- Galerie des réalisations --- */
#realisations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}
.portfolio-item {
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 250px;
    background-color: #e9e9e9;
    position: relative;
}
.portfolio-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 35px rgba(0, 0, 0, 0.12);
}
.portfolio-item img, .portfolio-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.overlay {
    position: absolute; bottom: 0; left: 0; right: 0;
    background-color: rgba(0, 0, 0, 0.6); color: white;
    text-align: center; padding: 10px 0; opacity: 0;
    transition: opacity 0.3s ease; font-family: 'Poppins', sans-serif;
    pointer-events: none;
}
.portfolio-item a:hover .overlay { opacity: 1; }

/* --- Formulaire de contact --- */
.contact-container { max-width: 800px; margin: auto; background: var(--blanc); padding: 3rem; border-radius: 10px; box-shadow: var(--box-shadow); }
#contact-section .contact-container p { text-align: center; max-width: 600px; margin: 0 auto 2.5rem auto; font-size: 1.1rem; color: #555; }
.form-group { margin-bottom: 1.5rem; }
.form-group label { display: block; font-weight: 600; margin-bottom: 0.5rem; color: var(--bleu-fonce); }
.form-group input, .form-group textarea, .form-group select {
    width: 100%; padding: 0.8rem; border: 1px solid #ddd;
    border-radius: 5px; font-family: 'Montserrat', sans-serif; font-size: 1rem;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
    outline: none; border-color: var(--oranj-accent);
    box-shadow: 0 0 0 3px rgba(255, 84, 0, 0.2);
}
textarea { resize: vertical; min-height: 150px; }
.whatsapp-btn {
    display: inline-block; background-color: #25D366; color: white;
    padding: 1rem 2rem; border-radius: 50px; text-decoration: none;
    font-weight: bold; font-family: 'Poppins', sans-serif;
    margin: 0.5rem; transition: transform 0.2s;
}
.whatsapp-btn:hover { transform: scale(1.05); }

/* --- Styles spécifiques à la page Studio --- */
.studio-services-list ul { list-style: none; padding-left: 0; }
.studio-services-list li { padding: 0.8rem 0; border-bottom: 1px solid #eee; }

/* --- Requêtes média adaptatives --- */
@media (max-width: 950px) {
    body { padding-top: 65px; } 
    .main-header .container { height: 65px; }
    .logo img { max-height: 45px; }
    .primary-nav { display: none; } 
    .hamburger-nav { margin-left: auto; }
    .nav-toggle { display: flex; }
    .page-header { margin-top: -65px; }
    .secondary-nav-links {
        position: fixed;
        top: 65px;
        right: 0;
        left: 0;
        width: auto;
        max-height: calc(100vh - 65px);
        max-height: calc(100dvh - 65px);
        overflow-y: auto;
        border-radius: 0 0 8px 8px;
        padding: 0.5rem 1rem 1rem;
    }
    .secondary-nav-links .mobile-nav-item { display: block; }
    .secondary-nav-links .mobile-nav-item:nth-child(5) {
        border-bottom: 1px solid #e5e5e5;
        margin-bottom: 0.4rem;
        padding-bottom: 0.4rem;
    }
}

/* ============================================= */
/* Styles existants de la boutique et de ses produits */
/* ============================================= */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2.5rem;
}
.product-card {
    background: var(--blanc);
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}
.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.1);
}
.product-image {
    width: 100%;
    height: 280px;
    background-color: #f0f0f0;
}
.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.product-info {
    padding: 1.5rem;
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.product-info h3 {
    font-family: 'Poppins', sans-serif;
    color: var(--bleu-fonce);
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}
.product-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--oranj-accent);
    margin-bottom: 1.5rem;
}
.product-info .btn.buy-btn {
    margin-top: auto;
    width: 100%;
}


/* ============================================= */
/* Styles ajoutés uniquement — ne pas modifier le code ci-dessus */
/* ============================================= */

/* 1. Styles de la section « À propos » */
#about-us {
    background-color: var(--blanc);
}
.about-us-container {
    display: flex;
    align-items: center;
    gap: 4rem;
}
.about-us-image {
    flex-basis: 45%;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}
.about-us-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.about-us-text {
    flex-basis: 55%;
}
.about-us-text .section-title::after {
    left: 0;
    transform: translateX(0);
}
.about-us-text p {
    margin-bottom: 1.5rem;
    color: #555;
    font-size: 1.1rem;
}
.about-us-text .btn {
    margin-top: 1rem;
}
@media (max-width: 950px) {
    .about-us-container {
        flex-direction: column;
        gap: 3rem;
    }
    .about-us-text .section-title {
        text-align: center;
    }
    .about-us-text .section-title::after {
        left: 50%;
        transform: translateX(-50%);
    }
}

/* 2. Couleurs des icônes des réseaux sociaux */
.social-links a:hover { transform: translateY(-3px); }
.social-links a.facebook-icon:hover { color: #1877F2; }
.social-links a.instagram-icon:hover { color: #E4405F; }
.social-links a.youtube-icon:hover { color: #FF0000; }
.social-links a.tiktok-icon:hover { color: var(--oranj-accent); }

/* 3. Fenêtre de paiement avec défilement */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.75);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 1rem;
}

.modal-content {
    background-color: var(--blanc);
    padding: 2rem 2.5rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    width: 100%;
    max-width: 500px;
    position: relative;
    text-align: center;
    animation: slide-down 0.4s ease-out;
    max-height: 90vh; /* Limite la hauteur à 90 % de l’écran */
    overflow-y: auto; /* Ajoute un défilement si nécessaire */
}
@keyframes slide-down {
    from { transform: translateY(-30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2.5rem;
    color: #aaa;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
}
.modal-close:hover { color: var(--texte-couleur); }

#modal-product-name { font-size: 1.5rem; font-family: 'Poppins', sans-serif; }
.modal-content .product-price { margin-bottom: 2rem; color: var(--oranj-accent); font-weight: 700; font-size: 1.4rem;}

.step {
    display: none; /* Masque toutes les étapes par défaut */
    text-align: left;
    gap: 1.5rem;
    padding-top: 1.5rem;
}
.step.active-step {
    display: flex; /* Affiche uniquement l’étape active */
}
.step:first-child { padding-top: 0; }

.step-number {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--bleu-fonce);
    color: white;
    font-weight: bold;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}
.step-content {
    flex-grow: 1;
}
.step-content h4 {
    font-family: 'Poppins', sans-serif;
    margin-bottom: 0.5rem;
    color: var(--bleu-fonce);
}
.step-content p {
    color: #666;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.payment-choice {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.payment-btn {
    height: 48px;
    border-radius: 8px;
    border: 1px solid #ddd;
    background-color: #f9f9f9;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 0 12px;
    gap: 12px;
}
.payment-btn:hover {
    background-color: white;
    border-color: var(--bleu-fonce);
    transform: scale(1.02);
}
.payment-logo {
    height: 28px;
    width: auto;
    object-fit: contain;
}
.payment-text {
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    color: #333;
}

.upload-btn {
    width: 100%;
    text-align: center;
}
.upload-btn i {
    margin-right: 0.5rem;
}

.payment-details { 
    display: none; 
    margin-top: 1rem;
    margin-bottom: 1.5rem;
}
.payment-info {
    background-color: #eef2f5;
    padding: 1rem;
    border-radius: 8px;
    border: 1px dashed #ccc;
}
.payment-info p { margin: 0.25rem 0; font-size: 1rem; text-align: center; }
.payment-info .payment-value {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--bleu-fonce);
}
.btn-next {
    width: 100%;
    margin-top: 1rem;
}
.btn-next i {
    margin-left: 0.5rem;
}
.btn-previous {
    background: none;
    border: none;
    color: var(--bleu-fonce);
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 1rem;
    padding: 0;
}
.btn-previous i {
    margin-right: 0.5rem;
}
/* --- Carrousel de l’équipe dans la section « À propos » --- */

.about-us-image {
    position: relative;
    overflow: hidden; /* Masque les diapositives inactives */
    border-radius: 8px; /* Arrondit les angles */
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    background-color: #eee; /* Fond affiché pendant le chargement de l’image */
}

.team-slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    width: 100%;
    height: 100%;
    display: none; /* Masque toutes les diapositives par défaut */
}

.slide.active-slide {
    display: block; /* Affiche uniquement la diapositive active */
    animation: fadeIn 0.5s; /* Léger effet de fondu */
}

.slide img {
    width: 100%;
    height: 100%;
    /* Conserve les mêmes dimensions pour toutes les images */
    aspect-ratio: 1 / 1; /* Format carré ; peut être remplacé par 4 / 3 */
    object-fit: cover; /* L’image remplit l’espace sans être déformée */
    display: block;
}

/* Espace réservé à la huitième photo */
.placeholder-slide .placeholder-content {
    width: 100%;
    aspect-ratio: 1 / 1; /* Même ratio que les images */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: #f0f0f0;
    color: #aaa;
    font-family: Arial, sans-serif;
}

.placeholder-slide .placeholder-content i {
    font-size: 4rem;
    margin-bottom: 1rem;
}

/* Boutons de navigation */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.4);
    color: white;
    border: none;
    cursor: pointer;
    padding: 0.5rem 0.8rem; /* Réduit légèrement la taille */
    font-size: 1.2rem;
    line-height: 1;
    z-index: 10;
    transition: background-color 0.3s ease;
    border-radius: 50%; /* Rend les boutons circulaires */
    width: 2.5rem;
    height: 2.5rem;
}

.slider-btn:hover {
    background-color: rgba(0, 0, 0, 0.7);
}

.prev-btn {
    left: 10px;
}

.next-btn {
    right: 10px;
}

@keyframes fadeIn {
    from { opacity: 0.4; }
    to { opacity: 1; }
}

.modal-overlay.is-open {
    display: flex;
}
.modal-close {
    background: transparent;
    border: 0;
}
.payment-instructions {
    margin: 1rem 0 1.5rem;
    padding: 1rem;
    border: 1px solid #e4e8ed;
    border-radius: 10px;
    background: #f7f9fb;
}
.payment-instructions .payment-logo {
    display: block;
    height: 36px;
    margin: 0 auto 0.5rem;
}
.payment-instructions h3 {
    color: var(--bleu-fonce);
    margin-bottom: 0.5rem;
}
.payment-instructions p {
    margin: 0.5rem 0;
}
.payment-instructions .natcash-number {
    color: var(--bleu-fonce);
    font-size: 1.5rem;
    font-weight: 700;
}
.order-message {
    min-height: 1.5rem;
    margin: 0.75rem 0;
    color: #555;
}
.order-message.success { color: #167344; }
.order-message.error { color: #b42318; }
.admin-page .admin-content {
    padding-top: 3rem;
    padding-bottom: 5rem;
}
.admin-login {
    max-width: 520px;
}
.admin-login h2,
.admin-heading h2 {
    color: var(--bleu-fonce);
    margin-bottom: 1rem;
}
.admin-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}
.admin-heading > div {
    display: flex;
    gap: 0.5rem;
}
.admin-secondary {
    background: var(--bleu-fonce);
}
.admin-table-wrap {
    overflow-x: auto;
    background: white;
    border-radius: 10px;
    box-shadow: var(--box-shadow);
}
.admin-orders-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 900px;
}
.admin-orders-table th,
.admin-orders-table td {
    padding: 0.85rem;
    text-align: left;
    border-bottom: 1px solid #eee;
}
.admin-orders-table th {
    color: var(--bleu-fonce);
    background: #f7f9fb;
}
.admin-orders-table td:last-child {
    white-space: nowrap;
}
.order-action {
    margin: 0.35rem 0 0 0.4rem;
    padding: 0.45rem 0.75rem;
    border-radius: 6px;
}
.order-action.verified {
    background: #167344;
}
.order-action.rejected {
    background: #b42318;
}
@media (max-width: 600px) {
    .modal-content {
        padding: 2rem 1.25rem;
    }
    .admin-heading {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* --- Masque le badge « Powered by Netlify » intégré dans une iframe --- */
#nl-badge-frame {
    display: none !important;
}