/* ==========================================================================
   ECHO-SITE.CSS — feuille de référence du site App-écho
   Une seule source pour la typographie, la mise en page et les composants.
   Les pages ne contiennent plus que leur contenu.
   Préfixe unique : .echo-
   Points de rupture : 1024 (tablette), 767 (mobile), 400 (petit mobile)
   ========================================================================== */

/* ==========================================================================
   1. JETONS
   ========================================================================== */

:root {
    /* Couleurs de marque */
    --echo-bleu: #0b7ab9;
    --echo-bleu-fonce: #0969a2;
    --echo-bleu-pale: #b5d4f4;
    --echo-bleu-voile: #e0f2fe;

    /* Texte */
    --echo-texte: #334155;
    --echo-texte-doux: #718096;
    --echo-texte-clair: #94a3b8;

    /* Surfaces */
    --echo-fond: #fff;
    --echo-fond-gris: #f8fafc;
    --echo-fond-image: #eef2f6;
    --echo-bordure: #e2e8f0;
    --echo-bordure-forte: #cbd5e1;

    /* Ombres, volontairement discrètes */
    --echo-ombre: 0 4px 16px rgba(0, 0, 0, 0.06);
    --echo-ombre-forte: 0 8px 30px rgba(0, 0, 0, 0.1);

    /* Mise en page */
    --echo-largeur: 1440px;
    --echo-marge-laterale: 32px;
    --echo-rayon: 12px;
    --echo-rayon-large: 16px;

    /* Typographie */
    --echo-police: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --echo-t-page: 2.2rem;
    --echo-t-accroche: 1.05rem;
    --echo-t-section: 1.7rem;
    --echo-t-sous-section: 1.35rem;
    --echo-t-corps: 0.95rem;
    --echo-t-secondaire: 0.9rem;
    --echo-t-petit: 0.82rem;
    --echo-t-mention: 0.75rem;

    /* Rythme vertical */
    --echo-espace-section: 56px;
    --echo-espace-bloc: 40px;
}

/* ==========================================================================
   2. SOCLE
   ========================================================================== */

.echo-page,
.echo-page * {
    box-sizing: border-box;
}

.echo-page {
    font-family: var(--echo-police);
    color: var(--echo-texte);
}

.echo-page img {
    pointer-events: none;
    -webkit-user-drag: none;
    user-select: none;
}

/* Largeur unique de toutes les pages du site */
.echo-wrap {
    max-width: var(--echo-largeur);
    margin: 0 auto;
    padding: 0 var(--echo-marge-laterale);
}

/* Filet horizontal de séparation */
.echo-filet {
    border: none;
    border-top: 1px solid var(--echo-bordure);
    margin: 48px auto;
    max-width: var(--echo-largeur);
}

/* ==========================================================================
   3. TYPOGRAPHIE
   Aucune police n'est définie ailleurs que dans cette section.
   ========================================================================== */

.echo-t-page {
    font-size: var(--echo-t-page);
    font-weight: 800;
    color: var(--echo-bleu);
    line-height: 1.15;
    margin: 0 0 12px;
}

.echo-accroche {
    font-size: var(--echo-t-accroche);
    color: var(--echo-texte-clair);
    line-height: 1.7;
    margin: 0;
}

.echo-t-section {
    font-size: var(--echo-t-section);
    font-weight: 700;
    color: var(--echo-bleu);
    line-height: 1.2;
    margin: 0 0 16px;
}

.echo-t-sous-section {
    font-size: var(--echo-t-sous-section);
    font-weight: 700;
    color: var(--echo-bleu);
    line-height: 1.25;
    margin: 0 0 10px;
}

.echo-t-objet {
    font-size: var(--echo-t-corps);
    font-weight: 700;
    color: var(--echo-texte);
    line-height: 1.35;
    margin: 0 0 8px;
}

/* Le texte n'est JAMAIS justifié sur ce site. */
.echo-p {
    font-size: var(--echo-t-corps);
    color: var(--echo-texte);
    line-height: 1.8;
    text-align: left;
    margin: 0 0 16px;
}

