/* ============================================
   IDSW Institut - Styles Page d'Accueil
   ============================================ */

/* Variables */
:root {
    --black: #000000;
    --red: #DD0000;
    --gold: #FFCC00;
    --green: #2E7D32;
    --green-light: #4CAF50;
    --green-dark: #1B5E20;
    --white: #FFFFFF;
    --gray-100: #F5F5F5;
    --gray-200: #E0E0E0;
    --gray-300: #BDBDBD;
    --gray-600: #757575;
    --gray-800: #333333;
    --font-primary: 'Poppins', sans-serif;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 30px rgba(0,0,0,0.15);
    --shadow-xl: 0 20px 60px rgba(0,0,0,0.2);
    --transition: all 0.3s ease;
    --radius-sm: 8px;
    --radius-md: 15px;
    --radius-lg: 25px;
}

/* ============================================
   HERO SLIDER
   ============================================ */
.hero-slider {
    position: relative;
    height: 100vh;
    min-height: 700px;
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    z-index: 1;
}

.hero-slide.active {
    opacity: 1;
    z-index: 2;
}

.hero-slide-content {
    max-width: 900px;
    color: var(--white);
    padding: 40px 0;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 25px;
    line-height: 1.2;
    text-transform: uppercase;
    background: linear-gradient(to right, var(--white), var(--gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-text {
    font-size: 1.25rem;
    margin-bottom: 35px;
    line-height: 1.8;
    opacity: 0.95;
    font-weight: 400;
}

.hero-text-large {
    font-size: 1.3rem;
    margin-bottom: 35px;
    line-height: 1.8;
    opacity: 0.95;
}

/* Hero Points (Slide 2) */
.hero-points {
    margin-bottom: 35px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.hero-point {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    background: rgba(255, 255, 255, 0.1);
    padding: 18px 25px;
    border-radius: var(--radius-sm);
    backdrop-filter: blur(10px);
    border-left: 4px solid var(--gold);
    transition: var(--transition);
}

.hero-point:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateX(10px);
    border-left-color: var(--red);
}

.hero-point i {
    font-size: 1.5rem;
    color: var(--gold);
    flex-shrink: 0;
    margin-top: 3px;
}

.hero-point p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin: 0;
}

/* Hero Buttons */
.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.btn-hero {
    padding: 15px 30px;
    font-size: 1.05rem;
    font-weight: 600;
    border-radius: 50px;
    transition: var(--transition);
}

.btn-primary {
    background: linear-gradient(135deg, var(--red), #C62828);
    color: var(--white);
    text-decoration: none;
    border: none;
    box-shadow: 0 6px 20px rgba(221, 0, 0, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #C62828, var(--red));
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(221, 0, 0, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    text-decoration: none;
    border: 2px solid var(--white);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--black);
    transform: translateY(-3px);
}

.btn-outline {
    background: transparent;
    color: var(--gold);
    text-decoration: none;
    border: 2px solid var(--gold);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-outline:hover {
    background: var(--gold);
    color: var(--black);
    transform: translateY(-3px);
}

/* Slider Navigation */
.slider-nav {
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 30px;
    z-index: 10;
}

.slider-prev,
.slider-next {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid var(--white);
    color: var(--white);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: var(--transition);
    backdrop-filter: blur(10px);
}

.slider-prev:hover,
.slider-next:hover {
    background: var(--white);
    color: var(--black);
    transform: scale(1.1);
}

.slider-dots {
    display: flex;
    gap: 12px;
}

.dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

.dot.active {
    background: var(--gold);
    border-color: var(--white);
    transform: scale(1.3);
}

.dot:hover {
    background: rgba(255, 255, 255, 0.8);
}

/* Hero Wave */
.hero-wave {
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    z-index: 5;
}

.hero-wave svg {
    display: block;
}

/* ============================================
   PROCESS SECTION
   ============================================ */
.process-section {
    padding: 100px 0;
    background-color: var(--white);
    position: relative;
}

.section-title {
    text-align: center;
    font-size: 2.8rem;
    font-weight: 900;
    margin-bottom: 20px;
    color: var(--black);
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 100px;
    height: 5px;
    background: linear-gradient(to right, var(--black), var(--red), var(--gold));
    margin: 20px auto;
    border-radius: 3px;
}

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

.text-white::after {
    background: linear-gradient(to right, var(--white), var(--gold), var(--white));
}

.process-steps {
    max-width: 1000px;
    margin: 60px auto 0;
    position: relative;
}

.process-steps::before {
    content: '';
    position: absolute;
    left: 35px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, var(--black), var(--red), var(--gold));
    border-radius: 2px;
}

.process-step {
    display: flex;
    gap: 40px;
    margin-bottom: 50px;
    position: relative;
}

.process-step:last-child {
    margin-bottom: 0;
}

.step-number {
    flex-shrink: 0;
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--black), var(--red));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    box-shadow: var(--shadow-lg);
    border: 3px solid var(--white);
}

.step-number span {
    color: var(--white);
    font-size: 1.8rem;
    font-weight: 900;
}

.step-content {
    background: var(--white);
    padding: 35px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    flex: 1;
    transition: var(--transition);
    border-left: 4px solid var(--gold);
}

.step-content:hover {
    box-shadow: var(--shadow-xl);
    transform: translateX(10px);
    border-left-color: var(--red);
}

.step-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--gold), #FFD700);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 1.5rem;
    color: var(--black);
}

