/* ============================================
   ALTCOACH - NOUVEAU TEMPLATE STYLES (new.css)
   Design Web Expert - 36 ans d'expérience
   ============================================ */

/* Variables CSS - Charte AltCoach */
:root {
    /* Couleurs principales */
    --color-primary: #F4B315;      /* Or/Jaune Principal */
    --color-primary-dark: #E59312; /* Orange Doré */
    --color-secondary: #8E5915;    /* Chocolat Foncé */
    --color-accent: #D3AF85;        /* Taupe Clair */
    --color-dark: #1A1414;          /* Noir */
    --color-light-bg: #423738;      /* Gris Taupe */
    --color-white: #FFFFFF;          /* Blanc */
    
    /* Typographie */
    --font-primary: 'Roboto', sans-serif;
    --font-heading: 'Ubuntu', sans-serif;
    --font-nav: 'Nunito', sans-serif;
    
    /* Espacements */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 3rem;
    --spacing-xl: 4rem;
    
    /* Ombres */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 10px 20px rgba(244, 179, 21, 0.3);
    --shadow-gold: 0 4px 15px rgba(244, 179, 21, 0.5);
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-primary);
    color: var(--color-white);
    background-color: var(--color-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */

.header-new {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(26, 20, 20, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(244, 179, 21, 0.2);
    transition: all 0.3s ease;
}

.header-new.scrolled {
    background: rgba(26, 20, 20, 0.98);
    box-shadow: var(--shadow-md);
}

.navbar-brand {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-white) !important;
    text-decoration: none;
    transition: all 0.3s ease;
}

.navbar-logo {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--color-primary);
    box-shadow: 0 2px 8px rgba(244, 179, 21, 0.3);
    transition: all 0.3s ease;
}

.navbar-logo:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(244, 179, 21, 0.5);
    border-color: var(--color-primary-dark);
}

.brand-text {
    color: var(--color-white);
}

.accent-text-new {
    color: var(--color-primary);
    font-weight: 700;
}

.navbar-brand:hover {
    transform: scale(1.05);
}

.navbar-brand:hover .navbar-logo {
    transform: scale(1.15);
    box-shadow: 0 4px 15px rgba(244, 179, 21, 0.6);
}

.navbar-nav .nav-link {
    font-family: var(--font-nav);
    font-weight: 500;
    color: var(--color-white) !important;
    margin: 0 var(--spacing-xs);
    padding: var(--spacing-xs) var(--spacing-sm) !important;
    position: relative;
    transition: all 0.3s ease;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    transition: width 0.3s ease;
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    width: 80%;
}

.navbar-nav .nav-link:hover {
    color: var(--color-primary) !important;
    transform: translateY(-2px);
}