.echo-p:last-child {
    margin-bottom: 0;
}

.echo-p-secondaire {
    font-size: var(--echo-t-secondaire);
    color: var(--echo-texte-doux);
    line-height: 1.7;
    text-align: left;
    margin: 0 0 14px;
}

.echo-p-petit {
    font-size: var(--echo-t-petit);
    color: var(--echo-texte-doux);
    line-height: 1.7;
    text-align: left;
    margin: 0;
}

.echo-mention {
    font-size: var(--echo-t-mention);
    color: var(--echo-texte-clair);
    line-height: 1.6;
    margin: 0;
}

/* Signature bleue de fin de bloc, du type « Idéal pour le suivi saisonnier » */
.echo-signature {
    display: inline-block;
    margin-top: 18px;
    font-size: var(--echo-t-petit);
    font-weight: 700;
    color: var(--echo-bleu);
}

/* ==========================================================================
   4. EN-TÊTE DE PAGE
   Filet bleu vertical, titre, accroche. Signature visuelle du site.
   ========================================================================== */

.echo-entete {
    display: grid;
    grid-template-columns: 4px minmax(0, 1fr);
    gap: 22px;
    padding: var(--echo-espace-section) 0 var(--echo-espace-bloc);
}

.echo-entete-filet {
    background: linear-gradient(to bottom, #085d8f 0%, #0b7ab9 28%, #60bbf0 62%, #ffffff 100%);
}

/* Même en-tête, en plus petit, pour une transition en milieu de page.
   Son filet est le dégradé inversé du h1, bien plus clair. */
.echo-entete.echo-entete-secondaire {
    padding: 0;
    margin-bottom: 28px;
}

.echo-entete-secondaire .echo-entete-filet {
    background: linear-gradient(to bottom, #ffffff 0%, #b5d4f4 45%, #60bbf0 100%);
}

.echo-entete-secondaire .echo-t-page {
    font-size: var(--echo-t-section);
    font-weight: 800;
}

/* ==========================================================================
   5. BLOC MODULE
   Texte d'un côté, visuel de l'autre. L'alternance se fait avec .echo-inverse.
   ========================================================================== */

.echo-module {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    gap: 40px;
    align-items: start;
    padding: 0 0 48px;
}

.echo-module.echo-inverse {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
}

.echo-module.echo-inverse .echo-module-texte {
    order: 2;
}

.echo-module.echo-inverse .echo-module-visuel {
    order: 1;
}

.echo-module-visuel {
    width: 100%;
}

/* ==========================================================================
   6. VISUELS
   ========================================================================== */

/* Carrousel d'images, points de navigation en bas à gauche.
   Hauteur fixe : tous les visuels de module font exactement la même
   hauteur, quelle que soit la largeur de leur colonne. */
.echo-carrousel {
    position: relative;
    width: 100%;
    height: 420px;
    overflow: hidden;
    background: var(--echo-fond);
}

.echo-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.6s ease;
}

.echo-slide.echo-actif {
    opacity: 1;
}

.echo-points {
    position: absolute;
    left: 18px;
    bottom: 16px;
    display: flex;
    gap: 8px;
    z-index: 2;
}

.echo-point {
    width: 9px;
    height: 9px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.55);
    cursor: pointer;
    transition: all 0.25s;
}

.echo-point.echo-actif {
    background: #fff;
    width: 22px;
    border-radius: 5px;
}

/* Image simple.
   Même rapport que le carrousel par défaut : une image et un carrousel
   posés côte à côte ont toujours la même hauteur. Les deux autres
   rapports restent disponibles pour les cas particuliers. */
.echo-image {
    width: 100%;
    height: 420px;
    overflow: hidden;
    background: var(--echo-fond);
}

.echo-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.echo-image.echo-4-3 { height: 420px; }
.echo-image.echo-21-9 { height: 420px; }

/* Capture d'écran de téléphone.
   L'image n'est jamais recadrée : contain, jamais cover. */
