:root {
    --secondary-color: #2575fc;
    --accent-color: #ff6b6b;
    --dark-color: #1a1a2e;
    --light-bg: #ffffff;
    --card-bg: #ffffff;
    --gradient: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);

    --primary-dark: #1a4d2d;
    --primary-medium: #2a7d4a;
    --primary-light: #e67f3c;
    --primary-very-light: #e8f5e9;
    --accent-gold: #d4af37;
    --text-dark: #333333;
    --text-light: #f8f9fa;
    --bg-light: #f5f5f5;

}

body {
    font-family: 'Poppins','Montserrat', sans-serif;
    color: var(--text-dark);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    font-family: 'Playfair Display', serif;
}

.custom-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    letter-spacing: 1px;
    background: white;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 66px;
}

/* Navigation */
.navbar {
    background-color: rgba(26, 77, 45, 0.95);
    padding: 15px 0;
    transition: all 0.3s ease;
}

.navbar-brand {
    font-weight: 700;
    color: white;
    font-size: 1.5rem;
}

.navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
    margin: 0 10px;
    transition: all 0.3s ease;
    position: relative;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: white;
    transition: width 0.3s ease;
}

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

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: white;
}

/* Hero Section avec forme ovale */
.hero {
    background: linear-gradient(rgba(26, 77, 45, 0.9), rgba(26, 77, 45, 0.9)), url('https://images.unsplash.com/photo-1497215842964-222b430dc094?ixlib=rb-4.0.3') no-repeat center center/cover;
    min-height: 100vh;
    display: flex;
    align-items: center;
    color: white;
    position: relative;
    padding: 150px 0 0 0;
    font-weight: 900;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -50px;
    left: 0;
    width: 100%;
    height: 100px;
    background: var(--primary-very-light);
    border-radius: 50% 50% 0 0;
    z-index: 2;
}

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

.hero-img {
    overflow: hidden;
    transition: all 0.5s ease;
}

.hero-img:hover {
    transform: perspective(800px) rotateY(0);
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    font-weight: 900;
}


.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: var(--primary-light);
}
.section-title-p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

.hero-subtitle-p{
    font-size: large;
}

.btn-primary {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--primary-medium);
    transition: all 0.4s ease;
    z-index: -1;
}

.btn-primary:hover::before {
    left: 0;
}

.btn-primary:hover {
    border-color: var(--primary-medium);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.about-content h3{
    font-size: 30px;;
}

.about-content p{
    font-size: 20px;
    text-align: justify;
}
/* Section Styling */
.section {
    padding: 100px 0;
}

.section-title {
    position: relative;
    margin-bottom: 60px;
    font-weight: 700;
    font-size: 75px;
}

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

.section-title:after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--primary-dark);
}

/* About Section */
.about-img {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.5s ease;
    max-height: 547px;
}

.about-img:hover {
    transform: scale(1.03);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.about-content h3 {
    color: var(--primary-dark);
    margin-bottom: 20px;
}

/* Services Section */
.services {
    background-color: var(--primary-dark);
}

.service-card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 0;
    background: var(--primary-dark);
    transition: all 0.5s ease;
}

.service-card:hover::before {
    height: 100%;
}

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

.service-icon {
    font-size: 2.5rem;
    color: var(--primary-dark);
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.2) rotate(5deg);
    color: var(--primary-medium);
}

