
/* --- Hero Section --- */
.hero {
    padding: 4rem 0 6rem;
    background: radial-gradient(circle at top right, rgba(242, 140, 40, 0.1), transparent 40%),
                radial-gradient(circle at bottom left, rgba(0, 128, 128, 0.05), transparent 40%);
    overflow: hidden;
}

.hero-container{
    margin: 0 0 0 100px;
    padding: 0;
}

.hero-grid {
    display: grid;
    gap: 8rem;
    align-items: center;
}

@media (min-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.hero-title {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .hero-title { 
        font-size: 3rem; 
    }
}

.hero-title span {
    color: var(--brand-orange);
}

.hero-title .highlight {
    color: var(--brand-teal);
}

.hero-desc {
    font-size: 1rem;
    color: var(--gray-600);
    margin-bottom: 2.5rem;
    margin-top: 2.5rem;
    max-width: 500px;
}

.hero-desc strong {
    font-weight: 900;
}

.hero-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 3rem;
}

.hero-btn-fill {
    background: linear-gradient(
        90deg,
        var(--brand-teal) 0%,
        var(--brand-orange) 70%,
        var(--brand-orange) 100%
    );
    color: var(--white);
    padding: 1rem 2rem;
    border-radius: 1rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: transform 0.2s ease;
}

.hero-btn-fill:hover {
    transform: translateY(-2px);
}

.hero-btn-outline {
    border: 2px solid var(--brand-teal);
    color: black;
    padding: 1rem 2rem;
    border-radius: 1rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.hero-btn-outline:hover {
    background-color: var(--brand-teal); /* 4. au hover le fond prend la couleur de la bordure */
    color: white; /* 5. texte en blanc pour contraster */
}

.social-proof {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.avatar-group {
    display: flex;
}

.avatar-group img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--white);
    margin-left: -12px;
    object-fit: cover;
}

.avatar-group img:first-child {
    margin-left: 0;
}

.proof-text .main {
    display: block;
    font-weight: 700;
    color: var(--gray-800);
    font-size: 0.875rem;
}

.proof-text .sub {
    display: block;
    color: var(--gray-500);
    font-size: 0.875rem;
}

.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
}

.blob-container {
    width: 100%;
    max-width: 500px;
    aspect-ratio: 1 / 1;
    background-color: var(--surface-container);
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    z-index: 20;
    animation: blob-morph 10s ease-in-out infinite alternate;
}

@keyframes blob-morph {
    0% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
    33% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
    66% { border-radius: 40% 60% 60% 40% / 50% 70% 30% 50%; }
    100% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
}

.blob-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Wave Effect */
.wave-wrapper {
    position: absolute;
    bottom: -42px;
    right: -64px;
    width: 120%;
    height: 150px;
    pointer-events: none;
    z-index: 10;
}

.floating-icon {
    position: absolute;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: var(--white);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.floating-icon.teal {
    width: 48px;
    height: 48px;
    background-color: var(--brand-teal);
    top: 90px;
    left: 0;
    z-index: 99;
    animation: bounce 3s infinite;
}

.floating-icon.teal .icon{
    width: 34px;
    height: auto;
}

.floating-icon.orange {
    width: 48px;
    height: 48px;
    background-color: var(--brand-orange);
    bottom: 90px;
    right: 0;
    z-index: 99;
    animation: bounce 2s infinite;
}

.floating-icon.orange .icon{
    width: 30px;
    height: auto;
}

@keyframes bounce {
    0%, 100% { 
        transform: translateY(0); 
    }
    50% { 
        transform: translateY(-10px); 
    }
}

/* --- Features Section --- */
.features {
    padding: 0 0 3rem 0;
    margin-top: -5rem;
    position: relative;
    z-index: 10;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .features-grid { 
        grid-template-columns: repeat(3, 1fr); 
    }
}

@media (min-width: 1024px) {
    .features-grid { 
        grid-template-columns: repeat(5, 1fr); 
    }
}

.border {
    border: 2px solid var(--gray-200);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06); /* ombre très douce */
    border-radius: 1.5rem; /* optionnel: rend l'ombre plus jolie */
}

.feature {
    width: 100%; /* il faut une largeur */
    margin: 0 auto; /* auto à gauche et droite */
}

.feature-card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 1.5rem;
    text-align: center;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-icon-wrapper {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 1rem;
}