.echo-ecran {
    width: 240px;
    max-width: 100%;
    margin: 0 auto;
    aspect-ratio: 240 / 440;
    position: relative;
    overflow: hidden;
    background: var(--echo-fond);
}

.echo-ecran img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

/* Variante carrousel : plusieurs captures superposées dans le même conteneur */
.echo-ecran .echo-ecran-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.6s ease;
}

.echo-ecran .echo-ecran-slide.echo-actif {
    opacity: 1;
}

@media (max-width: 767px) {
    .echo-ecran {
        width: 180px;
    }
}

/* Carte et graphe, encadrés fins sans ombre */
.echo-cadre {
    width: 100%;
    border: 1px solid var(--echo-bordure);
    background: var(--echo-fond);
    overflow: hidden;
}

.echo-cadre.echo-16-9 { aspect-ratio: 16 / 9; }
.echo-cadre.echo-4-3 { aspect-ratio: 4 / 3; }

.echo-cadre.echo-graphe {
    padding: 14px;
}

/* ==========================================================================
   7. BANDE « DISPONIBLE SUR »
   ========================================================================== */

.echo-dispo {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 0 26px;
    border-top: 1px solid var(--echo-bordure);
    font-size: var(--echo-t-petit);
    font-weight: 600;
    color: var(--echo-texte-doux);
}

.echo-dispo img {
    width: 20px;
    height: 20px;
    object-fit: contain;
    opacity: 0.75;
}

/* Un bouton logé dans la bande se colle à droite et garde ses images
   à pleine opacité. */
.echo-dispo .echo-bouton {
    margin-left: auto;
}

.echo-dispo .echo-bouton img {
    opacity: 1;
}

/* ==========================================================================
   8. GRILLE DE VIGNETTES
   Mode expert, étapes, atouts. Quatre colonnes, sans carte ni ombre.
   ========================================================================== */

.echo-vignettes {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 28px;
}

.echo-vignettes.echo-colonnes-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.echo-vignette img {
    width: 44px;
    height: 44px;
    object-fit: contain;
    display: block;
    margin-bottom: 14px;
}

.echo-vignette-num {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--echo-bleu-pale);
    line-height: 1;
    margin: 0 0 8px;
}

/* Variante séparée par des filets verticaux, pour une chaîne d'étapes */
.echo-vignettes.echo-filets {
    gap: 0;
    border-top: 1px solid var(--echo-texte-clair);
    border-bottom: 1px solid var(--echo-bordure);
}

.echo-vignettes.echo-filets .echo-vignette {
    padding: 22px;
    border-right: 1px solid var(--echo-bordure);
}

.echo-vignettes.echo-filets .echo-vignette:first-child {
    padding-left: 0;
}

.echo-vignettes.echo-filets .echo-vignette:last-child {
    padding-right: 0;
    border-right: none;
}

/* ==========================================================================
   9. TABLEAU
   ========================================================================== */

.echo-tableau {
    width: 100%;
    border: 1px solid var(--echo-bordure);
    background: var(--echo-fond);
}

.echo-tableau + .echo-tableau {
    border-top: none;
}

.echo-tableau-titre {
    padding: 11px 16px;
    border-bottom: 1px solid var(--echo-bordure);
    font-size: var(--echo-t-mention);
    font-weight: 700;
    color: var(--echo-bleu);
    letter-spacing: 0.5px;
}

.echo-tableau table {
    width: 100%;
    border-collapse: collapse;
}

.echo-tableau th {
    padding: 9px 6px;
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--echo-texte-clair);
    text-align: center;
    border-bottom: 1px solid var(--echo-bordure);
    white-space: nowrap;
}

.echo-tableau th:first-child {
    text-align: left;
    padding-left: 16px;
    width: 78px;
}

