:root {
    /* Couleurs principales - Style Les Nouveaux Talents */
    --primary-color: #e67e22;
    --primary-light: #f39c12;
    --primary-dark: #d35400;
    /* Orange lisible sur fond blanc / crème (liens, nav active, stats) ≥4.5:1 */
    --primary-on-light: #9a3412;
    --primary-on-light-hover: #7c2d12;
    /* Fond bouton orange + texte blanc ≥4.5:1 */
    --primary-button-bg: #b45309;
    --primary-button-bg-hover: #92400e;
    --secondary-color: #8e44ad;
    --secondary-light: #9b59b6;
    --accent-color: #c0392b;
    --magenta: #d63384;
    --dark-color: #4a235a;
    --light-color: #fef9f3;
    /* Gris lisible sur fond clair / crème (WCAG AA ~4.5:1+) */
    --text-gray: #495057;
    --text-dark: #333333;
    
    /* Couleurs neutres */
    --white: #ffffff;
    --black: #000000;
    
    /* Transparences */
    --white-95: rgba(255, 255, 255, 0.95);
    --white-10: rgba(255, 255, 255, 0.1);
    --black-30: rgba(0, 0, 0, 0.3);
    --black-05: rgba(0, 0, 0, 0.05);
    --black-30-shadow: rgba(0, 0, 0, 0.3);
    --primary-10: rgba(230, 126, 34, 0.1);
    --primary-40: rgba(230, 126, 34, 0.4);
    --primary-60: rgba(230, 126, 34, 0.6);
    --primary-70: rgba(230, 126, 34, 0.7);
    --primary-85: rgba(230, 126, 34, 0.85);
    --secondary-75: rgba(142, 68, 173, 0.75);
    --accent-40: rgba(192, 57, 43, 0.4);
    --accent-50: rgba(192, 57, 43, 0.5);
    
    /* Ombres */
    --shadow-sm: 0 2px 10px var(--black-05);
    --shadow-md: 0 4px 15px var(--black-30-shadow);
    --shadow-lg: 0 5px 20px var(--primary-40);
    --black-15: rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 8px 25px var(--black-15);
}

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

html, body {
    height: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-dark);
    line-height: 1.7;
    font-size: 16px;
    display: flex;
    flex-direction: column;
}

/* Header moderne */
.navbar {
    background: var(--white);
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s;
}

.navbar.scrolled {
    padding: 12px 0;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
}

.navbar-brand {
    display: flex;
    align-items: center;
    padding: 0;
}

.navbar-brand .navbar-logo {
    height: 115px;
    width: auto;
    object-fit: contain;
    display: block;
}

.navbar.scrolled .navbar-brand .navbar-logo {
    height: 90px;
}

.nav-link {
    color: var(--text-dark) !important;
    font-weight: 500;
    padding: 10px 20px !important;
    transition: all 0.3s;
    text-transform: none;
    font-size: 0.95rem;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 20px;
    width: 0;
    height: 2px;
    background: var(--primary-on-light);
    transition: width 0.3s;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-on-light) !important;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: calc(100% - 40px);
}

/* Hero Section moderne */
.hero-section {
    position: relative;
    min-height: 30vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    background-attachment: scroll;
    color: white;
    overflow: hidden;
}

.hero-section--home {
    min-height: 90vh;
    height: 90vh;
    background-attachment: fixed;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(243, 156, 18, 0.9) 0%, rgba(230, 126, 34, 0.85) 30%, rgba(192, 57, 43, 0.8) 60%, rgba(142, 68, 173, 0.85) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 30px 20px;
    max-width: 900px;
    margin: 0 auto;
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 10px;
    text-transform: none;
    letter-spacing: -2px;
    line-height: 1.1;
    text-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: 1.1rem;
    font-weight: 400;
    margin-bottom: 0;
    opacity: 0.95;
    line-height: 1.6;
}

.hero-section--home .hero-content {
    padding: 80px 20px;
}