.feature-icon-wrapper .icon {
    width: 40px;
    height: 40px;
}

.feature-icon-wrapper.teal { 
    background-color: #bce0d8; 
    color: var(--brand-teal); 
}

.feature-icon-wrapper.orange { 
    background-color: #fad68f; 
    color: var(--brand-orange); 
}

.feature-card h3 {
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.feature-card p {
    font-size: 0.65rem;
    color: var(--gray-800);
}

/* --- Stats Section --- */
.stats {
    padding: 1rem 0;
}

.stats-card{
    padding: 2rem;
    border-radius: 1.5rem;
    background-color: #ceecec;
}

.stat-item {
    display: flex;
    justify-content: center; /* centre horizontal */
    align-items: center;     /* centre vertical */
    height: auto; /* il faut une hauteur au parent */
    gap: 1rem;

}

.stat-item .icon{
    width: 56px;
    height: 56px;
    color: var(--brand-teal);
}

.stat-content .stat-num {
    font-size: 1.875rem;
    font-weight: 800;
    color: var(--brand-dark);
    line-height: 1.2;
}

.stat-content .stat-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gray-800);
}

/* --- Formations Section --- */
.section-padding { 
    padding: 1rem 0; 
}

.bg-light { 
    background-color: rgba(249, 250, 251, 0.5); 
}

.section-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    gap: 1rem;
}

@media (min-width: 768px) {
    .section-header { 
        flex-direction: row; 
    }
}

.section-title-wrap span {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--brand-orange);
    text-transform: uppercase;
    display: block;
    margin-bottom: 0.5rem;
}

.section-title {
    font-size: 1.3rem;
    font-weight: 800;
}

@media (min-width: 768px) {
    .section-title { 
        font-size: 2.25rem; 
    }
}

.btn-text {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-weight: 700;
    color: var(--gray-800);
    font-size: 0.8rem;
    padding: 0.8rem;
    border: 1px solid var(--brand-teal);
    border-radius: 0.5rem;
    transition: var(--transition);
}

.btn-text:hover {
    background-color: var(--brand-teal); /* 4. au hover le fond prend la couleur de la bordure */
    color: white; /* 5. texte en blanc pour contraster */
}

.formations-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .formations-grid { 
        grid-template-columns: repeat(3, 1fr); 
    }
}

@media (min-width: 1024px) {
    .formations-grid { 
        grid-template-columns: repeat(5, 1fr); 
    }
}

.formation-card {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 2.5rem;
    border: 1px solid var(--gray-100);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.04);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.formation-card:hover {
    border-color: var(--brand-teal);
}

.formation-icon {
    width: 48px;
    height: 48px;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--white);
}

.bg-teal-500 { 
    background-color: #14b8a6; 
}

.bg-orange-500 { 
    background-color: #f97316; 
}

.bg-teal-600 { 
    background-color: #0d9488; 
}

.bg-orange-600 { 
    background-color: #ea580c; 
}

.bg-blue-600 { 
    background-color: #2563eb; 
}

.formation-card h3 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.formation-card p {
    font-size: 0.875rem;
    color: var(--gray-500);
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.learn-more {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--brand-teal);
    font-weight: 700;
    font-size: 0.875rem;
    transition: transform 0.2s;
}

.formation-card:hover .learn-more {
    transform: translateX(4px);
}

/* --- Projects Section --- */
.projects-scroll {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    padding-bottom: 2rem;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.projects-scroll::-webkit-scrollbar {
    display: none;
}

.project-card {
    max-width: 280px;
    background-color: var(--white);
    border-radius: 2rem;
    overflow: hidden;
    border: 1px solid var(--gray-100);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.05);
}

@media (min-width: 768px) {
    .project-card { 
        max-width: 300px; 
    }
}

.project-img {
    height: 200px;
    overflow: hidden;
}