.echo-tableau th img {
    width: 22px;
    height: 22px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

.echo-tableau td {
    padding: 9px 6px;
    font-size: var(--echo-t-petit);
    font-weight: 600;
    color: var(--echo-bleu);
    text-align: center;
    border-bottom: 1px solid var(--echo-bordure);
}

.echo-tableau td:first-child {
    text-align: left;
    padding-left: 16px;
    color: var(--echo-texte-clair);
    background: var(--echo-fond-gris);
    white-space: nowrap;
}

.echo-tableau tr:last-child td {
    border-bottom: none;
}

/* Barres de répartition sous un tableau */
.echo-barres {
    border: 1px solid var(--echo-bordure);
    border-top: none;
    background: var(--echo-fond);
    padding: 4px 0;
}

.echo-barre {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 16px;
}

.echo-barre-lib {
    font-size: var(--echo-t-petit);
    color: var(--echo-texte-doux);
    width: 104px;
    flex-shrink: 0;
}

.echo-barre-piste {
    flex: 1;
    height: 7px;
    background: var(--echo-bordure);
    border-radius: 4px;
    overflow: hidden;
}

.echo-barre-remplissage {
    height: 100%;
    border-radius: 4px;
}

.echo-barre-val {
    font-size: var(--echo-t-petit);
    font-weight: 700;
    min-width: 42px;
    text-align: right;
}

/* ==========================================================================
   10. MENTION PARTENAIRE
   Logo institutionnel et sa ligne d'explication.
   ========================================================================== */

.echo-partenaire {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid var(--echo-bordure);
}

.echo-partenaire img {
    width: 44px;
    height: 44px;
    object-fit: contain;
    flex-shrink: 0;
}

.echo-partenaire p {
    font-size: var(--echo-t-petit);
    color: var(--echo-texte-doux);
    line-height: 1.6;
    margin: 0;
}

/* ==========================================================================
   11. NOTIFICATION DANS SA COQUE DE TÉLÉPHONE
   ========================================================================== */

.echo-tel {
    width: 430px;
    max-width: 100%;
    margin: 0 auto;
    border: 10px solid #1a1a2e;
    border-radius: 32px;
    background: var(--echo-fond);
    padding: 16px 14px 10px;
    box-shadow: 0 12px 34px rgba(0, 0, 0, 0.18);
}

.echo-tel-encoche {
    width: 96px;
    height: 6px;
    border-radius: 4px;
    background: #1a1a2e;
    margin: 0 auto 12px;
}

.echo-tel-barre {
    width: 110px;
    height: 4px;
    border-radius: 3px;
    background: var(--echo-bordure-forte);
    margin: 12px auto 4px;
}

.echo-notif {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 4px;
    border-bottom: 1px solid #e8edf3;
}

.echo-notif-ico {
    width: 40px;
    height: 40px;
    object-fit: contain;
    flex: 0 0 auto;
}

.echo-notif-corps {
    flex: 1;
    min-width: 0;
}

.echo-notif-titre {
    font-size: var(--echo-t-corps);
    font-weight: 700;
    color: var(--echo-bleu);
    margin: 0;
}

.echo-notif-ligne {
    font-size: var(--echo-t-secondaire);
    color: #526180;
    line-height: 1.6;
    margin: 6px 0 0;
}

.echo-notif-date {
    font-size: var(--echo-t-secondaire);
    color: #526180;
    margin: 2px 0 0;
}

.echo-notif-retour {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 0 0 auto;
    align-items: center;
    padding-top: 4px;
}

.echo-notif-retour img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.echo-notif-pied {
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 12px 0 4px;
}

.echo-notif-pied img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.echo-notif-pied .echo-heidi {
    border-radius: 50%;
    border: 2px solid var(--echo-bleu);
}

/* ==========================================================================
   12. BARRE D'ALERTE DES ANIMATIONS
   Le message apparaît au moment de l'événement, en CSS seul.
   ========================================================================== */

.echo-anim {
    border: 1px solid var(--echo-bordure);
    overflow: hidden;
    background: var(--echo-fond);
}

.echo-anim-barre {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    min-height: 56px;
    background: var(--echo-fond-gris);
    border-bottom: 1px solid var(--echo-bordure);
}

.echo-anim-notif {
    display: flex;
    align-items: center;
    gap: 11px;
    flex: 1;
    min-width: 0;
    opacity: 0;
}

.echo-anim-notif img {
    width: 22px;
    height: 22px;
    object-fit: contain;
    flex-shrink: 0;
}

.echo-anim-notif span {
    font-size: var(--echo-t-petit);
    color: var(--echo-texte-doux);
    line-height: 1.4;
}

@keyframes echoNotifCycle {
    0%, 45% { opacity: 0; transform: translateY(-4px); }
    52%, 88% { opacity: 1; transform: translateY(0); }
    95%, 100% { opacity: 0; transform: translateY(-4px); }
}

.echo-anim-notif.echo-c14 { animation: echoNotifCycle 14s ease-in-out infinite; }
.echo-anim-notif.echo-c16 { animation: echoNotifCycle 16s ease-in-out infinite; }
.echo-anim-notif.echo-c18 { animation: echoNotifCycle 18s ease-in-out infinite; }

.echo-anim-bouton {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--echo-bordure-forte);
    background: var(--echo-fond);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex: 0 0 auto;
    transition: all 0.15s;
}

