/* ==========================================================================
   1. POLICES & VARIABLES (Imports)
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Dela+Gothic+One&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Readex+Pro:wght@200;300;400;500;600;700&display=swap');

/* ==========================================================================
   2. STYLES GLOBAUX & RESET
   ========================================================================== */
html, body {
    margin: 0;
    padding: 0;
    height: 100%;
}

body {
    font-family: 'Readex Pro', sans-serif;
    min-height: 110vh;
    background: #f8f6e0;
}

p, h1, h2 {
    margin: 0;
    text-align: center;
}

/* ==========================================================================
   3. EN-TÊTE & BANDEAU PROMO
   ========================================================================== */
.bandeau-promo {
    text-align: center;
    background-color: #348546;
    color: #FDFDFD;
    padding: 5px;
    overflow: hidden;
}

@keyframes marquee {
    from { transform: translateX(100%); }
    to   { transform: translateX(-100%); }
}

/* ==========================================================================
   4. SECTION HÉROS (.top-bg & .bloc)
   ========================================================================== */
.top-bg {
    position: relative;
    width: 100%;
    height: 60vh;
    background: #F4E067 linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4));
    background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url("bg1.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Vague décorative en bas de la section héros */
.top-bg::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 100%;
    height: 40px;
    background-color: #F8F6E0;
    -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1720.96 90.48'><path fill='black' d='M1720.96.43c-20.35,1.14-36.75,4.48-50.86,9.05-18.33,5.93-32.78,13.92-46.99,21.78-26.74,14.78-51.99,28.74-103.65,28.74s-76.92-13.96-103.65-28.74c-14.21-7.86-28.66-15.85-47-21.78-17.53-5.68-38.61-9.48-66.42-9.48s-48.89,3.8-66.42,9.48c-18.33,5.93-32.78,13.92-46.99,21.78-26.73,14.78-51.99,28.74-103.65,28.74s-76.92-13.96-103.65-28.74c-14.21-7.86-28.66-15.85-47-21.78-17.53-5.68-38.61-9.48-66.42-9.48s-48.89,3.8-66.42,9.48c-18.33,5.93-32.78,13.92-46.99,21.78-26.74,14.78-51.99,28.74-103.65,28.74s-76.92-13.96-103.65-28.74c-14.21-7.86-28.66-15.85-47-21.78-17.53-5.68-38.61-9.48-66.42-9.48s-48.89,3.8-66.42,9.48c-18.33,5.93-32.78,13.92-46.99,21.78-26.74,14.78-51.99,28.74-103.65,28.74s-76.92-13.96-103.65-28.74c-14.21-7.86-28.66-15.85-47-21.78C48.89,3.8,27.8,0,0,0v90.48h1720.96V.43Z'/></svg>");
    mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1720.96 90.48'><path fill='black' d='M1720.96.43c-20.35,1.14-36.75,4.48-50.86,9.05-18.33,5.93-32.78,13.92-46.99,21.78-26.74,14.78-51.99,28.74-103.65,28.74s-76.92-13.96-103.65-28.74c-14.21-7.86-28.66-15.85-47-21.78-17.53-5.68-38.61-9.48-66.42-9.48s-48.89,3.8-66.42,9.48c-18.33,5.93-32.78,13.92-46.99,21.78-26.73,14.78-51.99,28.74-103.65,28.74s-76.92-13.96-103.65-28.74c-14.21-7.86-28.66-15.85-47-21.78-17.53-5.68-38.61-9.48-66.42-9.48s-48.89,3.8-66.42,9.48c-18.33,5.93-32.78,13.92-46.99,21.78-26.74,14.78-51.99,28.74-103.65,28.74s-76.92-13.96-103.65-28.74c-14.21-7.86-28.66-15.85-47-21.78-17.53-5.68-38.61-9.48-66.42-9.48s-48.89,3.8-66.42,9.48c-18.33,5.93-32.78,13.92-46.99,21.78-26.74,14.78-51.99,28.74-103.65,28.74s-76.92-13.96-103.65-28.74c-14.21-7.86-28.66-15.85-47-21.78C48.89,3.8,27.8,0,0,0v90.48h1720.96V.43Z'/></svg>");
    -webkit-mask-size: auto;
    mask-size: auto;
    -webkit-mask-repeat: repeat-x;
    mask-repeat: repeat-x;
    -webkit-mask-position: bottom;
    mask-position: bottom;
}

.main-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 7px;
    padding: 40px 20px;
}

