/* Reset et variables */
:root {
    --primary-color: #c4158f;      /* Rose/Magenta du logo */
    --secondary-color: #e91e8c;    /* Rose plus clair */
    --accent-color: #9b1272;       /* Rose plus foncé */
    --dark-color: #2c3e50;
    --light-color: #fcf0f7;        /* Rose très clair pour les backgrounds */
    --white: #ffffff;
    --text-color: #333333;
    --gray: #7f8c8d;
    --success: #27ae60;
    --danger: #e74c3c;
    --shadow: 0 2px 10px rgba(196, 21, 143, 0.15);
    --shadow-hover: 0 5px 20px rgba(196, 21, 143, 0.25);
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Barre supérieure */
.top-bar {
    background-color: var(--dark-color);
    color: var(--white);
    padding: 10px 0;
    font-size: 14px;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar a {
    color: var(--white);
    text-decoration: none;
    margin-right: 20px;
    transition: color 0.3s;
}

.top-bar a:hover {
    color: var(--secondary-color);
}

.top-bar i {
    margin-right: 5px;
}

.social-link {
    margin-left: 10px !important;
    margin-right: 0 !important;
}

/* Header et Navigation */
.main-header {
    background-color: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-image {
    height: 60px;
    width: auto;
    transition: transform 0.3s;
}

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

.logo h1 {
    color: var(--primary-color);
    font-size: 24px;
}

.logo a {
    text-decoration: none;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary-color);
}

.nav-menu a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
}


.menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    color: var(--white);
    padding: 100px 0;
    text-align: center;
}

.hero-title {
    font-size: 48px;
    margin-bottom: 20px;
    animation: fadeInUp 1s;
}

.hero-subtitle {
    font-size: 24px;
    margin-bottom: 40px;
    opacity: 0.9;
    animation: fadeInUp 1s 0.2s backwards;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-bottom: 40px;
    animation: fadeInUp 1s 0.4s backwards;
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 48px;
    font-weight: bold;
    color: var(--secondary-color);
}

.stat-label {
    font-size: 16px;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    animation: fadeInUp 1s 0.6s backwards;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s;
    font-weight: 500;
    border: none;
    cursor: pointer;
}

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

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

.btn-secondary {
    background-color: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-secondary:hover {
    background-color: var(--white);
    color: var(--primary-color);
}

.btn-link {
    background-color: transparent;
    color: var(--primary-color);
    padding: 5px 0;
}

.btn-link:hover {
    color: var(--secondary-color);
}

.btn-large {
    padding: 15px 40px;
    font-size: 18px;
}

/* Sections */
.section {
    padding: 80px 0;
}

.section-alt {
    background-color: var(--light-color);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 36px;
    color: var(--dark-color);
    margin-bottom: 15px;
}

.section-header p {
    font-size: 18px;
    color: var(--gray);
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-card {
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s;
    box-shadow: var(--shadow);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--white);
    font-size: 32px;
}

.feature-card h3 {
    color: var(--dark-color);
    margin-bottom: 15px;
}

.feature-card p {
    color: var(--gray);
}

/* Formations Grid */
.formations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.formation-card {
    background: var(--white);
    border-radius: 10px;
    padding: 30px;
    box-shadow: var(--shadow);
    transition: all 0.3s;
    position: relative;
}

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

.formation-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
}

.formation-card h3 {
    color: var(--dark-color);
    margin-bottom: 15px;
    font-size: 20px;
}

.formation-card p {
    color: var(--gray);
    margin-bottom: 20px;
}

.formation-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--light-color);
}

.formation-info span {
    color: var(--gray);
    font-size: 14px;
}

.formation-info i {
    color: var(--primary-color);
    margin-right: 5px;
}