.echo-anim-bouton:hover {
    border-color: var(--echo-bleu);
    background: var(--echo-bleu-voile);
}

.echo-anim-bouton img {
    width: 16px;
    height: 16px;
    object-fit: contain;
}

.echo-anim-scene svg {
    width: 100%;
    height: auto;
    display: block;
}

/* ==========================================================================
   13. BOUTONS
   Bleu plein, texte blanc. Même langage que les boutons du menu.
   ========================================================================== */

.echo-bouton {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    height: 44px;
    padding: 0 20px;
    border-radius: 8px;
    border: 1px solid var(--echo-bordure);
    background: var(--echo-fond);
    font-family: var(--echo-police);
    font-size: var(--echo-t-petit);
    font-weight: 600;
    color: var(--echo-texte);
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.15s;
}

.echo-bouton:hover {
    border-color: var(--echo-bleu);
    background: #f0f9ff;
    color: var(--echo-bleu);
}

.echo-bouton img {
    width: 20px;
    height: 20px;
    object-fit: contain;
    flex-shrink: 0;
}

.echo-bouton.echo-fixe {
    width: 210px;
    padding: 0;
}

/* Un bouton qui est un lien ne doit pas être souligné. */
a.echo-bouton {
    text-decoration: none;
}

/* ==========================================================================
   13 bis. TARIF
   Composant autonome, posé à droite du texte auquel il se rapporte ou seul.
   Couleurs et typographie définies ici et nulle part ailleurs.
   ========================================================================== */

.echo-tarif {
    --echo-tarif-teinte: #137fa5;
    display: inline-block;
    background: #e7f3f7;
    padding: 16px 22px;
    text-align: left;
    font-family: var(--echo-police);
}

.echo-tarif-avant {
    display: block;
    font-size: 0.68rem;
    font-weight: 700;
    color: #5c8494;
    line-height: 1.2;
}

.echo-tarif-prix {
    display: block;
    font-family: 'Space Grotesk', var(--echo-police);
    font-weight: 700;
    font-size: 1.85rem;
    color: var(--echo-tarif-teinte);
    line-height: 1.2;
    white-space: nowrap;
}

.echo-tarif-unite {
    display: block;
    font-size: var(--echo-t-mention);
    font-weight: 600;
    color: #4a7484;
    line-height: 1.4;
}

.echo-tarif-desc {
    display: block;
    max-width: 240px;
    margin-top: 8px;
    font-size: var(--echo-t-mention);
    color: #4a7484;
    line-height: 1.6;
}

/* Le tarif se pose à droite du contenu auquel il se rapporte */
.echo-tarif-ligne {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 32px;
}

.echo-tarif-ligne > :first-child {
    flex: 1;
    min-width: 0;
}

.echo-tarif-ligne > .echo-tarif {
    flex: 0 0 auto;
}

