/* ========== RESPONSIVE ========== */
/* Breakpoints organisés du plus grand au plus petit. */

/* ========== <= 1200px ========== */
@media (min-width: 1200px) and (max-width: 1281px) {
    .soutenir-cta-content .title {
        font-size: 42px !important;
        letter-spacing: 0.84px !important;
    }
}

@media (max-width: 1200px) {
    .container {
        width: 90% !important;
        margin: auto;
    }

    .hero {
        padding: 120px 0 0 0px;
    }

    .hero-container {
        grid-template-columns: 1.3fr 1fr;
        gap: 10px;
        padding-top: 50px;
    }

    .hero .title {
        font-size: 44px;
        line-height: 49px;
        letter-spacing: -0.88px;
    }

    .hero-visual {
        margin-top: -40px;
    }

    .hero-buttons {
        margin-bottom: 40px;
    }

    .hero-content {
        width: 100%;
    }

    .site-header {
        padding: 15px 0px;
    }

    .hero-container.pt-50 {
        padding-top: 0px !important;
    }

    .vision-section.pt-150 {
        padding-top: 100px !important;
    }

    .programme-dap-container,
    .footer-container {
        width: 90%;
        margin-left: auto;
        margin-right: auto;
    }
}

/* ========== <= 1024px ========== */
@media (min-width: 992px) and (max-width: 1180px) {
    .main-nav ul {
        gap: 1.2rem;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .stats-title {
        font-size: 1.8rem;
    }

    .bio-grid {
        grid-template-columns: 280px 1fr;
        gap: 40px;
    }

    .hero {
        padding-top: 150px;
        background-position: left center !important;
    }

    .soutenir-cta-container,
    .soutenir-cta-container.cta-programme {
        min-height: auto;
        border-radius: 16px;
        background-position: left center !important;
        background-size: auto !important;
    }

    .soutenir-cta {
        padding-left: 15px;
        padding-right: 15px;
    }

    .soutenir-cta-content {
        max-width: 100%;
        padding: 3rem;
        text-align: center;
    }

    .soutenir-cta-content .cta-text {
        max-width: 100%;
        text-align: center;
    }

    .soutenir-cta-content .cta-buttons {
        justify-content: center;
    }

    .programme-dap-container {
        flex-direction: column;
        gap: 2rem;
        align-items: center;
    }

    .programme-dap-left {
        flex: auto;
    }

    .programme-dap-right {
        flex: auto;
        width: 100%;
        margin: 0 auto;
    }

    .programme-card {
        text-align: center;
    }

    .programme-dap-quote {
        padding-left: 0;
        border-left: none;
    }

    .programme-stats-badge {
        margin: 0 auto 2rem auto;
    }

    .programme-dap-buttons {
        justify-content: center;
    }

    .vision-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .banner.candidate .hero-background,
    .banner.programme .hero-background {
        background-position: left center !important;
        background-size: 200% auto !important;
    }

    .banner .hero-title {
        text-align: center;
    }

    .banner .hero-subtitle {
        text-align: center;
    }

    .banner .hero-quote {
        max-width: 100%;
        text-align: center;
    }

    .banner .hero-left {
        width: 100%;
    }

    .banner .hero-wrapper {
        flex-direction: column;
        gap: 2rem;
        padding: 15rem 1.5rem 8rem 1.5rem;
    }

    .footer-top {
        flex-wrap: nowrap;
    }
}

/* ========== <= 991px ========== */
@media (max-width: 991px) {

    .hero {
        min-height: auto;
        padding: 180px 0 0 0px;
        background-position: left center !important;
    }

    .hero-container {
        grid-template-columns: 1fr;
        gap: 30px;
        padding-top: 0 !important;
    }

    .hero-content {
        width: 100%;
    }

    .hero-description {
        max-width: 100%;
    }

    .hero-visual {
        justify-content: center;
        margin-right: 0;
        margin-top: 0;
    }

    .hero-visual img {
        width: 100%;
        max-width: 620px;
    }

    .banner {
        min-height: auto;
        padding: 0 0 3rem 0;
    }

    .banner .hero-wrapper {
        flex-direction: column;
        gap: 2rem;
        padding: 15rem 1.5rem 8rem 1.5rem;
    }

    .banner .hero-left {
        width: 100%;
    }

    .banner .hero-title {
        font-size: 40px;
        line-height: 48px;
        letter-spacing: -0.8px;
        text-align: center;
    }

    .banner .hero-subtitle {
        font-size: 18px;
        line-height: 28px;
        letter-spacing: -0.36px;
        text-align: center;
    }

    .banner .hero-quote {
        max-width: 100%;
        text-align: center;
    }

    .banner .hero-right {
        display: none;
    }

    .banner.candidate .hero-background,
    .banner.programme .hero-background {
        background-position: left center !important;
        background-size: auto;
    }

    .vision-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .programme-dap-container {
        flex-direction: column;
        gap: 2rem;
        align-items: center;
    }

    .programme-dap-left {
        flex: auto;
    }

    .programme-dap-right {
        flex: auto;
        width: 100%;
        margin: 0 auto;
    }

    .programme-card {
        text-align: center;
    }

    .programme-dap-quote {
        padding-left: 0;
        border-left: none;
    }

    .programme-stats-badge {
        margin: 0 auto 2rem auto;
    }

    .programme-dap-buttons {
        justify-content: center;
    }

    .soutenir-cta-container {
        background-position: left;
    }

    .soutenir-cta-container,
    .soutenir-cta-container.cta-programme {
        min-height: auto;
        border-radius: 16px;
        background-position: left center !important;
        background-size: auto;
    }

    .soutenir-cta-container::before {
        width: 100%;
        background: linear-gradient(135deg,
                rgba(0, 0, 0, 0.85) 0%,
                rgba(0, 0, 0, 0.7) 100%);
    }

    .soutenir-cta {
        padding-left: 15px;
        padding-right: 15px;
    }

    .soutenir-cta-content {
        max-width: 100%;
        padding: 3rem;
        text-align: center;
    }

    .soutenir-cta-content .cta-text {
        max-width: 100%;
        text-align: center;
    }

    .soutenir-cta-content .cta-buttons {
        justify-content: center;
    }

    .cta-title span::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .programme-dap-right {
        min-width: 0 !important;
    }

    .header-container {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .footer-top,
    .footer-bottom {
        justify-content: center;
    }

    .footer-links {
        justify-content: center;
        gap: 80px;
    }

    .couv-img-small {
        max-width: 100%;
    }

    .programme-download-btn {
        display: flex;
        width: 100%;
        justify-content: center;
        text-align: center;
    }

    .bio-grid {
        display: flex;
        flex-direction: column;
        gap: 40px;
    }

    .bio-image-col {
        width: 100%;
        margin: 0 auto;
        position: static;
    }

    .bio-image-wrapper {
        max-height: none;
    }

    .bio-portrait {
        width: 100%;
        height: auto;
        display: block;
    }

    .bio-content-col {
        width: 100%;
    }

    .bio-intro,
    .recognitions-section {
        text-align: left;
    }

    .citation-text br {
        display: none;
    }

    .citation-text {
        font-size: 40px;
        line-height: 50px;
        font-weight: 700;
        color: white;
        margin-bottom: 32px;
        letter-spacing: -0.96px;
    }

    .footer-nws-br {
        display: none;
    }

    .video-header .title br {
        display: none;
    }
}

/* ========== <= 850px ========== */
@media (max-width: 850px) {

    /* Burger visible */
    .mobile-toggle {
        display: flex;
    }

    /* Nav desktop cachée */
    .main-nav {
        display: none;
    }

    /* Overlay activé */
    .nav-overlay {
        display: grid;
    }

    .ambassadeur-layout {
        flex-direction: column;
    }

    .ambassadeur-layout .ambassadeur-form {
        width: 100%;
    }

    .ambassadeur-image {
        min-height: 300px;
    }

    .contact-layout {
        flex-direction: column;
    }

    .contact-layout .contact-form {
        width: 100%;
    }

    .contact-image-wrapper {
        width: 100%;
        min-height: 300px;
    }

    .header-actions {
        display: none;
    }

    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}


/* ========== <= 767px ========== */
@media (max-width: 767px) {

    /* Ancien breakpoint : max-width 768px */
    .pt-150 {
        padding-top: 80px !important;
    }

    .pt-100 {
        padding-top: 60px !important;
    }

    .pt-70 {
        padding-top: 40px !important;
    }

    .space-100 {
        height: 60px !important;
    }

    .space-50 {
        height: 30px !important;
    }

    /* CTA card : marges latérales sur mobile */
    .soutenir-cta {
        padding-left: 20px;
        padding-right: 20px;
    }

    /* newsletter-form input width */
    .newsletter-form input {
        width: 200px;
    }

    /* cta-text pleine largeur */
    .cta-text {
        max-width: 100%;
    }

    .header-container {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .hero {
        padding: 160px 0 0 0px;
    }

    .hero .title {
        font-size: 42px;
        line-height: 48px;
    }

    .hero .title br {
        display: none;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .hero-buttons a {
        width: 100%;
        justify-content: center;
        text-align: center;
    }

    .hero-visual img {
        max-width: 520px;
    }

    .header-actions {
        display: none;
    }

    .banner.candidate .hero-background {
        background-position: left !important;
    }

    .banner.programme .hero-background {
        background-position: left center !important;
        background-size: 200% auto !important;
    }

    .footer-logo {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-logo img {
        margin: 0 auto 15px;
    }

    .footer-slogan-top {
        font-size: 16px;
        line-height: 26px;
        letter-spacing: -0.32px;
        text-align: center;
    }

    .footer-nws-br {
        display: none;
    }

    .contact-form {
        width: 100%;
    }

    .contact-form-row {
        flex-direction: column;
        gap: 16px;
    }

    .contact-form-group {
        width: 100%;
    }

    .contact-form input,
    .contact-form select,
    .contact-form textarea {
        width: 100%;
    }

    .contact-form select {
        height: 52px;
        font-size: 14px;
        padding: 0 14px;
    }

    .contact-form .btn-primary {
        width: 100%;
        justify-content: center;
    }

    .site-header .logo img {
        width: 100px;
    }

    .btn-primary,
    .btn-tridary {
        max-width: 100%;
        font-size: 16px;
        line-height: 26px;
    }

    .footer-logo img {
        width: 150px;
    }

    .cta-buttons {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    .cta-buttons .btn-primary,
    .cta-buttons .btn-tridary {
        width: 100%;
        justify-content: center;
        text-align: center;
    }

    .programme-download-btn {
        display: flex;
        width: 100%;
        justify-content: center;
        text-align: center;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ========== <= 700px ========== */
@media (max-width: 700px) {
    .section-ambassadeur h2 {
        font-size: 1.8rem;
    }

    .section-ambassadeur .container {
        padding: 1.5rem;
    }

    .ambassadeur-form {
        padding: 1.5rem;
    }
}

/* ========== <= 640px ========== */
@media (max-width: 640px) {
    .vision-grid {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }

    .card-icon {
        width: 60px;
        height: 60px;
    }

    .card-icon i {
        font-size: 1.6rem;
    }
}

/* ========== <= 576px ========== */
@media (max-width: 576px) {

    /* Ancien breakpoint : max-width 500px */
    .nav-overlay {
        grid-template-columns: 1fr;
        grid-template-rows: 1fr auto;
    }

    .overlay-right {
        padding: 30px 30px 40px;
    }

    .overlay-left {
        padding: 60px 30px 30px;
    }

    .hero .title {
        font-size: 31px;
        line-height: 38px;
        letter-spacing: -0.64px;
    }

    .hero .title br {
        display: none;
    }

    .hero-description {
        max-width: 100%;
    }

    .hero {
        min-height: 900px !important;
    }

    .hero {
        background-position: left;
    }

    .banner .hero-title {
        font-size: 32px;
        line-height: 38px;
        letter-spacing: -0.64px;
        text-align: center;
    }

    .banner .hero-subtitle {
        font-size: 16px;
        line-height: 26px;
        letter-spacing: -0.32px;
        text-align: center;
    }

    .banner .hero-quote {
        flex-direction: column;
        text-align: center;
        padding: 1.2rem;
    }

    .banner .hero-quote i {
        margin: 0 auto;
    }

    .banner .hero-quote p {
        font-size: 15px;
        line-height: 25px;
        letter-spacing: -0.3px;
    }

    /* Ancien breakpoint : max-width 560px */
    .stats-section .space-50 {
        height: 0px !important;
    }

    .title {
        font-size: 35px !important;
        line-height: 40px !important;
        margin-bottom: 16px !important;
        letter-spacing: -0.7px !important;
        text-transform: uppercase;
        color: #18345f;
    }

    .stats-header {
        margin-bottom: 2.5rem;
        text-align: left;
    }

    .stats-title {
        font-size: 1.5rem;
    }

    .stat-number {
        font-size: 2.2rem;
    }

    .stat-suffix {
        font-size: 1.4rem;
    }

    .stat-label {
        font-size: 0.9rem;
    }

    .stat-description {
        font-size: 0.7rem;
    }

    .stats-grid {
        gap: 1rem;
    }

    .stat-card {
        padding: 1.2rem 0.8rem;
    }

    .citation-section {
        min-height: 70vh;
    }

    .citation-text {
        font-size: 22px;
        line-height: 32px;
        letter-spacing: -0.44px;
    }

    .author-name {
        font-size: 1rem;
    }

    .citation-icon i {
        font-size: 1.8rem;
    }

    .citation-container {
        padding: 0px !important;
    }

    .vision-header {
        margin-bottom: 2.5rem;
    }

    .vision-header .title,
    .title {
        font-size: 28px;
        line-height: 33px;
        letter-spacing: -0.56px;
    }

    .card-title {
        font-size: 1.3rem;
    }

    .vision-grid.pt-50 {
        padding-top: 0px !important;
    }

    .programme-dap-title {
        font-size: 2rem;
    }

    .programme-card {
        padding: 1.8rem;
    }

    .programme-document {
        max-width: 100%;
    }

    .soutenir-cta-container,
    .soutenir-cta-container.cta-programme {
        min-height: auto;
        border-radius: 16px;
        background-position: left !important;
    }

    .soutenir-cta-content {
        padding: 2rem 1.5rem;
    }

    .cta-title {
        font-size: 1.6rem;
    }

    .cta-text {
        font-size: 18px;
        line-height: 28px;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .cta-btn {
        width: 100%;
        max-width: 260px;
        justify-content: center;
    }

    .footer {
        padding: 2rem 1.5rem 1.5rem;
    }

    .footer-top {
        flex-direction: column;
        text-align: center;
    }

    .footer-newsletter {
        text-align: center;
        width: 100%;
    }

    .newsletter-form {
        justify-content: center;
    }

    .footer-links {
        flex-direction: column;
        text-align: center;
    }

    .footer-nav {
        justify-content: center;
        gap: 1rem;
    }

    .footer-social {
        justify-content: center;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .footer-legal {
        justify-content: center;
    }

    .bio-section {
        padding: 50px 0;
    }

    .bio-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .bio-image-col {
        position: static;
        max-width: 100%;
        margin: 0 auto;
    }

    .bio-image-wrapper {
        max-height: none;
    }

    .bio-portrait {
        aspect-ratio: auto;
        width: 100%;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .timeline-card {
        padding: 18px 20px;
    }

    .recognitions-list {
        gap: 8px;
    }

    .recognition-badge {
        font-size: 13px;
        line-height: 18px;
        letter-spacing: -0.24px;
        padding: 8px 16px;
    }

    /* Ancien breakpoint : max-width 550px */
    .contact-cards-overlay {
        gap: 5px;
        padding: 10px;
    }

    .contact-info-card {
        padding: 5px 8px;
    }

    .contact-card-content h4 {
        font-size: 0.55rem;
    }

    .contact-card-content p {
        font-size: 0.65rem;
    }

    .pt-150 {
        padding-top: 60px !important;
    }

    .pt-100 {
        padding-top: 50px !important;
    }

    .pt-70 {
        padding-top: 30px !important;
    }

    .space-100 {
        height: 40px !important;
    }

    .space-50 {
        height: 20px !important;
    }

    /* CTA : marges plus serrées */
    .soutenir-cta {
        padding-left: 15px;
        padding-right: 15px;
    }

    /* couv-img-small : ne déborde pas */
    .couv-img-small {
        max-width: 100%;
    }

    /* programme-card padding réduit */
    .programme-card {
        padding: 30px 20px;
    }

    /* sommaire-ligne gap réduit */
    .sommaire-ligne {
        gap: 12px;
    }

    /* footer-container padding */
    .footer-container {
        width: 100%;
    }

    .programme-stats-badge.premium {
        flex-direction: column;
        align-items: center;
        gap: 15px;
        text-align: center;
        padding: 16px 20px;
    }

    .programme-stats-badge.premium .stat-divider {
        width: 60px;
        height: 1px;
    }

    .programme-stats-badge.premium .stat-item {
        flex-direction: column;
        align-items: center;
        gap: 4px;
    }

    .video-header {
        text-align: left;
    }
    .stats-section.pt-100{
        padding-top: 50px !important;
    }
}

/* ========== <= 480px ========== */
@media (max-width: 480px) {

    .hero .title {
        font-size: 34px;
        line-height: 40px;
    }

    .hero-subtitle {
        font-size: 18px;
        line-height: 24px;
    }

    .hero-description {
        font-size: 17px;
        line-height: 25px;
    }

    .hero-visual img {
        max-width: 100%;
    }

    .banner .hero-wrapper {
        padding: 10rem 1rem 3rem 1rem;
    }

    .banner .hero-quote {
        padding: 1rem;
    }

    .programme-dap-title {
        font-size: 1.6rem;
    }

    .programme-card {
        padding: 1.5rem;
    }

    .programme-dap-buttons {
        flex-direction: column;
        width: 100%;
    }

    .btn-wadagni-primary,
    .btn-wadagni-secondary {
        justify-content: center;
        width: 100%;
    }

    .programme-stats-badge {
        padding: 0.5rem 1.2rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .programme-stats-badge .stats-number {
        font-size: 1rem;
    }

    .programme-stats-badge .stats-label {
        font-size: 0.75rem;
    }

    .soutenir-cta-content {
        padding: 1.8rem 1.2rem;
    }

    .cta-title {
        font-size: 1.3rem;
    }

    .cta-badge {
        font-size: 0.6rem;
    }

    .cta-btn {
        padding: 0.7rem 1.4rem;
        font-size: 0.8rem;
    }

    .footer-nav {
        gap: 0.8rem;
    }

    .footer-nav a {
        font-size: 14px;
        line-height: 24px;
        letter-spacing: -0.28px;
    }

    .newsletter-form {
        flex-direction: column;
        align-items: center;
    }

    .newsletter-form input {
        width: 100%;
        max-width: 250px;
    }

    .newsletter-form button {
        width: 100%;
        max-width: 250px;
    }

    .bio-section .container {
        padding: 0 16px;
    }

    .bio-grid {
        gap: 28px;
    }

    .timeline-item {
        gap: 12px;
    }

    .timeline-marker {
        width: 24px;
    }

    .marker-dot {
        width: 12px;
        height: 12px;
    }

    .section-title {
        font-size: 1.3rem;
    }
}

@media (max-width: 390px) {
    .cta-text {
        font-size: 16px;
        line-height: 26px;
    }

    .contact-item-value i {
        font-size: 14px;
    }

    .contact-item-value {
        font-size: 14px;
        line-height: 24px;
        letter-spacing: -0.28px;
    }
}

@media(max-width: 991px) {

    .masonry .gi,
    .masonry .grid-sizer {
        width: calc(50% - 7px);
    }
}


@media(max-width: 768px) {
    .lb-download-btn {
        bottom: 12px;
        right: 12px;
        padding: 8px 16px;
        font-size: 12px;
    }

    .masonry .gi,
    .masonry .grid-sizer {
        width: 100%;
    }
}