/* =========================================================
   RESPONSIVE.CSS — Base rem fluide + styles mobile/tablette
   ========================================================= */


/* Desktop : 1rem = 0.5208vw → 10px sur un écran 1920px de large */

@media (min-width: 769px) {
    html {
        font-size: .5208333333333333vw;
    }
}


/* Mobile / tablette : 1rem = 2.35vw → environ 8.8px sur un écran 375px de large
   Maquette mobile : 375px de large, marge latérale ≈ 24px (2.7rem) */

@media (max-width: 768px) {
    html {
        font-size: 2.550833vw;
    }
     :root {
        --gutter: 2.7rem;
        --head-h: 7rem;
    }
    body {
        font-size: 1.6rem;
    }
    .desk {
        display: none;
    }
    .mob {
        display: block;
    }
    .title {
        font-size: 6rem;
        margin-bottom: 2.4rem;
    }
    .btn {
        width: 100%;
        height: 5.9rem;
        padding: 0 2rem;
        font-size: 2rem;
        text-align: center;
    }
    .container_section {
        width: 34.4rem;
        padding: 0 0;
    }
    /* ---------- Header : logo centré ---------- */
    .header {
        justify-content: center;
        padding: 0;
    }
    .header__nav {
        display: none;
    }
    .header__logo,
    .hero.scrolled .header__logo {
        left: 50%;
        transform: translateX(-50%);
    }
    .header__logo {
        top: 1.8rem;
    }
    .hero.scrolled .header__logo {
        top: 50%;
        transform: translate(-50%, -50%);
    }
    .default_logo {
        width: 16.7rem;
    }
    .second_logo {
        width: 11rem;
    }
    /* ---------- Notification (en bas de l'écran) ---------- */
    .toast,
    .toast.menu-hidden {
        top: auto;
        bottom: 20rem;
        /* au-dessus de la barre de don fixe */
        left: 1.6rem;
        right: 1.6rem;
        padding: 1rem 1.4rem;
    }
    .toast {
        transform: translateY(1rem);
    }
    .toast.is-visible {
        transform: translateY(0);
    }
    .toast__text {
        flex: 1;
        font-size: 1.3rem;
    }
    .toast__close {
        margin-left: 1rem;
    }
    /* ---------- Hero ---------- */
    .hero {
        height: auto;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
    }
    .hero .bottom_back_section_creme {
        bottom: -0.1rem;
    }
    .hero__media {
        transform: none;
        transition: none;
    }
    .hero::before {
        background: linear-gradient(180deg, rgba(0, 0, 0, .15) 0%, rgba(0, 0, 0, .55) 35%, rgba(0, 0, 0, .92) 60%, #000 100%);
    }
    .hero__inner {
        width: 34.1rem;
        margin: 0 auto;
        padding: 34rem 0 6rem;
    }
    .hero__title {
        font-size: 7rem;
        line-height: .95;
        letter-spacing: -0.164rem;
        padding-bottom: 2.2rem;
    }
    .blood-dot {
        width: 2rem;
        height: 2rem;
        margin-left: 1rem;
    }
    .hero__bottom {
        flex-direction: column;
        align-items: stretch;
        gap: 2rem;
        padding-top: 2.2rem;
    }
    .hero__text {
        width: auto;
    }
    .hero__text * {
        display: block;
        font-size: 1.8rem;
        line-height: 1.35;
    }
    .hero__stat {
        width: auto;
        justify-content: flex-start;
        gap: 1.4rem;
    }
    .hero__number {
        width: auto;
        font-size: 6rem;
    }
    .hero__label {
        width: 17rem;
        font-size: 1.75rem;
    }
    .hero__btn {
        width: 100%;
        height: 6.6rem;
        font-size: 3rem;
        margin-top: 1rem;
        background-image: url(../images/back_cta_creme_medium.png);
    }
    /* ---------- Barre don (dans le flux, sous le hero) ---------- */
    .don-bar {
        /* position: relative;
        bottom: auto; */
        flex-wrap: wrap;
        gap: 1.8rem;
        height: auto;
        padding: 2.6rem 1.8rem 2.6rem;
        /* background-color: var(--cream-section); */
        /* background-position: top center; */
    }
    .don-bar__countdown {
        width: 100%;
        justify-content: space-between;
        gap: 1rem;
        margin-left: 0;
    }
    .don-bar__title {
        font-size: 1.439rem;
    }
    .countdown {
        gap: .2rem;
    }
    .countdown__box {
        width: 3.1rem;
        height: 3.7rem;
        font-size: 2.099rem;
    }
    .countdown small {
        font-size: 1rem;
        margin: 0 .3rem;
    }
    .don-bar__amounts {
        display: none;
    }
    .don-bar__btn {
        width: 100%;
        height: 6.6rem;
        font-size: 3rem;
        background-image: url(../images/back_cta_red_medium.png);
    }
    /* ---------- Fermes à sang ---------- */
    .fermes {
        padding: 3rem 0 8rem;
    }
    .top_back_section_creme {
        top: -0.4rem;
    }
    .bottom_back_section_creme {
        bottom: -0.4rem;
    }
    .container_fermes {
        flex-direction: column;
        align-items: stretch;
    }
    .badge {
        top: 0;
        right: -1rem;
        width: 13.814rem;
        height: 13.814rem;
    }
    .badge img {
        width: 5.6rem;
        margin-bottom: .4rem;
    }
    .badge p {
        width: 12.4rem;
        font-size: 1.4rem;
    }
    .badge small {
        font-size: 1rem;
    }
    .fermes__content {
        flex: none;
    }
    .fermes__content p {
        font-size: 1.8rem;
        margin-bottom: 2rem;
    }
    .fermes__content .btn {
        margin-top: .8rem;
        font-size: 1.9rem;
    }
    .fermes__visual {
        flex-direction: column;
        align-items: center;
        margin-top: 4.4rem;
    }
    .drop-slider {
        width: 40rem;
        height: 55rem;
    }
    .drop-slide__caption {
        bottom: 5.5rem;
        width: 63%;
    }
    .drop-slide__step {
        font-size: 1.3rem;
    }
    .drop-slide__step img {
        width: 2.8rem;
    }
    .drop-slide__caption h3 {
        width: auto;
        font-size: 3.242rem;
    }
    .drop-slide__caption p {
        font-size: 1.441rem;
    }
    .drop-dots {
        position: static;
        transform: none;
        flex-direction: row;
        width: auto;
        height: 4.4rem;
        gap: 2.4rem;
        margin-top: 2.6rem;
    }
    .drop-dots button {
        width: 1.6rem;
        height: 1.6rem;
    }
    .drop-dots button.is-active {
        width: 4.4rem;
        height: 4.4rem;
        font-size: 1.6rem;
    }
    /* ---------- Vidéo : titre → vidéo → CTA centré ---------- */
    .video {
        padding: 3rem 1.8rem 6rem;
    }
    .video__inner {
        width: auto;
        flex-direction: column;
        align-items: center;
    }
    .video__content {
        display: contents;
    }
    .video__content .title {
        order: 1;
        align-self: stretch;
        font-size: 6rem;
        margin-bottom: 3rem;
    }
    .video__content .title .small_goute {
        display: none;
    }
    .video__player {
        order: 2;
        height: 21rem;
    }
    .video__play {
        width: 10rem;
        height: 10rem;
    }
    .video__play::after {
        border-width: 1.3rem 0 1.3rem 2.1rem;
    }
    .video__content .btn {
        order: 3;
        width: auto;
        height: 5.9rem;
        padding: 0 3rem;
        margin-top: 3.4rem;
        font-size: 1.9rem;
    }
    /* ---------- Bandeau ---------- */
    .banner {
        flex-direction: column;
        gap: 1.4rem;
        padding: 3.6rem 1.8rem 4.4rem;
    }
    .banner .small_goute {
        width: 1.8rem;
    }
    .banner .small_goute:last-child {
        display: none;
    }
    .banner p {
        font-size: 2.2rem;
        line-height: 1.1;
    }
    /* ---------- Commerce ---------- */
    .commerce {
        padding: 3rem 0;
    }
    .container_commerce {
        padding: 0 0;
        width: 100%;
    }
    .commerce__head {
        max-width: none;
        width: 35rem;
        margin-left: auto;
        margin-right: auto;
        margin-bottom: 4rem;
        padding: 0 0;
    }
    .commerce__head p {
        font-size: 1.8rem;
    }
    /* Slider des cartes (Slick) : la carte suivante dépasse à droite */
    .cards-slider__track {
        display: block;
    }
    .cards-slider .slick-list {
        padding: 0 5rem 0 var(--gutter);
    }
    .cards-slider .slick-track {
        display: flex;
    }
    .cards-slider .slick-slide {
        height: auto;
        margin-right: 1rem;
    }
    .slider-dots {
        display: block;
        margin-top: 3rem;
    }
    .slider-dots .slick-dots {
        position: static;
        display: flex;
        justify-content: center;
        gap: 1rem;
        list-style: none;
    }
    .slider-dots .slick-dots li {
        width: auto;
        height: auto;
        margin: 0;
    }
    .slider-dots .slick-dots button {
        display: block;
        width: 1.7rem;
        height: 1.7rem;
        padding: 0;
        border-radius: 50%;
        border: .15rem solid #9a9a9a;
        font-size: 0;
        transition: background .3s, border-color .3s;
    }
    .slider-dots .slick-dots button::before {
        display: none;
    }
    .slider-dots .slick-active button {
        background: var(--red);
        border-color: var(--red);
    }
    .route-card {
        flex-direction: column;
        gap: 2.4rem;
    }
    .route-card__img {
        flex: none;
        width: 100%;
        height: auto;
    }
    .route-card__img .desk {
        display: none;
    }
    .route-card__icon {
        width: 3rem !important;
    }
    .route-card__body {
        width: auto;
        margin-top: 2rem;
    }
    .route-card__body h3 {
        font-size: 4.5rem;
        margin-bottom: 2rem;
    }
    .route-card__body p {
        font-size: 1.7rem;
        margin-bottom: 2.4rem;
    }
    .route-card__body .btn {
        height: 5.9rem;
        font-size: 2rem;
    }
    /* ---------- Fiscal ---------- */
    .fiscal {
        padding: 7rem var(--gutter) 8rem;
    }
    .fiscal .top_back_section_creme {
        top: -0.85rem;
    }
    .fiscal .bottom_back_section_creme {
        bottom: -0.85rem;
    }
    .fiscal__inner {
        flex-direction: column;
        align-items: stretch;
        gap: 3.4rem;
    }
    .fiscal__img {
        flex: none;
        width: 100%;
        height: 51rem;
    }
    .fiscal__content {
        width: auto;
    }
    .fiscal__content .title {
        font-size: 4.5rem;
    }
    .fiscal__content p {
        max-width: none;
        font-size: 1.8rem;
        width: 31rem;
    }
    .fiscal__chart {
        flex: none;
    }
    .donut {
        width: 29rem;
        height: 29rem;
    }
    .donut__center small {
        font-size: 1.6rem;
    }
    .donut__center span {
        font-size: 8rem;
    }
    .fiscal__chart p {
        font-size: 1.8rem;
    }
    .fiscal__chart .btn {
        height: 5.6rem;
        font-size: 1.8rem;
    }
    /* ---------- Combats (photo masquée en mobile) ---------- */
    .combats {
        flex-direction: column;
    }
    .combats__content {
        flex: none;
        padding: 3rem 1.9rem;
    }
    .combats__content .title {
        font-size: 6rem;
    }
    .combats__intro {
        font-size: 1.8rem;
        margin-bottom: 3.6rem;
    }
    .combats__intro br {
        display: none;
    }
    .combats__list {
        margin-bottom: 3.6rem;
    }
    .combats__list li {
        margin-bottom: 2.8rem;
    }
    .combats__list h3 {
        font-size: 3rem;
    }
    .combats__list h3 span {
        width: 3.5rem;
    }
    .combats__list p {
        padding-left: 4.6rem;
        font-size: 2rem;
    }
    .combats__content .btn {
        height: 5.9rem;
        font-size: 2rem;
    }
    .combats__img {
        display: none;
    }
    /* ---------- Votre don agit : cartes empilées ---------- */
    .impact {
        padding: 7rem var(--gutter) 8rem;
    }
    .impact .title {
        font-size: 5rem;
        margin-bottom: 3.6rem;
    }
    .impact .title br {
        display: none;
    }
    .impact .cards-slider__track {
        display: flex;
        flex-direction: column;
        gap: 1.8rem;
        width: auto;
    }
    .impact .slider-dots {
        display: none;
    }
    .impact-card {
        width: 100%;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        padding: 2.6rem 2.6rem 2.8rem;
        background-size: 100% 100%;
    }
    .impact-card__icon {
        width: 3.8rem;
        margin: 0 1.2rem 0 0;
    }
    .impact-card__label,
    .impact-card__amount {
        font-size: 2.8rem;
        line-height: 1;
    }
    .impact-card__label br,
    .impact-card__fiscal br {
        display: none;
    }
    .impact-card__amount {
        margin-left: .7rem;
    }
    .impact-card__fiscal {
        flex-basis: 100%;
        margin: .4rem 0 1.6rem;
        padding-left: 5rem;
        font-size: 1.2rem;
    }
    .impact-card__text {
        flex-basis: 100%;
        margin-bottom: 2rem;
        font-size: 1.2rem;
        line-height: 1.25;
        text-align: center;
    }
    .impact-card .btn {
        width: 24rem;
        height: 4.8rem;
        padding: 0;
        margin: 0 auto;
        font-size: 1.538rem;
    }
    /* ---------- Footer : colonne centrée ---------- */
    .footer {
        padding: 6rem var(--gutter) 23rem;
    }
    .container_footer {
        width: auto;
        flex-direction: column;
        gap: 3.4rem;
        text-align: center;
    }
    .footer__logo img {
        width: 13.6rem;
    }
    .footer__links {
        flex-direction: column;
        gap: 1.6rem;
    }
    .footer__links li,
    .footer__links li a {
        font-family: 'Barlow Condensed', sans-serif;
        font-size: 1.9rem;
        font-weight: 600;
        text-transform: uppercase;
    }
    .footer__socials {
        width: auto;
        margin-left: 0;
        gap: 2.6rem;
    }
    .social {
        width: auto;
        font-size: 2.8rem;
    }
    .footer__trust {
        flex-direction: column;
        max-width: none;
        gap: 2.4rem;
    }
    .footer__trust img {
        width: 10rem;
    }
    .footer__trust p {
        width: auto;
        font-size: 1.1rem;
    }
    /* ---------- Popups ---------- */
    .credit-popup-close {
        font-size: 5rem;
    }
    .modal__box {
        width: 92vw;
    }
    .modal__close {
        top: -4.4rem;
    }
}