.step-content h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--black);
}

.step-content p {
    color: var(--gray-600);
    line-height: 1.8;
    font-size: 1.05rem;
}

/* ============================================
   CTA BUTTONS SECTION
   ============================================ */
.cta-buttons-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--black) 0%, #1a1a1a 50%, var(--green-dark) 100%);
    position: relative;
}

.cta-buttons-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><rect width="100" height="100" fill="none" stroke="rgba(255,204,0,0.1)" stroke-width="0.5"/></svg>') repeat;
    opacity: 0.3;
}

.cta-buttons-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
    position: relative;
    z-index: 1;
}

.cta-card {
    background: rgba(255, 255, 255, 0.08);
    padding: 50px 30px;
    border-radius: var(--radius-md);
    text-align: center;
    color: var(--white);
    text-decoration: none;
    transition: var(--transition);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    display: block;
}

.cta-card:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-15px);
    border-color: var(--gold);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.cta-card-icon {
    width: 90px;
    height: 90px;
    margin: 0 auto 25px;
    background: linear-gradient(135deg, var(--red), var(--gold));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    color: var(--white);
    transition: var(--transition);
}

.cta-card:hover .cta-card-icon {
    transform: rotate(360deg);
    background: linear-gradient(135deg, var(--gold), var(--red));
}

.cta-card h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.cta-card p {
    opacity: 0.8;
    font-size: 1rem;
}

/* ============================================
   STATISTICS SECTION
   ============================================ */
.statistics-section {
    padding: 100px 0;
    background-color: var(--gray-100);
}

.stats-grid-new {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 60px;
}

.stat-card {
    background: var(--white);
    padding: 50px 30px;
    border-radius: var(--radius-md);
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(to right, var(--black), var(--red), var(--gold));
    transform: scaleX(0);
    transition: transform 0.5s ease;
}

.stat-card:hover::before {
    transform: scaleX(1);
}

.stat-card:hover {
    transform: translateY(-15px);
    box-shadow: var(--shadow-xl);
}

.stat-icon-wrapper {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    background: linear-gradient(135deg, var(--red), #C62828);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--white);
}

.stat-number-counter {
    font-size: 4rem;
    font-weight: 900;
    color: var(--black);
    display: inline-block;
}

.stat-plus,
.stat-percent {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--red);
    display: inline-block;
    margin-left: 5px;
}

.stat-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin: 15px 0;
    color: var(--black);
}

.stat-card p {
    color: var(--gray-600);
    line-height: 1.7;
}