/* Project Cards */
     #portfolio-projects .project-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    margin-bottom: 30px;
    height: 100%;

    width: auto !important;
    border: none !important;
    padding: 25px !important;

    
    }

    #portfolio-projects .project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    }

    #portfolio-projects .project-image {
        height: 250px;
        overflow: hidden;
        padding: 15px;
    }
    
    #portfolio-projects .project-image img {
        width: 300px;
        height: 200px;
         /* garde l'image bien remplie sans la déformer */
        border-radius: 0; /* ou 15px si tu veux arrondi */
        transition: all 0.5s ease;
    }
    
    #portfolio-projects .project-card:hover .project-image img {
        transform: scale(1.05);
    }
    

    #portfolio-projects .project-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--primary-dark);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

   #portfolio-projects .project-content {
    padding: 25px;
    }

    #portfolio-projects .project-title {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--primary-dark);
          }

        #portfolio-projects .project-description {
    color: #555;
    margin-bottom: 20px;
       }

    #portfolio-projects .project-link {
    display: inline-flex;
    align-items: center;
    color: var(--primary-dark);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
   }

     #portfolio-projects .project-link i {
    margin-left: 8px;
    transition: all 0.3s ease;
    }

     #portfolio-projects .project-link:hover {
    color: var(--primary-medium);
   }

   #portfolio-projects .project-link:hover i {
    transform: translateX(5px);
    }

    .view-all-btn {
        background: var(--primary-dark);
        color: white;
        padding: 12px 30px;
        border-radius: 30px;
        font-weight: 600;
        text-decoration: none;
        display: inline-block;
        margin-top: 30px;
        transition: all 0.3s ease;
    }
    
    .view-all-btn:hover {
        background: var(--primary-medium);
        color: white;
        transform: translateY(-3px);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    }

    #premierPAS{
        background: linear-gradient(135deg, #0d0d0d, #1a1a1a); 
        color: #fff; 
        overflow: hidden; 
    }
    
    /* Animations */
    .animate-up {
        opacity: 0;
        transform: translateY(50px);
        transition: all 0.8s ease;
    }
    
    .animate-up.animated {
        opacity: 1;
        transform: translateY(0);
    }
    
    .delay-1 {
        transition-delay: 0.2s;
    }
    
    .delay-2 {
        transition-delay: 0.4s;
    }
    
    /* Responsive Adjustments */
    @media (max-width: 768px) {
        .projects-section {
            padding: 60px 0;
        }
    }


.text-gradient {
background: linear-gradient(90deg, #ffcc00, #ff6600);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
}
.radial-bg {
position: absolute;
top: 50%;
left: 75%;
transform: translate(-50%, -50%);
width: 800px;
height: 800px;
background: radial-gradient(circle, rgba(255,215,0,0.5) 0%, transparent 70%);
filter: blur(80px);
z-index: 1;
}
.glass-player {
background: rgba(0, 0, 0, 0.8);
backdrop-filter: blur(12px);
border: 1px solid rgba(255, 255, 255);
}
.abonne-count{
    position: absolute;
    top: 300px;
    right: 0;
    z-index: 100;
}

.premier-pas.show-premier-pas::after {
display: block;
}
.premier-pas {
position: relative;
margin: 20px;
border-radius: 40px;
}
.premier-pas::after {
    position: absolute;
    left: 0;
    right: 0;
    margin: 0 auto;
    bottom: -1px;
    content: "";
    background-color: white;
    width: 279px;
    height: 117px;
    z-index: 1000;
    /* -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 279.000000 117.000000"><g transform="translate(0.000000,117.000000) scale(0.100000,-0.100000)" stroke="none"><path d="M1238 1150 c-97 -34 -165 -90 -335 -278 -89 -97 -182 -199 -207 -227 -26 -27 -70 -77 -99 -110 -93 -109 -344 -381 -380 -412 -45 -39 -147 -100 -190 -112 -20 -6 481 -9 1368 -10 l1400 0 -75 27 c-120 44 -168 83 -330 272 -40 47 -100 117 -135 155 -34 39 -109 124 -166 190 -56 66 -149 174 -206 240 -155 179 -232 238 -356 271 -78 21 -220 18 -289 -6z"/></g></svg>'); */
    mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 279.000000 117.000000"><g transform="translate(0.000000,117.000000) scale(0.100000,-0.100000)" stroke="none"><path d="M1238 1150 c-97 -34 -165 -90 -335 -278 -89 -97 -182 -199 -207 -227 -26 -27 -70 -77 -99 -110 -93 -109 -344 -381 -380 -412 -45 -39 -147 -100 -190 -112 -20 -6 481 -9 1368 -10 l1400 0 -75 27 c-120 44 -168 83 -330 272 -40 47 -100 117 -135 155 -34 39 -109 124 -166 190 -56 66 -149 174 -206 240 -155 179 -232 238 -356 271 -78 21 -220 18 -289 -6z"/></g></svg>');
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center center;
    mask-position: center center;
    -webkit-mask-size: cover;
    mask-size: cover;
    display: none;
}
 /* Hero Section pour la page Podcast */
  
    

/* Contact Section */
.contact-info {
    margin-bottom: 30px;
}

.contact-icon {
    font-size: 1.5rem;
    color: var(--primary-dark);
    margin-right: 15px;
    transition: all 0.3s ease;
}

.contact-item:hover .contact-icon {
    transform: scale(1.2);
}

.form-control {
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-dark);
    box-shadow: 0 0 0 0.25rem rgba(26, 77, 45, 0.25);
    transform: translateY(-2px);
}