.bloc {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.site-title {
    font-family: 'Dela Gothic One', sans-serif;
    font-weight: bold;
    font-size: 32px;
    color: #f8f6e0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.site-title img {
    height: 40px;
    width: auto;
}

.text {
    margin: 10px 0;
    color: #f8f6e0;
    font-size: 18px;
}

/* Bouton d'action (Style Neo-brutalisme) */
.btn-primary {
    position: relative;
    margin-top: 20px;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: bold;
    text-transform: uppercase;
    cursor: pointer;
    color: #FDFDFD;
    background-color: #348546;
    border-radius: 8px;
    border-left: 1px solid #222;
    outline: 1px solid #222;
    outline-offset: -1px;
    box-shadow: 0 4px 0 0 #000;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    box-shadow: 0 0 0 0 #000;
    transform: translateY(4px);
}

/* ==========================================================================
   5. SECTION CARTES DE REASSURANCE
   ========================================================================== */
.cards-container {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    overflow-y: hidden;
    width: 100%;
    max-width: 100vw;
    padding: 20px;
    margin-top: 40px;
    box-sizing: border-box;
    scrollbar-width: none; /* Cache la scrollbar sur Firefox */
}

.cards-container::-webkit-scrollbar {
    display: none; /* Cache la scrollbar sur Chrome/Safari */
}

.card-item {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 150px;
    justify-content: flex-start;
}

.card {
    width: 95px;
    height: 95px;
    margin: 6px;
    background-color: #FFCD30;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border-left: 1px solid #222;
    outline: 1px solid #222;
    outline-offset: -1px;
    box-shadow: 0 4px 0 0 #000;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card .card-img {
    width: 100%;
    height: auto;
}

.card svg {
    max-width: 70%;
    max-height: 70%;
}

.icone {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.2;
    max-width: 130px;
    margin-top: 10px;
    color: #222;
    word-wrap: break-word;
}

.icone-text {
    font-size: 13px;
    color: #9D9D95;
    max-width: 100%;
    margin-top: 10px;
    line-height: 1.3;
}

/* ==========================================================================
   6. ÉLÉMENTS FIXES (Avis & Footer)
   ========================================================================== */
.bottom-left-img {
    position: fixed;
    bottom: 50px;
    left: 20px;
    width: 130px;
    height: auto;
    z-index: 100;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    opacity: 0.75;
    transition: opacity 1s;
}

footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    font-size: 0.85rem;
    padding: 8px 0;
    background-color: #0f0101;
    color: gainsboro;
    z-index: 200;
}

/* ==========================================================================
   7. MEDIA QUERIES (Responsive)
   ========================================================================== */

/* --- Écrans Mobiles Animés (Petits écrans) --- */
@media (max-width: 450px) {
    .bandeau-text {
        animation: marquee 10s linear infinite;
        white-space: nowrap;
        display: block;
    }
}

/* --- Mode Mobile / Tablette (Général) --- */
@media (max-width: 768px) {
    .site-title {
        display: block;
    }

    .cards-container {
        padding: 10px;
        gap: 20px;
    }

    .card-item {
        width: 135px;
    }

    .card {
        width: 90px;
        height: 90px;
    }

    .bottom-left-img {
        width: 100px;
    }
}

/* --- Mode Ordinateurs & Tablettes larges --- */
@media (min-width: 768px) {
    .cards-container {
        justify-content: center;
    }
}

/* --- Mode Grands Écrans (Desktop XL) --- */
@media (min-width: 1280px) {
    .site-title {
        font-size: 48px;
    }

    .site-title img {
        height: 50px;
    }

    .text {
        font-size: 24px;
    }

    .bottom-left-img:hover {
        opacity: 1;
    }
}