/* ============================================
   EVENTS & NEWSLETTER SECTION
   ============================================ */
.events-newsletter-section {
    padding: 100px 0;
    background-color: var(--white);
}

.events-newsletter-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 60px;
}

/* Event Card */
.event-card {
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.event-card:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-5px);
}

.event-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.event-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.event-card:hover .event-image img {
    transform: scale(1.1);
}

.event-date-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--red);
    color: var(--white);
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    text-align: center;
    font-weight: 700;
    box-shadow: var(--shadow-lg);
}

.event-day {
    display: block;
    font-size: 2rem;
    line-height: 1;
}

.event-month {
    display: block;
    font-size: 0.9rem;
    text-transform: uppercase;
}

.event-info {
    padding: 30px;
}

.event-label {
    display: inline-block;
    background: var(--gray-100);
    color: var(--red);
    padding: 8px 15px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.event-label i {
    margin-right: 8px;
}

.event-info h3 {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--black);
}

.event-info p {
    color: var(--gray-600);
    line-height: 1.8;
    margin-bottom: 25px;
}

/* Newsletter Card */
.newsletter-card {
    background: linear-gradient(135deg, var(--black), #2A2A2A);
    border-radius: var(--radius-md);
    padding: 50px 40px;
    color: var(--white);
    box-shadow: var(--shadow-lg);
}

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

.newsletter-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    background: linear-gradient(135deg, var(--gold), #FFD700);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--black);
}

.newsletter-content h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.newsletter-subtitle {
    font-size: 1.1rem;
    color: var(--gold);
    margin-bottom: 15px;
}

.newsletter-content > p {
    opacity: 0.9;
    line-height: 1.7;
    margin-bottom: 30px;
}

.form-group-newsletter {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
}

.form-group-newsletter input {
    flex: 1;
    padding: 15px 20px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    font-size: 1rem;
    font-family: var(--font-primary);
    transition: var(--transition);
}

.form-group-newsletter input:focus {
    outline: none;
    border-color: var(--gold);
    background: rgba(255, 255, 255, 0.15);
}

.form-group-newsletter input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.newsletter-features {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.newsletter-features span {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    opacity: 0.8;
}

.newsletter-features i {
    color: var(--green-light);
}

/* ============================================
   MAP SECTION
   ============================================ */
.map-section {
    padding: 0;
}

.map-container-full {
    width: 100%;
    height: 450px;
    line-height: 0;
}

.map-container-full iframe {
    width: 100%;
    height: 450px;
}

/* ============================================
   ANIMATIONS
   ============================================ */
.animated {
    animation: fadeInUp 0.8s ease forwards;
}

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

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 2.8rem;
    }
    
    .stats-grid-new {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stat-card:last-child {
        grid-column: span 2;
        max-width: 400px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .hero-slider {
        min-height: 600px;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-text,
    .hero-text-large {
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .btn-hero {
        width: 100%;
        justify-content: center;
    }
    
    .process-steps::before {
        left: 25px;
    }
    
    .process-step {
        flex-direction: column;
        gap: 20px;
    }
    
    .step-number {
        width: 50px;
        height: 50px;
        margin-left: 0;
    }
    
    .step-number span {
        font-size: 1.3rem;
    }
    
    .cta-buttons-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid-new {
        grid-template-columns: 1fr;
    }
    
    .stat-card:last-child {
        grid-column: span 1;
        max-width: 100%;
    }
    
    .events-newsletter-grid {
        grid-template-columns: 1fr;
    }
    
    .form-group-newsletter {
        flex-direction: column;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .slider-nav {
        bottom: 100px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-point {
        padding: 12px 18px;
    }
    
    .hero-point p {
        font-size: 0.95rem;
    }
    
    .step-content {
        padding: 20px;
    }
    
    .stat-number-counter {
        font-size: 3rem;
    }
    
    .newsletter-features {
        flex-direction: column;
        align-items: center;
    }
}