.hero-section--home .hero-title {
    font-size: clamp(2rem, 4vw + 1.5rem, 5.5rem);
    margin-bottom: 25px;
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
    padding-inline: 0.125rem;
}

.hero-section--home .hero-subtitle {
    font-size: 1.4rem;
    margin-bottom: 40px;
    max-width: 36rem;
    margin-left: auto;
    margin-right: auto;
    padding-inline: 0.5rem;
}

.hero-cta {
    background: var(--secondary-color);
    color: var(--white);
    border: none;
    padding: 18px 50px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s;
    text-transform: none;
    box-shadow: 0 8px 25px rgba(142, 68, 173, 0.4);
}

.hero-cta:hover {
    background: var(--secondary-light);
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(142, 68, 173, 0.5);
    color: var(--white);
}

/* Section Services Highlight */
.services-highlight {
    background: var(--white);
    padding: 60px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.services-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
}

.service-badge {
    display: flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, var(--primary-10) 0%, rgba(42, 157, 143, 0.05) 100%);
    padding: 16px 24px;
    border-radius: 50px;
    border: 2px solid var(--primary-color);
    transition: all 0.3s;
}

.service-badge:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px var(--primary-40);
}

.service-badge:hover i,
.service-badge:hover span {
    color: var(--white);
}

.service-badge i {
    font-size: 1.4rem;
    color: var(--primary-color);
    transition: color 0.3s;
}

.service-badge span {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 1rem;
    transition: color 0.3s;
}

.services-cta {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.btn-cta-primary {
    background: var(--secondary-color);
    color: var(--white);
    padding: 18px 40px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 8px 25px rgba(142, 68, 173, 0.4);
    transition: all 0.3s;
}

.btn-cta-primary:hover {
    background: var(--secondary-light);
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(142, 68, 173, 0.5);
    color: var(--white);
}

.btn-cta-secondary {
    background: var(--primary-button-bg);
    color: var(--white);
    padding: 18px 40px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 8px 25px rgba(180, 83, 9, 0.35);
    transition: all 0.3s;
}

.btn-cta-secondary:hover {
    background: var(--primary-button-bg-hover);
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(146, 64, 14, 0.45);
    color: var(--white);
}

@media (max-width: 768px) {
    .services-grid {
        flex-direction: column;
        align-items: center;
    }
    
    .service-badge {
        width: 100%;
        max-width: 320px;
        justify-content: center;
    }
    
    .services-cta {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-cta-primary,
    .btn-cta-secondary {
        width: 100%;
        max-width: 320px;
        justify-content: center;
    }
}

/* Section de statistiques moderne */
.stats-section {
    background: var(--white);
    padding: 100px 0;
}

.stat-item {
    display: flex;
    align-items: flex-start;
    gap: 30px;
    padding: 40px;
    border-radius: 15px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.stat-number {
    font-size: 5rem;
    font-weight: 800;
    color: var(--primary-on-light);
    line-height: 1;
    letter-spacing: -2px;
}

.stat-text {
    flex: 1;
}

.stat-text p {
    color: var(--text-dark);
    margin-bottom: 15px;
    font-size: 1.15rem;
    line-height: 1.7;
}

.stat-link {
    color: var(--primary-on-light);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.stat-link:hover {
    color: var(--primary-on-light-hover);
    gap: 10px;
}

/* Section avec image de fond moderne */
.image-bg-section {
    position: relative;
    min-height: 600px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    padding: 100px 0;
}

.image-bg-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(142, 68, 173, 0.8) 0%, rgba(230, 126, 34, 0.75) 100%);
    z-index: 1;
}

.image-bg-content {
    position: relative;
    z-index: 2;
    color: white;
}

.image-bg-title {
    font-size: 4rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 50px;
    text-transform: none;
    line-height: 1.2;
    text-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

/* Grille d'images */
.image-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.image-grid-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    aspect-ratio: 16/9;
    cursor: pointer;
    transition: transform 0.3s;
}

.image-grid-item:hover {
    transform: scale(1.05);
}

.image-grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-grid-item .play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
}

.image-grid-item .play-icon i {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-left: 3px;
}

/* Section de fonctionnalités moderne */
.features-section {
    background: var(--light-color);
    padding: 100px 0;
}

.feature-item {
    text-align: center;
    padding: 50px 30px;
    background: var(--white);
    border-radius: 20px;
    transition: transform 0.3s, box-shadow 0.3s;
    height: 100%;
}

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

.feature-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 30px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(230, 126, 34, 0.3);
}