@media (max-width: 767px) {
    .echo-tarif {
        padding: 14px 18px;
    }

    .echo-tarif-prix {
        font-size: 1.6rem;
    }

    .echo-tarif-ligne {
        flex-direction: column;
        gap: 18px;
    }

    .echo-tarif-desc {
        max-width: none;
    }
}

/* ==========================================================================
   13 ter. LISTE À FILETS
   Une ligne par entrée, terme en gras suivi de sa précision.
   Utilisée sur les fiches appareils et sur la page Intégrations & APIs.
   ========================================================================== */

.echo-liste {
    list-style: none;
    padding: 0;
    margin: 0;
    border-top: 1px solid var(--echo-texte-clair);
}

.echo-liste li {
    font-size: var(--echo-t-petit);
    color: var(--echo-texte-doux);
    line-height: 1.6;
    padding: 10px 0;
    border-bottom: 1px solid var(--echo-bordure);
}

.echo-liste li strong {
    color: var(--echo-texte);
    font-weight: 700;
}

/* ==========================================================================
   13 quater. BLOC PÉDAGOGIQUE
   Fond gris léger, aucun filet. Sert à démystifier une idée reçue
   avant d'entrer dans le détail d'un appareil.
   ========================================================================== */

.echo-demystif {
    background: #f6f8fa;
    padding: 30px 32px;
    margin: var(--echo-espace-bloc) 0 var(--echo-espace-section);
}

.echo-demystif-titre {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
}

.echo-demystif-titre img {
    width: 42px;
    height: 42px;
    object-fit: contain;
    flex-shrink: 0;
}

.echo-demystif-titre h2 {
    margin: 0;
}

.echo-demystif .echo-p:last-child {
    margin-bottom: 0;
}

@media (max-width: 767px) {
    .echo-demystif {
        padding: 22px 20px;
    }
}

/* ==========================================================================
   13 quinquies. ESPACE ÉCHO
   Composants communs aux pages de l'espace sécurisé : espace, acces,
   commander (catalogue), espace-panier. Une seule définition ici,
   les pages ne gardent que ce qui leur est propre.
   L'espace écho s'utilise sur ordinateur uniquement : aucune variante
   tablette ni smartphone, le gabarit en ferme l'accès.
   ========================================================================== */

/* Bandeau de titre sur image. L'image se donne par page :
   <section class="echo-bandeau" style="background-image:url('/images/es1.png')"> */
.echo-bandeau {
    position: relative;
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    padding: 70px 40px 56px;
    margin-bottom: var(--echo-espace-bloc);
}

.echo-bandeau::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(1, 38, 63, 0.72) 0%, rgba(1, 38, 63, 0.35) 55%, rgba(1, 38, 63, 0.05) 100%);
}

.echo-bandeau > * {
    position: relative;
}

.echo-bandeau .echo-t-page,
.echo-bandeau .echo-t-section {
    color: #fff;
    margin: 0 0 8px;
}

.echo-bandeau .echo-accroche {
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
}

/* Bandeau collé au bloc qui le suit (bloc compte) */
.echo-bandeau.echo-colle {
    margin-bottom: 0;
}

/* Bande d'une rubrique, plus basse, titre seul */
.echo-bandeau.echo-bandeau-rubrique {
    padding: 90px 40px 70px;
    margin-bottom: 22px;
}

.echo-bandeau.echo-bandeau-rubrique .echo-t-section {
    margin: 0;
}

/* Bloc compte : fond gris léger, collé sous le bandeau, sans contour.
   Connecté en tant que, panier, choix de la devise. */
.echo-compte {
    background: var(--echo-fond-gris);
    padding: 22px 40px;
    margin-bottom: var(--echo-espace-bloc);
}

.echo-compte-haut {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--echo-bordure);
}

.echo-compte-lib {
    display: block;
    font-size: var(--echo-t-mention);
    color: var(--echo-texte-clair);
    margin-bottom: 4px;
}

.echo-compte-nom {
    font-size: var(--echo-t-corps);
    font-weight: 700;
    color: var(--echo-bleu);
}