/* Footer */
footer {
    background-color: var(--primary-dark);
    color: white;
    padding: 60px 0 30px;
}

.social-icons a {
    color: white;
    font-size: 1.5rem;
    margin: 0 15px;
    transition: all 0.3s ease;
    display: inline-block;
}

.social-icons a:hover {
    color: var(--primary-light);
    transform: translateY(-5px) scale(1.2);
}

/* Back to top button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-dark);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.back-to-top:hover {
    background-color: var(--primary-medium);
    transform: translateY(-5px);
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
}

/* Animations personnalisées */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.animate-up {
    animation: fadeInUp 1s ease forwards;
}

.pulse {
    animation: pulse 2s infinite ease-in-out;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

.delay-3 {
    animation-delay: 0.6s;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .hero::after {
        height: 50px;
        bottom: -25px;
    }
    
    .hero-img {
        margin-bottom: 30px;
        transform: perspective(800px) rotateY(0);
    }
}
    
    
    /* Style des cartes en grille */
    .video-card {
        border: none;
        border-radius: 16px;
        overflow: hidden;
        transition: all 0.4s ease;
        box-shadow: 0 12px 25px rgba(0,0,0,0.09);
        background: var(--card-bg);
        height: 100%;
        cursor: pointer;
    }
    
    .video-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    }
    
    .video-thumbnail {
        position: relative;
        overflow: hidden;
        border-radius: 16px 16px 0 0;
        height: 220px;
    }
    
    .video-thumbnail img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.5s ease;
    }
    
    .video-card:hover .video-thumbnail img {
        transform: scale(1.05);
    }
    
    .play-overlay {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.4);
        display: flex;
        align-items: center;
        justify-content: center;
        opacity: 0;
        transition: all 0.3s ease;
    }
    
    .video-card:hover .play-overlay {
        opacity: 1;
    }
    
    .play-icon {
        width: 60px;
        height: 60px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.9);
        display: flex;
        align-items: center;
        justify-content: center;
        color: var(--primary-color);
        font-size: 24px;
        transition: all 0.3s ease;
        transform: scale(0.8);
    }
    
    .video-card:hover .play-icon {
        transform: scale(1);
    }
    
    .video-info {
        padding: 1.5rem;
    }
    
    .video-title {
        font-weight: 700;
        font-size: 1.3rem;
        margin-bottom: 0.5rem;
        color: var(--text-dark);
        line-height: 1.4;
    }
    
    .video-series {
        color: var(--primary-color);
        font-weight: 600;
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }
    
    .video-meta {
        color: var(--dark-color);
        font-size: 0.9rem;
        display: flex;
        align-items: center;
    }
    
    .video-meta i {
        margin-right: 8px;
    }
    
    /* Style du carrousel */
    .carousel-section {
        padding: 100px 0;
        position: relative;
        overflow: hidden;
    }
    
    .carousel-section::before {
        content: '';
        position: absolute;
        top: -100px;
        right: -100px;
        width: 300px;
        height: 300px;
        border-radius: 50%;
        background: var(--gradient);
        opacity: 0.05;
        z-index: 0;
    }
    
    .carousel-video {
        border-radius: 20px;
        overflow: hidden;
        box-shadow: 0 25px 50px rgba(0,0,0,0.15);
        position: relative;
        height: 750px;
        cursor: pointer;
    }
    
    .carousel-video-thumb {
        height: 100%;
        width: 100%;
        object-fit: cover;
    }
    
    .carousel-overlay {
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        background: linear-gradient(to top, rgba(0,0,0,1) 35%, transparent 100%);
        padding: 40px 30px 30px;
        color: white;
        z-index: 5;
    }
    
    .carousel-title {
        font-size: 1.8rem;
        font-weight: 700;
        margin-bottom: 10px;
        font-family: 'Playfair Display', serif;
    }
    
    .carousel-series {
        font-size: 1.1rem;
        margin-bottom: 15px;
        opacity: 0.9;
    }
    
    .carousel-meta {
        display: flex;
        align-items: center;
        font-size: 0.95rem;
        opacity: 0.8;
    }
    
    .carousel-control-prev, .carousel-control-next {
        width: 60px;
        height: 60px;
        border-radius: 50%;
        background: rgba(255,255,255,0.9);
        top: 50%;
        transform: translateY(-50%);
        opacity: 0.8;
        transition: all 0.4s ease;
        z-index: 10;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    }
    
    .carousel-control-prev {
        left: 30px;
    }
    
    .carousel-control-next {
        right: 30px;
    }
    
    .carousel-control-prev:hover, .carousel-control-next:hover {
        opacity: 1;
        background: white;
        transform: translateY(-50%) scale(1.05);
    }
    
    .carousel-control-prev-icon, .carousel-control-next-icon {
        background-size: 24px 24px;
        color: var(--primary-color);
        filter: invert(27%) sepia(95%) saturate(2878%) hue-rotate(242deg) brightness(104%) contrast(107%);
    }
    
    .carousel-indicators {
        margin-bottom: 30px;
        z-index: 10;
    }
    
    .carousel-indicators button {
        width: 14px;
        height: 14px;
        border-radius: 50%;
        margin: 0 8px;
        background-color: rgba(255,255,255,0.5);
        border: 2px solid transparent;
        transition: all 0.3s ease;
    }
    
    .carousel-indicators .active {
        background-color: white;
        transform: scale(1.2);
    }
    
    /* Modal Style */
    .modal-content {
        border-radius: 20px;
        overflow: hidden;
        border: none;
    }
    
    .modal-header {
        border-bottom: none;
        padding: 1.5rem;
        background: var(--dark-color);
        color: white;
    }
    
    .btn-close {
        filter: invert(1);
        opacity: 0.8;
        transition: all 0.3s ease;
    }
    
    .btn-close:hover {
        opacity: 1;
        transform: rotate(90deg);
    }
    
    .modal-body {
        padding: 0;
    }
    
    .modal-video-container {
        width: 100%;
        height: 0;
        padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
        position: relative;
    }
    
    .modal-video-container iframe {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        border: none;
    }
    
    /* Responsive */
    @media (max-width: 992px) {
        .carousel-video {
            height: 400px;
        }
    }
    
    @media (max-width: 768px) {
        .section-title {
            font-size: 2.2rem;
        }
        
        .carousel-video {
            height: 350px;
        }
        
        .carousel-control-prev, .carousel-control-next {
            width: 50px;
            height: 50px;
        }
        
        .carousel-control-prev {
            left: 15px;
        }
        
        .carousel-control-next {
            right: 15px;
        }
        
        .carousel-title {
            font-size: 1.5rem;
        }
    }
    
    @media (max-width: 576px) {
        .carousel-video {
            height: 300px;
        }
        
        .carousel-title {
            font-size: 1.3rem;
        }
        
        .carousel-overlay {
            padding: 25px 20px 20px;
        }
        
        .video-thumbnail {
            height: 180px;
        }
    }
    
    /* Animation pour les cartes */
    @keyframes fadeIn {
        from { opacity: 0; transform: translateY(20px); }
        to { opacity: 1; transform: translateY(0); }
    }
    
    .video-card {
        animation: fadeIn 0.6s ease-out forwards;
    }
    
    .video-card:nth-child(2) {
        animation-delay: 0.2s;
    }
    
    .video-card:nth-child(3) {
        animation-delay: 0.4s;
    }

     @media (max-width: 989px) {
        .custom-title{
            font-size: 3rem;
            text-align: center;
        }

        .btn-play{
            flex-direction: column;
        }
        .premier-pas{
            margin: 5px;
        }
        .abonne-count{
            top: 160px;
        }
        .navbar-brand span{
            font-size: 25px;
        }
        .row-reverse-sm{
            flex-direction: column-reverse;
        }
        .custum-padding{
            margin-bottom: 3rem !important;
            text-align: center;
        }
        .about-content h3{
            text-align: center;
            font-size: 30px;
            margin-top: 15px;
        }
    }
     @media (max-width: 465px) {
        .custom-title{
            font-size: 2.5rem;
        }
        .abonne-count {
            top: 344px;
        }
        .glass-player{
            width: 90%!important;
        }
    }