.feature-icon i {
    font-size: 3rem;
    color: var(--white);
}

.feature-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 20px;
    text-transform: none;
}

.feature-description {
    color: var(--text-gray);
    line-height: 1.8;
    font-size: 1.05rem;
}

.card {
    border: none;
    border-radius: 15px;
    box-shadow: var(--shadow-md);
    margin-bottom: 30px;
}

/* Désactivation de l'effet hover sur toutes les cartes (site public et backoffice) */
.card,
.card-body {
    transition: none !important;
}

.card:hover,
.card-body:hover {
    transform: none !important;
    box-shadow: var(--shadow-md) !important;
}

/* Harmonisation de tous les boutons */
.btn {
    border-radius: 30px;
    padding: 12px 35px;
    transition: all 0.3s;
    font-weight: 500;
    border: none;
}

.btn-sm {
    padding: 8px 20px;
    font-size: 0.875rem;
}

.btn-lg {
    padding: 15px 40px;
    font-size: 1.1rem;
}

.btn-primary {
    background: var(--primary-button-bg);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--primary-button-bg-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: var(--white);
}

.btn-secondary {
    background: var(--text-gray);
    color: var(--white);
}

.btn-secondary:hover {
    background: var(--dark-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    color: var(--white);
}

.btn-success {
    border-radius: 30px;
}

.btn-danger {
    border-radius: 30px;
}

.btn-light {
    border-radius: 30px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    margin-bottom: 20px;
}

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

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

/* Footer moderne - Sticky footer */
.site-footer {
    background: var(--dark-color);
    color: var(--white);
    margin-top: auto;
}

.main-content {
    flex: 1 0 auto;
}

.footer-main {
    background: var(--dark-color);
    padding: 60px 0 40px;
}

.footer-title {
    color: var(--white);
    font-size: 1rem;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--white);
}

.footer-bottom {
    background: #3d1a4a;
    padding: 25px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-decoration: none;
    transition: transform 0.3s;
}

.social-icon:hover {
    transform: scale(1.1);
}

.social-icon.facebook {
    background: #1877f2;
}

.social-icon.youtube {
    background: #ff0000;
}

.social-icon.twitter {
    background: #000000;
}

.social-icon.pinterest {
    background: #bd081c;
}

.social-icon.instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.social-icon.linkedin {
    background: #0077b5;
}

.copyright-text {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin: 0;
}

.footer-legal-links {
    margin-left: 5px;
}

.footer-legal-links a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-legal-links a:hover {
    color: var(--white);
}

/* Admin : layout + menu burger (mobile) */
.admin-container {
    background: var(--light-color, #f8f9fa);
}

.admin-mobile-header {
    position: sticky;
    top: 0;
    z-index: 1020;
    /* Fond explicite : évite fond blanc si une règle écrase var(--dark-color) */
    background-color: var(--dark-color);
    background: var(--dark-color);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.15);
}

/* Burger : pas de btn-link (sinon couleur lien Bootstrap écrase le contraste) */
.admin-burger-btn {
    color: #fff !important;
    background-color: rgba(255, 255, 255, 0.15) !important;
    border: 1px solid rgba(255, 255, 255, 0.35) !important;
    padding: 0.35rem 0.5rem !important;
    line-height: 1;
}

.admin-burger-btn:hover,
.admin-burger-btn:focus-visible {
    color: #fff !important;
    background-color: rgba(255, 255, 255, 0.28) !important;
    border-color: rgba(255, 255, 255, 0.55) !important;
}

.admin-burger-btn:focus-visible {
    box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.35);
}