.echo-compte-panier {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

.echo-compte-panier img {
    width: 34px;
    height: 34px;
    object-fit: contain;
}

.echo-compte-panier span {
    font-size: var(--echo-t-petit);
    font-weight: 600;
    color: var(--echo-texte);
}

.echo-compte-ligne {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    padding-top: 18px;
}

.echo-compte-ligne > span {
    font-size: var(--echo-t-petit);
    font-weight: 600;
    color: var(--echo-texte);
}

.echo-compte .echo-info {
    margin: 16px 0 0;
}

/* Pastille de nombre, bleue */
.echo-pastille-nb {
    display: inline-block;
    min-width: 26px;
    padding: 0 8px;
    border-radius: 13px;
    background: var(--echo-bleu);
    color: #fff;
    font-size: var(--echo-t-mention);
    font-weight: 700;
    line-height: 26px;
    text-align: center;
}

.echo-pastille-nb:empty {
    display: none;
}

/* Encart d'information : image et texte, jamais de filet */
.echo-info {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: var(--echo-espace-bloc);
}

.echo-info img {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    object-fit: contain;
}

.echo-info p {
    font-size: var(--echo-t-petit);
    color: var(--echo-texte-doux);
    line-height: 1.7;
    margin: 0;
}

/* Rangée de boutons à choix unique (devise, durée d'engagement) :
   largeurs égales, texte centré */
.echo-choix {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.echo-choix .echo-bouton {
    width: 150px;
    padding: 0;
    justify-content: center;
    text-align: center;
}

.echo-choix.echo-choix-court .echo-bouton {
    width: 90px;
}

.echo-choix .echo-bouton.echo-choisi {
    border-color: var(--echo-bleu);
    background: var(--echo-bleu-voile);
    color: var(--echo-bleu);
}

.echo-choix .echo-bouton:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* Compteur de quantité : moins, valeur, plus */
.echo-compteur {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.echo-compteur-btn {
    width: 28px;
    height: 28px;
    border: 1.5px solid var(--echo-bordure);
    border-radius: 50%;
    background: var(--echo-fond);
    font-family: var(--echo-police);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--echo-bleu);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
}

.echo-compteur-btn:hover {
    border-color: var(--echo-bleu);
    background: var(--echo-bleu-voile);
}

.echo-compteur-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
    background: var(--echo-fond);
    border-color: var(--echo-bordure);
}

.echo-compteur-val {
    min-width: 22px;
    font-size: var(--echo-t-petit);
    font-weight: 700;
    color: var(--echo-texte);
    text-align: center;
}

/* Coche de sélection au panier ; la ligne ou la carte parente porte .echo-choisi */
.echo-coche {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid var(--echo-bordure);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: #fff;
    cursor: pointer;
    transition: all 0.2s;
}

.echo-choisi .echo-coche {
    background: var(--echo-bleu);
    border-color: var(--echo-bleu);
}

/* ==========================================================================
   14. TABLETTE (max 1024px)
   ========================================================================== */

@media (max-width: 1024px) {
    :root {
        --echo-marge-laterale: 24px;
    }

    .echo-module,
    .echo-module.echo-inverse {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .echo-module.echo-inverse .echo-module-texte {
        order: 1;
    }

    .echo-module.echo-inverse .echo-module-visuel {
        order: 2;
    }

    .echo-vignettes,
    .echo-vignettes.echo-colonnes-3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 24px;
    }

    .echo-vignettes.echo-filets .echo-vignette:nth-child(2n) {
        border-right: none;
    }
}

/* ==========================================================================
   15. MOBILE (max 767px)
   ========================================================================== */

@media (max-width: 767px) {
    :root {
        --echo-marge-laterale: 16px;
        --echo-t-page: 1.6rem;
        --echo-t-accroche: 0.95rem;
        --echo-t-section: 1.25rem;
        --echo-t-sous-section: 1.1rem;
        --echo-t-corps: 0.9rem;
        --echo-t-secondaire: 0.85rem;
        --echo-t-petit: 0.8rem;
        --echo-espace-section: 36px;
        --echo-espace-bloc: 28px;
    }

    .echo-entete {
        gap: 16px;
    }

    .echo-filet {
        margin: 32px auto;
    }

    .echo-module {
        padding: 0 0 36px;
    }

    .echo-carrousel,
    .echo-image {
        height: 240px;
    }

    .echo-vignettes,
    .echo-vignettes.echo-colonnes-3 {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .echo-vignettes.echo-filets {
        border-top: none;
    }

    .echo-vignettes.echo-filets .echo-vignette {
        padding: 18px 0;
        border-right: none;
        border-bottom: 1px solid var(--echo-bordure);
    }

    .echo-vignettes.echo-filets .echo-vignette:last-child {
        border-bottom: none;
    }

    /* La coque de téléphone prend la largeur disponible */
    .echo-tel {
        width: 100%;
        border-width: 6px;
        border-radius: 24px;
        padding: 12px 10px 8px;
    }

    .echo-notif {
        gap: 9px;
        padding: 12px 2px;
    }

    .echo-notif-ico {
        width: 32px;
        height: 32px;
    }

    .echo-notif-retour {
        gap: 8px;
    }

    .echo-notif-retour img {
        width: 20px;
        height: 20px;
    }

    .echo-notif-pied img {
        width: 24px;
        height: 24px;
    }

    /* Un tableau à cinq colonnes tient sur un téléphone à condition de
       resserrer les cellules et de laisser les en-têtes passer sur deux
       lignes. Le défilement latéral ne sert plus que de filet de sécurité
       pour un tableau qui aurait davantage de colonnes. */
    .echo-tableau {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .echo-tableau table {
        min-width: 0;
    }

    .echo-tableau th {
        padding: 8px 3px;
        font-size: 0.62rem;
        white-space: normal;
        line-height: 1.25;
    }

    .echo-tableau th:first-child {
        padding-left: 10px;
        width: 62px;
    }

    .echo-tableau th img {
        width: 20px;
        height: 20px;
    }

    .echo-tableau td {
        padding: 9px 3px;
        font-size: 0.72rem;
    }

    .echo-tableau td:first-child {
        padding-left: 10px;
    }

    .echo-barre-lib {
        width: 88px;
    }

    /* La bande « disponible sur » passe à la ligne, le bouton dessous. */
    .echo-dispo {
        flex-wrap: wrap;
    }

    .echo-dispo .echo-bouton {
        margin-left: 0;
        margin-top: 6px;
    }

    .echo-bouton.echo-fixe {
        width: 100%;
    }

    .echo-anim-barre {
        min-height: 50px;
        padding: 8px 12px;
    }

    .echo-anim-notif img {
        width: 20px;
        height: 20px;
    }

    .echo-anim-bouton {
        width: 32px;
        height: 32px;
    }
}

/* ==========================================================================
   16. PETIT MOBILE (max 400px)
   ========================================================================== */

@media (max-width: 400px) {
    :root {
        --echo-t-page: 1.4rem;
        --echo-t-section: 1.15rem;
    }

    .echo-entete {
        gap: 12px;
    }

    .echo-tableau th {
        font-size: 0.58rem;
    }

    .echo-tableau td {
        font-size: 0.68rem;
    }

    .echo-tableau th:first-child {
        width: 54px;
    }
}

/* ==========================================================================
   17. ACCESSIBILITÉ
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {

    .echo-slide,
    .echo-point,
    .echo-bouton,
    .echo-anim-bouton,
    .echo-compteur-btn,
    .echo-coche {
        transition: none;
    }

    .echo-ecran .echo-ecran-slide {
        transition: none;
    }

    .echo-anim-notif.echo-c14,
    .echo-anim-notif.echo-c16,
    .echo-anim-notif.echo-c18 {
        animation: none;
        opacity: 1;
    }
}

.echo-page :focus-visible {
    outline: 2px solid var(--echo-bleu);
    outline-offset: 2px;
}