.navbar-toggler {
    border: 1px solid var(--color-primary);
    border-radius: 4px;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(244, 179, 21, 0.25);
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero-section-new {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    background: linear-gradient(135deg, var(--color-dark) 0%, #2a1f1f 100%);
    position: relative;
    overflow: hidden;
}

.hero-section-new::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(244, 179, 21, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(142, 89, 21, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content-new {
    position: relative;
    z-index: 2;
}

.hero-title-new {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--spacing-sm);
    color: var(--color-white);
}

.hero-subtitle-new {
    font-size: 1.5rem;
    color: var(--color-primary);
    margin-bottom: var(--spacing-md);
    font-weight: 600;
}

.hero-description-new {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: var(--spacing-lg);
    line-height: 1.8;
}

.hero-image-new {
    position: relative;
    z-index: 2;
}

.hero-image-new img {
    border-radius: 20px;
    box-shadow: var(--shadow-gold);
    transition: transform 0.3s ease;
}

.hero-image-new img:hover {
    transform: scale(1.05);
}

.hero-actions-new {
    display: flex;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
}

/* ============================================
   HERO CAROUSEL
   ============================================ */

.hero-section-new .carousel {
    min-height: 100vh;
    position: relative;
}

.hero-section-new .carousel-inner {
    min-height: 100vh;
}

.hero-section-new .carousel-item {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
}

/* Éviter la superposition des textes lors de la transition */
.hero-section-new .carousel-item:not(.active) .hero-content-new {
    opacity: 0;
    pointer-events: none;
}

.hero-section-new .carousel-item.active .hero-content-new {
    opacity: 1;
    transition: opacity 0.3s ease;
}

/* Masquer le contenu pendant la transition slide */
.hero-section-new .carousel-item.carousel-item-next .hero-content-new,
.hero-section-new .carousel-item.carousel-item-prev .hero-content-new {
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
}

.hero-section-new .carousel-item.carousel-item-next.active .hero-content-new,
.hero-section-new .carousel-item.carousel-item-prev.active .hero-content-new {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.35s ease 0.2s;
}

/* Éviter les conflits avec Typed.js - ne pas masquer l'élément animé */
.hero-section-new .carousel-item .typed-new {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    display: inline !important;
}

.hero-section-new .carousel-item:not(.active) .typed-new {
    opacity: 0 !important;
    visibility: hidden !important;
}

.hero-section-new .carousel-item.active .typed-new {
    opacity: 1 !important;
    visibility: visible !important;
    transition: none !important;
}

/* Désactiver les transitions AOS pendant la transition du carousel */
.hero-section-new .carousel-item:not(.active) [data-aos] {
    opacity: 0 !important;
    transform: none !important;
    transition: none !important;
}

.hero-section-new .carousel-item.active [data-aos] {
    transition: opacity 0.6s ease, transform 0.6s ease !important;
}

/* Images du carousel spécifiques à Home2.jsx uniquement */
.hero-section-new .hero-slide-image {
    max-width: 61.6% !important;
    width: 61.6% !important;
    height: auto !important;
    /* Arrondir uniquement le haut et le bas */
    border-top-left-radius: 40px !important;
    border-top-right-radius: 40px !important;
    border-bottom-left-radius: 40px !important;
    border-bottom-right-radius: 40px !important;
    border-radius: 40px 40px 40px 40px !important;
    box-shadow: var(--shadow-gold) !important;
    transition: transform 0.3s ease !important;
    margin: 0 auto !important;
    display: block !important;
    object-fit: cover !important;
}

.hero-section-new .hero-slide-image:hover {
    transform: scale(1.05);
}

/* Contrôles du carousel - Positionnés loin des écrits */
.carousel-control-custom {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    background: rgba(244, 179, 21, 0.8);
    border: 2px solid var(--color-primary);
    border-radius: 50%;
    opacity: 0.9;
    transition: all 0.3s ease;
    z-index: 10;
}

.carousel-control-custom:hover {
    background: var(--color-primary);
    opacity: 1;
    transform: translateY(-50%) scale(1.1);
    box-shadow: var(--shadow-gold);
}

.carousel-control-prev.carousel-control-custom {
    left: 30px;
}

.carousel-control-next.carousel-control-custom {
    right: 30px;
}

.carousel-control-custom .carousel-control-prev-icon,
.carousel-control-custom .carousel-control-next-icon {
    width: 30px;
    height: 30px;
    background-size: 30px 30px;
    filter: brightness(0) invert(1);
}

/* Indicateurs du carousel */
.carousel-indicators {
    bottom: 40px;
    margin-bottom: 0;
}

.carousel-indicators [type="button"] {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    border: 2px solid var(--color-primary);
    margin: 0 5px;
    transition: all 0.3s ease;
}

.carousel-indicators [type="button"].active {
    background-color: var(--color-primary);
    width: 14px;
    height: 14px;
    border-color: var(--color-white);
    box-shadow: 0 0 10px rgba(244, 179, 21, 0.8);
}

/* Styles pour les textes dans le carousel */
.hero-lead-new {
    font-size: 1.3rem;
    color: var(--color-primary);
    margin-bottom: var(--spacing-sm);
    font-weight: 600;
}

.typed-new {
    color: var(--color-primary);
    font-weight: 700;
}

/* ============================================
   BUTTONS
   ============================================ */

.btn-primary-new {
    display: inline-block;
    padding: 12px 30px;
    font-family: var(--font-nav);
    font-weight: 600;
    font-size: 1rem;
    color: var(--color-dark);
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    border: none;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
    cursor: pointer;
}

.btn-primary-new:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    background: linear-gradient(135deg, var(--color-primary-dark), var(--color-secondary));
    color: var(--color-white);
}

.btn-outline-new {
    display: inline-block;
    padding: 12px 30px;
    font-family: var(--font-nav);
    font-weight: 600;
    font-size: 1rem;
    color: var(--color-primary);
    background: transparent;
    border: 2px solid var(--color-primary);
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-outline-new:hover {
    background: var(--color-primary);
    color: var(--color-dark);
    transform: translateY(-3px);
    box-shadow: var(--shadow-gold);
}

/* ============================================
   SECTIONS
   ============================================ */

.about-section-new,
.services-section-new,
.contact-section-new {
    position: relative;
    padding: var(--spacing-xl) 0;
}

.services-section-new {
    background: var(--color-light-bg);
}

.section-header-new {
    margin-bottom: var(--spacing-lg);
}

.section-title-new {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: var(--spacing-sm);
    position: relative;
    display: inline-block;
}

.section-title-new::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--color-white);
    border-radius: 2px;
}

.section-description-new {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.7);
    margin-top: var(--spacing-md);
}