.admin-mobile-header-spacer {
    width: 2.75rem;
    height: 2.75rem;
    flex-shrink: 0;
}

.admin-layout-row {
    min-height: calc(100vh - 0px);
}

@media (max-width: 767.98px) {
    .admin-layout-row {
        min-height: auto;
    }
}

.admin-offcanvas.offcanvas {
    --bs-offcanvas-width: min(320px, 92vw);
}

/* Desktop : le menu latéral doit rester visible (l’offcanvas sans .show est caché par défaut). */
@media (min-width: 768px) {
    .admin-offcanvas.offcanvas.offcanvas-md,
    .admin-offcanvas.offcanvas {
        position: relative !important;
        transform: none !important;
        visibility: visible !important;
        width: 260px !important;
        max-width: 260px !important;
        flex-shrink: 0 !important;
        height: auto !important;
        max-height: none !important;
        transition: none !important;
        z-index: auto !important;
        box-shadow: none !important;
    }

    .admin-offcanvas .offcanvas-body {
        overflow: visible !important;
    }

    .admin-offcanvas .offcanvas-header.d-md-none {
        display: none !important;
    }
}

.admin-main {
    background: var(--white);
}

.admin-sidebar {
    background: var(--dark-color);
    min-height: 100vh;
    color: var(--white);
    padding: 20px;
}

@media (max-width: 767.98px) {
    .admin-sidebar {
        min-height: auto;
    }
}

.admin-sidebar a {
    color: var(--white);
    text-decoration: none;
    display: block;
    padding: 10px;
    margin: 5px 0;
    border-radius: 5px;
    transition: background 0.3s;
}

.admin-sidebar a:hover {
    background: var(--white-10);
}

.alert {
    border-radius: 10px;
    border: none;
}

/* Responsive */
@media (max-width: 768px) {
    .navbar {
        padding: 12px 0;
    }

    .hero-title {
        font-size: 3.5rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    /* Home hero : surcharger la spécificité .hero-section--home .hero-title */
    .hero-section--home {
        min-height: 85vh;
        height: auto;
        background-attachment: scroll;
    }

    .hero-section--home .hero-content {
        padding: 3rem 1.25rem;
        max-width: 100%;
    }

    .hero-section--home .hero-title {
        font-size: clamp(1.85rem, 5vw + 1rem, 2.75rem);
        letter-spacing: -0.03em;
        margin-bottom: 1rem;
    }

    .hero-section--home .hero-subtitle {
        font-size: 1.05rem;
        margin-bottom: 1.75rem;
        padding-inline: 0.25rem;
    }

    .hero-section--home .hero-cta {
        padding: 0.95rem 1.75rem;
        font-size: 1rem;
    }
    
    .stat-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 30px 20px;
    }

    .stat-text {
        width: 100%;
        max-width: 22rem;
    }

    .stat-text p,
    .stat-link {
        text-align: center;
    }

    .stat-link {
        justify-content: center;
    }
    
    .stat-number {
        font-size: 4rem;
        text-align: center;
        width: 100%;
    }
    
    .image-grid {
        grid-template-columns: 1fr;
    }
    
    .image-bg-title {
        font-size: 2.5rem;
    }
    
    .feature-item {
        margin-bottom: 30px;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-section--home .hero-content {
        padding: 2.25rem 1rem;
    }

    .hero-section--home .hero-title {
        font-size: clamp(1.55rem, 5.5vw + 0.6rem, 2.15rem);
        line-height: 1.12;
    }

    .hero-section--home .hero-subtitle {
        font-size: 0.95rem;
        line-height: 1.55;
    }

    .hero-section--home .hero-cta {
        display: inline-block;
        width: 100%;
        max-width: 20rem;
        padding: 0.85rem 1.25rem;
    }

    .navbar-brand .navbar-logo {
        height: 72px;
    }
}

/* Utilitaires layout */
.page-section {
    margin-top: 60px;
}

/* Formulaire contact — honeypot anti-robot (champ masqué) */
.contact-honeypot-row {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}
