/* ==========================================================================
   ACCUEIL : styles propres à la page d'accueil
   ========================================================================== */

/* ---------- Hero ---------- */
.hero {
    position: relative;
    display: flex;
    align-items: center;
    min-height: min(80vh, 760px);
    padding-block: var(--esp-6);
    overflow: hidden;
    isolation: isolate;
}

/* Photo de fond (ou emplacement gris en attendant) */
.hero__fond {
    position: absolute;
    inset: 0;
    z-index: -2;
    object-fit: cover;
    object-position: 78% center; /* garde le joueur (à droite de la photo) visible sur mobile */
    width: 100%;
    height: 100%;
}

/* Voile sombre pour que le texte reste lisible sur la photo */
.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(90deg, rgba(20, 23, 28, 0.92) 0%, rgba(20, 23, 28, 0.7) 55%, rgba(20, 23, 28, 0.35) 100%);
}

.hero__contenu {
    display: grid;
    gap: var(--esp-3);
    align-items: center;
}

/* Sur mobile le logo est déjà dans le header : on ne le répète pas */
.hero__logo {
    display: none;
    width: clamp(160px, 22vw, 300px);
}

@media (min-width: 768px) {
    .hero__logo {
        display: block;
    }
}

.hero__accroche {
    margin-top: var(--esp-2);
    color: var(--color-white);
    font-size: clamp(1.125rem, 1rem + 0.6vw, 1.375rem);
}

.hero__infos {
    margin-top: var(--esp-1);
    color: var(--color-gray-texte);
}

.hero__boutons {
    display: flex;
    flex-wrap: wrap;
    gap: var(--esp-1) var(--esp-2);
    margin-top: var(--esp-3);
}

@media (min-width: 768px) {
    .hero__contenu {
        grid-template-columns: auto 1fr;
        gap: var(--esp-6);
    }
}

/* ---------- Arguments ---------- */
.arguments,
.valeurs {
    padding: 0;
    list-style: none;
}

.argument h3 {
    margin-block: var(--esp-1);
}

.argument__chiffre {
    display: block;
    color: var(--color-blue-light);
    font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem);
    font-weight: 700;
    line-height: 1.1;
}

/* ---------- Témoignages : échange façon SMS sur photo ---------- */
.temoignages {
    position: relative;
    padding-block: var(--esp-section);
    overflow: hidden;
    isolation: isolate;
}

.temoignages__fond {
    position: absolute;
    inset: 0;
    z-index: -2;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Voile pour que les messages ressortent */
.temoignages::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background-color: rgba(20, 23, 28, 0.55);
}

.conversation {
    display: flex;
    flex-direction: column;
    gap: var(--esp-3);
    max-width: 640px;
    margin-inline: auto;
}

/* Un message = avatar + (nom au-dessus de la bulle) */
.message {
    display: flex;
    align-items: flex-end;
    gap: var(--esp-1);
    max-width: 85%;
}

.message__avatar {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: var(--br-round);
    object-fit: cover;
}

.message__corps {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.message__auteur {
    padding-inline: var(--esp-2);
    color: var(--color-white2);
    font-size: var(--fs-petit);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

.message__bulle {
    padding: 0.75rem var(--esp-2);
    border-radius: 20px;
    font-size: 1.0625rem;
    line-height: 1.4;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}

/* Message reçu : à gauche, gris, coin bas-gauche pointu (la "queue" de la bulle) */
.message--recu {
    align-self: flex-start;
}

.message--recu .message__bulle {
    border-bottom-left-radius: 4px;
    background-color: #2c3038;
    color: var(--color-white);
}

/* Message envoyé : à droite, bleu, avatar de l'autre côté */
.message--envoye {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.message--envoye .message__corps {
    align-items: flex-end;
}

.message--envoye .message__bulle {
    border-bottom-right-radius: 4px;
    background-color: var(--color-blue-fond);
    color: var(--color-white);
}

/* ---------- Valeurs (cartes Badgy) ---------- */
/* Mobile : image à gauche, texte à droite (plus compact) */
.valeur {
    display: grid;
    grid-template-columns: 88px 1fr;
    column-gap: var(--esp-2);
    align-items: center;
}

.valeur__image {
    grid-row: span 2;
    width: 88px;
    height: 88px;
    padding: var(--esp-1);
    border-radius: var(--br-round);
    background-color: var(--color-gray-sombre);
    border: 1px solid var(--color-gray-ligne);
    object-fit: contain;
}

/* Desktop : carte centrée, grande image au-dessus */
@media (min-width: 768px) {
    .valeur {
        display: block;
        text-align: center;
    }

    .valeur__image {
        width: 160px;
        height: 160px;
        margin: 0 auto var(--esp-3);
        padding: var(--esp-2);
    }
}

.valeur h3 {
    margin-bottom: var(--esp-1);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ---------- Première partie (étapes numérotées) ---------- */
.section--contraste {
    background-color: var(--color-gray-placeholder);
}

.etapes {
    display: grid;
    gap: var(--esp-3);
    padding: 0;
    list-style: none;
    counter-reset: etape;
}

.etape {
    position: relative;
    padding-left: 3.25rem;
    counter-increment: etape;
}

.etape::before {
    content: counter(etape);
    position: absolute;
    top: 0;
    left: 0;
    display: grid;
    place-items: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: var(--br-round);
    background-color: var(--color-blue-fond);
    color: var(--color-white);
    font-size: 1.125rem;
    font-weight: 700;
}

.etape h3 {
    margin-bottom: var(--esp-1);
}

@media (min-width: 900px) {
    .etapes {
        grid-template-columns: repeat(4, 1fr);
        gap: var(--esp-3);
    }

    .etape {
        padding-left: 0;
        padding-top: 3.5rem;
    }
}

/* ---------- FAQ ---------- */
.faq {
    max-width: var(--largeur-lecture);
}

.faq__item {
    border-bottom: 1px solid var(--color-gray-ligne);
}

.faq__item summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--esp-2);
    padding-block: var(--esp-2);
    color: var(--color-white);
    font-size: clamp(1rem, 0.95rem + 0.3vw, 1.125rem);
    font-weight: 700;
    cursor: pointer;
    list-style: none;
}

.faq__item summary::-webkit-details-marker {
    display: none;
}

.faq__item summary::after {
    content: "+";
    flex-shrink: 0;
    color: var(--color-blue-light);
    font-size: 1.75rem;
    font-weight: 300;
    line-height: 1;
    transition: transform 0.2s;
}

.faq__item[open] summary::after {
    transform: rotate(45deg);
}

.faq__item p {
    padding-bottom: var(--esp-3);
    color: var(--color-gray-texte);
}

/* ---------- Appel final ---------- */
.appel {
    display: grid;
    gap: var(--esp-3);
    align-items: center;
    justify-items: center;
    padding: var(--esp-4) var(--esp-3);
    border: 1px solid var(--color-gray-ligne);
    border-radius: var(--br-large);
    background: linear-gradient(135deg, var(--color-gray-placeholder), #1a2433);
    text-align: center;
}

.appel__badgy {
    width: 120px;
}

.appel__texte p {
    margin-block: var(--esp-2) var(--esp-4);
}

@media (min-width: 768px) {
    .appel {
        grid-template-columns: auto 1fr;
        justify-items: start;
        padding: var(--esp-6);
        text-align: left;
    }

    .appel__badgy {
        width: 220px;
    }
}