.project-img img {
    max-width: fit-content;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-content {
    padding: 1.5rem;
}

.project-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.project-header h3 {
    font-size: 1.25rem;
    font-weight: 700;
}

.tag {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
}

.tag.teal { 
    background-color: #f0fdfa; 
    color: var(--brand-teal); 
}

.tag.orange { 
    background-color: #fffaf0; 
    color: var(--brand-orange); 
}

.tag.blue { 
    background-color: #eff6ff; 
    color: #2563eb; 
}

.project-content p {
    font-size: 0.875rem;
    color: var(--gray-500);
    margin-bottom: 1.5rem;
}

.project-footer {
    padding-top: 1.5rem;
    border-top: 1px solid var(--gray-100);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.project-footer img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

.project-footer span {
    font-size: 0.875rem;
    font-weight: 700;
}

/* --- Testimonials --- */
.text-center { 
    text-align: center; 
}

.mx-auto { 
    margin-left: auto; 
    margin-right: auto; 
}

.testimonials-scroll {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    padding-bottom: 2rem;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.testimonials-scroll::-webkit-scrollbar {
    display: none;
}

.testimonial-card {
    display: flex;
    overflow: hidden;
    background-color: var(--white);
    padding: 2rem;
    border-radius: 2rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--gray-100);
}

.testimonial-card p {
    font-style: italic;
    font-weight: 300;
    color: var(--gray-600);
    margin-bottom: 2rem;
}

.cote{
    color: #008080;
}

.author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.testimonial-card img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    object-position: center;
    border-radius: 50%;
    border: 2px solid var(--brand-teal);
    flex-shrink: 0;
}

.author.orange img {
    border-color: var(--brand-orange);
}

.author-info h4 {
    font-size: 0.875rem;
    font-weight: 700;
}

.author-info p {
    font-size: 0.75rem;
    color: var(--gray-500);
    margin-bottom: 0;
    font-style: normal;
}

/* ===== RESPONSIVE OVERRIDES ===== */

/* 1. HERO */
.hero-container{
    margin: 0 auto; /* supprime le 100px fixe */
    padding: 0 1.5rem;
}

.hero-grid {
    grid-template-columns: 1fr; /* mobile first */
    gap: 3rem;
}

@media (min-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr 1fr;
        gap: 8rem;
    }
}

.hero-btns {
    justify-content: center;
}
@media (min-width: 1024px) {
    .hero-btns { justify-content: flex-start; }
}

.hero-visual { 
    order: -1; /* image au dessus sur mobile */
}
@media (min-width: 1024px) {
    .hero-visual { order: 0; }
}

.blob-container {
    max-width: 350px;
    margin: 0 auto;
}
@media (min-width: 1024px) {
    .blob-container { max-width: 500px; }
}

.wave-wrapper {
    bottom: -20px;
    right: 0;
    width: 100%;
}
@media (min-width: 1024px) {
    .wave-wrapper {
        bottom: -42px;
        right: -64px;
        width: 120%;
    }
}

.floating-icon.teal { top: 20px; left: 10px; }
.floating-icon.orange { bottom: 20px; right: 10px; }
@media (min-width: 1024px) {
    .floating-icon.teal { top: 90px; left: 0; }
    .floating-icon.orange { bottom: 90px; right: 0; }
}

/* 4. SECTIONS GENERALES */
.section-padding { padding: 3rem 0; }
@media (min-width: 768px) { .section-padding { padding: 5rem 0; } }

.section-title { font-size: 1.75rem; }
@media (min-width: 768px) { .section-title { font-size: 2.25rem; } }

/* 5. FORMATIONS */
.formations-grid {
    grid-template-columns: 1fr;
}
@media (min-width: 768px) {
    .formations-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1200px) {
    .formations-grid { grid-template-columns: repeat(5, 1fr); }
}

/* 6. PROJECTS + TESTIMONIALS SCROLL */
.projects-scroll, .testimonials-scroll {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 85%; /* 1 carte visible + un bout de la suivante */
    gap: 1.5rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 1rem 0 2rem;
}
@media (min-width: 768px) {
    .projects-scroll, .testimonials-scroll {
        grid-auto-columns: 320px;
    }
}
.project-card, .testimonial-card { scroll-snap-align: start; }

/* 7. CTA */
.cta-banner { 
    flex-direction: column; 
    text-align: center;
    padding: 2rem 1.5rem;
}
@media (min-width: 768px) {
    .cta-banner { 
        flex-direction: row; 
        text-align: left;
        padding: 3rem;
    }
}

/* 8. UTILS MOBILE */
@media (max-width: 640px) {
    .hero-btn-fill, .hero-btn-outline { width: 100%; justify-content: center; }
    .social-proof { flex-direction: column; }
}