.about-content-new,
.contact-content-new {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.05rem;
    line-height: 1.8;
}

/* ============================================
   FOOTER
   ============================================ */

.footer-new {
    background: var(--color-dark);
    border-top: 1px solid rgba(244, 179, 21, 0.2);
    padding: var(--spacing-md) 0;
    text-align: center;
}

.footer-text-new {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    margin: 0;
}

.footer-text-new strong {
    color: var(--color-primary);
}

/* ============================================
   SCROLL TOP BUTTON
   ============================================ */

.scroll-top-new {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    color: var(--color-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 1.5rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    box-shadow: var(--shadow-gold);
}

.scroll-top-new.active {
    opacity: 1;
    visibility: visible;
}

.scroll-top-new:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    color: var(--color-white);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 992px) {
    .hero-title-new {
        font-size: 2.5rem;
    }
    
    .hero-subtitle-new {
        font-size: 1.3rem;
    }
    
    .hero-description-new {
        font-size: 1rem;
    }
    
    .section-title-new {
        font-size: 2rem;
    }
    
    .carousel-control-custom {
        width: 50px;
        height: 50px;
    }
    
    .carousel-control-prev.carousel-control-custom {
        left: 20px;
    }
    
    .carousel-control-next.carousel-control-custom {
        right: 20px;
    }
    
    .carousel-control-custom .carousel-control-prev-icon,
    .carousel-control-custom .carousel-control-next-icon {
        width: 25px;
        height: 25px;
        background-size: 25px 25px;
    }
}

@media (max-width: 768px) {
    .hero-title-new {
        font-size: 2rem;
    }
    
    .hero-subtitle-new {
        font-size: 1.1rem;
    }
    
    .hero-actions-new {
        flex-direction: column;
    }
    
    .btn-primary-new,
    .btn-outline-new {
        width: 100%;
        text-align: center;
    }
    
    .section-title-new {
        font-size: 1.75rem;
    }
    
    .scroll-top-new {
        width: 45px;
        height: 45px;
        bottom: 20px;
        right: 20px;
    }
    
    .carousel-control-custom {
        width: 45px;
        height: 45px;
    }
    
    .carousel-control-prev.carousel-control-custom {
        left: 15px;
    }
    
    .carousel-control-next.carousel-control-custom {
        right: 15px;
    }
    
    .carousel-indicators {
        bottom: 20px;
    }
    
    .carousel-indicators [type="button"] {
        width: 10px;
        height: 10px;
        margin: 0 3px;
    }
    
    .carousel-indicators [type="button"].active {
        width: 12px;
        height: 12px;
    }
}

@media (max-width: 576px) {
    .hero-title-new {
        font-size: 1.75rem;
    }
    
    .navbar-brand {
        font-size: 1.25rem;
    }
    
    .navbar-logo {
        width: 35px;
        height: 35px;
    }
}

/* ============================================
   ANIMATIONS & TRANSITIONS
   ============================================ */

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

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Smooth scroll */
html {
    scroll-behavior: smooth;
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

.text-center {
    text-align: center;
}

.mb-5 {
    margin-bottom: 3rem;
}

.py-5 {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.rounded {
    border-radius: 10px;
}

.img-fluid {
    max-width: 100%;
    height: auto;
}

.min-vh-100 {
    min-height: 100vh;
}

/* Gradient backgrounds */
.bg-gradient-primary {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
}

.bg-gradient-dark {
    background: linear-gradient(135deg, var(--color-dark), var(--color-light-bg));
}