/* Testimonials */
.testimonials-slider {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.testimonial-stars {
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.testimonial-text {
    font-style: italic;
    color: var(--gray);
    margin-bottom: 20px;
    line-height: 1.8;
}

.testimonial-author {
    display: flex;
    flex-direction: column;
}

.testimonial-author strong {
    color: var(--dark-color);
    margin-bottom: 5px;
}

.testimonial-author span {
    color: var(--gray);
    font-size: 14px;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    color: var(--white);
    text-align: center;
}

.cta-content h2 {
    font-size: 36px;
    margin-bottom: 20px;
}

.cta-content p {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.9;
}

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

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

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 20px;
    color: var(--secondary-color);
}

.footer-section h3 a,
.footer-section h4 a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section h3 a:hover,
.footer-section h4 a:hover {
    color: var(--white);
}

.footer-certifications {
    margin-top: 15px;
    display: block;
    visibility: visible;
}

.footer-certifications * {
    visibility: visible;
}

.certifications-banner {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    flex-wrap: wrap;
    max-width: 100%;
}

.cert-left-wrapper {
    display: flex;
    flex-direction: column;
    position: relative;
}

.cert-label-top {
    color: #888;
    font-size: 9px;
    margin-bottom: 6px;
    font-family: Arial, sans-serif;
    white-space: nowrap;
    display: block;
}

.cert-bureau-container {
    position: relative;
    display: flex;
    align-items: flex-start;
}

.cert-bureau-block {
    background-color: #c41e3a;
    color: var(--white);
    padding: 10px 14px;
    border-radius: 4px;
    position: relative;
    z-index: 1;
    min-width: 150px;
    margin-right: -25px;
    display: block;
}

.cert-bureau-text {
    display: flex;
    flex-direction: column;
    font-size: 8px;
    line-height: 1.5;
    font-family: Arial, sans-serif;
}

.cert-bureau-text span {
    font-size: 7px;
}

.cert-bureau-text strong {
    font-size: 12px;
    font-weight: bold;
    margin: 4px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cert-bureau-logo {
    position: relative;
    z-index: 2;
    width: 75px;
    height: 75px;
    flex-shrink: 0;
}

.bureau-logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.bureau-logo-img[src=""],
.bureau-logo-img:not([src]) {
    display: none;
}

.cert-right-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.cert-qualiopi {
    display: flex;
    flex-direction: column;
}

.qualiopi-logo-img {
    max-width: 160px;
    height: auto;
    object-fit: contain;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
}

.qualiopi-logo-img[src=""],
.qualiopi-logo-img:not([src]) {
    display: none;
}

@media (max-width: 768px) {
    .certifications-banner {
        flex-direction: column;
        gap: 15px;
    }
    
    .cert-bureau-container {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .cert-bureau-block {
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    .cert-bureau-logo {
        align-self: center;
    }
    
    .qualiopi-logo-img {
        max-width: 140px;
    }
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: var(--secondary-color);
}

.contact-info i {
    margin-right: 10px;
    color: var(--secondary-color);
}

.success-rate {
    background-color: rgba(233, 30, 140, 0.15);
    padding: 10px;
    border-radius: 5px;
    margin-top: 15px;
}

.success-rate i {
    color: var(--secondary-color);
    margin-right: 10px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s;
}

.social-links a:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
}

.footer-logo-section {
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-logo {
    height: 40px;
    width: auto;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.footer-logo:hover {
    opacity: 1;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
}

.footer-bottom p {
    margin-bottom: 10px;
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mt-4 {
    margin-top: 40px;
}

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

/* Responsive */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--white);
        flex-direction: column;
        padding: 20px;
        box-shadow: var(--shadow);
        display: none;
    }

    .nav-menu.active {
        display: flex;
    }

    .hero-title {
        font-size: 32px;
    }

    .hero-subtitle {
        font-size: 18px;
    }

    .hero-stats {
        flex-direction: column;
        gap: 30px;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .section-header h2 {
        font-size: 28px;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .footer-logo-section {
        order: 5; /* Logo en dernière position sur mobile */
    }

    .footer-logo {
        height: 35px;
    }
}
