h1 {
    display: none;
}

body {
    background-image: url('../images/allover-plain.jpg');
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
    background-color: #FFEFE6;
}

.about-hero__inner,
.about-member__inner,
.about-combo__inner {
    will-change: opacity, transform;
}

.about-hero {
    margin: 0 auto;
    padding: 4rem 2rem 2rem;
    background-color: #FFD3EA;
}

.about-hero__inner {
    display: flex;
    flex-direction: column;
    max-width: 1100px;
    margin: 0 auto;
}

.about-hero__body {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.about-hero__title {
    font-family: 'GillSans-UltraBold', sans-serif;
    text-transform: uppercase;
    font-size: 2.2rem;
    color: #FF1D0F;
    text-align: center;
    margin-bottom: 0;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.about-hero__title::before,
.about-hero__title::after {
    content: '';
    flex: 1;
    height: 2px;
    background-color: #FF1D0F;
}

.about-hero__text {
    flex: 1;
    font-family: 'Americane', sans-serif;
    font-size: 1rem;
    color: #2A5842;
    line-height: 1.7;
}

.hero-gif {
    width: 180px;
    height: auto;
    flex-shrink: 0;
}

/* ─── HISTOIRE ───────────────────────────────────────────── */
.about-histoire {
    padding: 4rem 2rem 5rem;
}

.about-histoire__title {
    text-align: center;
    margin-bottom: 3rem;
    display: block;
    line-height: 1.2;
}

.about-histoire__title em {
    font-family: 'Blisstwin', cursive;
    font-style: italic;
    font-size: 2.2rem;
    color: #2A5842;
    font-weight: normal;
}

.about-histoire__title strong {
    font-family: 'GillSans-UltraBold', sans-serif;
    color: #FF1D0F;
    text-transform: uppercase;
    font-size: 2.2rem;
}

/* ─── CHAT ───────────────────────────────────────────────── */
.about-histoire__chat {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    max-width: 900px;
    margin: 0 auto;
}

.about-histoire__message {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.about-histoire__message--left {
    justify-content: flex-start;
    padding-right: 20%;
}

.about-histoire__message--right {
    justify-content: flex-end;
    padding-left: 20%;
}

.about-histoire__mascotte {
    width: 70px;
    height: 70px;
    object-fit: contain;
    flex-shrink: 0;
    position: relative;
    z-index: 2;
}

.about-histoire__message--left .about-histoire__mascotte {
    margin-right: -30px; /* chevauche la bulle à droite */
    margin-top: -10px;
}

.about-histoire__message--right .about-histoire__mascotte {
    margin-left: -30px; /* chevauche la bulle à gauche */
    margin-top: -10px;
    order: 2;
}

.about-histoire__bubble {
    font-family: 'Americane', sans-serif;
    font-size: 1rem;
    color: #2A5842;
    line-height: 1.7;
    padding: 1.2rem 1.6rem;
    position: relative;
    z-index: 1;
}

/* Bulle gauche — coin bas-gauche pointu */
.about-histoire__message--left .about-histoire__bubble {
    background-color: #FFD3EA;
    border-radius: 1.5rem 1.5rem 1.5rem 0.2rem;
}

/* Bulle droite — coin bas-droit pointu */
.about-histoire__message--right .about-histoire__bubble {
    background-color: #FFA3C8;
    border-radius: 1.5rem 1.5rem 0.2rem 1.5rem;
}

.about-histoire__message--right .about-histoire__bubble {
    background-color: #FFA3C8;
}

/* ─── ANIMATION MESSAGES ─────────────────────────────────── */
.about-histoire__message {
    display: flex;
    align-items: flex-start;
    gap: 0; /* plus de gap, la mascotte chevauche */
}

.about-histoire__message.is-visible {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0);
}

/* ─── INDICATEUR DE FRAPPE ───────────────────────────────── */
.about-histoire__typing {
    display: none;
    align-items: center;
    gap: 0.4rem;
    padding: 0.8rem 1.2rem;
    background-color: #FFD3EA;
    border-radius: 1.5rem;
    width: fit-content;
    margin-left: 82px; /* aligne avec la bulle (largeur mascotte + gap) */
    opacity: 0;
    transition: opacity 0.3s ease;
}

.about-histoire__typing--right {
    background-color: #FFA3C8;
    margin-left: auto;
    margin-right: 82px;
}

.about-histoire__typing.is-visible {
    display: flex;
    opacity: 1;
}

.about-histoire__typing span {
    width: 8px;
    height: 8px;
    background-color: #2A5842;
    border-radius: 50%;
    animation: typing-pulse 1s infinite ease-in-out;
}

.about-histoire__typing span:nth-child(2) {
    animation-delay: 0.2s;
}

.about-histoire__typing span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing-pulse {
    0%, 100% { transform: translateY(0); opacity: 0.4; }
    50%       { transform: translateY(-4px); opacity: 1; }
}

/* ─── MEMBRES ────────────────────────────────────────────── */
.about-member {
    padding: 4rem 2rem;
    background-color: #FFEFE6;
}

.about-member__inner {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

/* ─── COLONNE PHOTO ──────────────────────────────────────── */
.about-member__photo-col {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.about-member__photo {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    display: block;
}

.about-member__caption {
    font-family: 'Blisstwin', cursive;
    font-style: italic;
    font-size: 0.85rem;
    color: #2A5842;
    line-height: 1.5;
    margin: 0;
}

/* ─── COLONNE CONTENU ────────────────────────────────────── */
.about-member__content {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding-top: 1rem;
}

.about-member__name {
    font-family: 'GillSans-UltraBold', sans-serif;
    font-size: 2.8rem;
    color: #FF1D0F;
    text-transform: uppercase;
    margin: 0;
    line-height: 1;
}

.about-member__role {
    font-family: 'Blisstwin', cursive;
    font-style: italic;
    font-size: 1.6rem;
    color: #6EA14F;
    margin: 0;
    line-height: 1.2;
}

.about-member__linkedin,
.about-member__instagram {
    display: block;
    width: fit-content;
    margin: 0.5rem 0 1rem;
    transition: transform 0.2s ease;
}

.about-member__linkedin:hover,
.about-member__instagram:hover {
    transform: scale(1.1);
}

.about-member__linkedin img,
.about-member__instagram img {
    width: 40px;
    height: 40px;
}

.about-member__socials {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    margin: 0.5rem 0 1rem;
}

/* Retire le margin des liens individuels, géré par le parent */
.about-member__linkedin,
.about-member__instagram {
    display: block;
    width: fit-content;
    transition: transform 0.2s ease;
}

.about-member__bio {
    font-family: 'Blisstwin', cursive;
    font-style: italic;
    font-size: 0.95rem;
    color: #2A5842;
    line-height: 1.7;
}

/* ─── COMBO GAGNANT ──────────────────────────────────────── */
.about-combo {
    padding: 4rem 2rem;
    background-color: #FFD3EA;
}

.about-combo__inner {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.about-combo__photo-col {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.about-combo__photo {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    display: block;
}

.about-combo__caption {
    font-family: 'Blisstwin', cursive;
    font-style: italic;
    font-size: 0.85rem;
    color: #2A5842;
    line-height: 1.5;
    margin: 0;
}

.about-combo__content {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding-top: 1rem;
}

.about-combo__name {
    font-family: 'GillSans-UltraBold', sans-serif;
    font-size: 2.8rem;
    color: #FF1D0F;
    text-transform: uppercase;
    margin: 0;
    line-height: 1;
}

.about-combo__role {
    font-family: 'Blisstwin', cursive;
    font-style: italic;
    font-size: 1.6rem;
    color: #6EA14F;
    margin: 0 0 1rem;
    line-height: 1.2;
}

.about-combo__bio {
    font-family: 'Americane', sans-serif;
    font-size: 0.95rem;
    color: #2A5842;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.about-combo__cta {
    display: block;
    width: fit-content;
    margin: 0 auto;
    background-color: #6EA14F;
    color: #FFEFE6;
    font-family: 'GillSans-UltraBold', sans-serif;
    font-size: 1.1rem;
    text-transform: uppercase;
    text-decoration: none;
    padding: 0.8rem 2.5rem;
    border-radius: 999px;
    transition: background-color 0.2s ease, transform 0.15s ease;
}

.about-combo__cta:hover {
    background-color: #FF1D0F;
    transform: scale(1.04);
}

/* RESPONSIVE MEDIA QUERY */
/* =============================================
   ABOUT — Media Queries
   À ajouter à la fin de about.css
   ============================================= */

/* ── Tablette (≤ 1024px) ── */
@media (max-width: 1024px) {

    .about-hero {
        padding: 3rem 1.5rem 2rem;
    }

    .about-hero__title {
        font-size: 1.8rem;
    }

    .hero-gif {
        width: 140px;
    }

    .about-member__inner,
    .about-combo__inner {
        gap: 2.5rem;
    }

    .about-member__name,
    .about-combo__name {
        font-size: 2.2rem;
    }
}

/* ── Mobile large (≤ 767px) ── */
@media (max-width: 767px) {

    /* ── Hero ── */
    .about-hero {
        padding: 2rem 1.2rem 1.5rem;
    }

    .about-hero__title {
        font-size: 1.5rem;
    }

    .about-hero__body {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }

    .about-hero__text {
        text-align: center;
    }

    .hero-gif {
        width: 120px;
    }

    /* ── Histoire ── */
    .about-histoire {
        padding: 2.5rem 1rem 3rem;
    }

    .about-histoire__title em,
    .about-histoire__title strong {
        font-size: 1.7rem;
    }

    .about-histoire__chat {
        gap: 1.8rem;
    }

    .about-histoire__message--left {
        padding-right: 8%;
    }

    .about-histoire__message--right {
        padding-left: 8%;
    }

    .about-histoire__mascotte {
        width: 50px;
        height: 50px;
    }

    .about-histoire__message--left .about-histoire__mascotte {
        margin-right: -20px;
    }

    .about-histoire__message--right .about-histoire__mascotte {
        margin-left: -20px;
    }

    .about-histoire__bubble {
        font-size: 0.9rem;
        padding: 1rem 1.2rem;
    }

    .about-histoire__typing {
        margin-left: 58px;
    }

    .about-histoire__typing--right {
        margin-right: 58px;
    }

    /* ── Membres ── */
    .about-member {
        padding: 2.5rem 1.2rem;
    }

    .about-member__inner {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    /* Sur mobile, photo toujours en premier */
    .about-member--left .about-member__photo-col,
    .about-member--right .about-member__photo-col {
        order: -1;
    }

    .about-member__photo {
        aspect-ratio: 4 / 3;
    }

    .about-member__name {
        font-size: 2rem;
    }

    .about-member__role {
        font-size: 1.3rem;
    }

    /* ── Combo ── */
    .about-combo {
        padding: 2.5rem 1.2rem;
    }

    .about-combo__inner {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .about-combo__photo {
        aspect-ratio: 4 / 3;
    }

    .about-combo__name {
        font-size: 2rem;
    }

    .about-combo__role {
        font-size: 1.3rem;
    }

    .about-combo__cta {
        width: 100%;
        text-align: center;
    }
    .about-combo__photo-col {
        display: none;
    }
}

/* ── Mobile petit (≤ 480px) ── */
@media (max-width: 480px) {

    .about-hero__title {
        font-size: 1.3rem;
        gap: 0.8rem;
    }

    .about-histoire__title em,
    .about-histoire__title strong {
        font-size: 1.4rem;
    }

    .about-histoire__message--left {
        padding-right: 0;
    }

    .about-histoire__message--right {
        padding-left: 0;
    }

    .about-histoire__bubble {
        font-size: 0.85rem;
    }

    .about-member__name,
    .about-combo__name {
        font-size: 1.7rem;
    }
}