/* ==========================================================================
   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);
}

/* Conteneur gris d'une page, moule de l'accueil : jamais de contour */
.echo-boite {
    background: var(--echo-fond-gris);
    padding: 28px 32px;
    margin: 0 0 var(--echo-espace-bloc);
}

/* Titre bleu posé dans un conteneur */
.echo-boite-titre {
    font-size: var(--echo-t-sous-section);
    font-weight: 700;
    color: var(--echo-bleu);
    line-height: 1.25;
    margin: 0 0 18px;
}

/* Phrase courte en bleu, en fin de texte */
.echo-sec {
    font-size: var(--echo-t-sous-section);
    font-weight: 700;
    color: var(--echo-bleu);
    line-height: 1.3;
    margin: 0;
}

/* Petit texte qui suit un bouton dans un conteneur */
.echo-boite > .echo-p-petit {
    margin-top: 18px;
}

/* Deux conteneurs côte à côte, l'un sous l'autre sur smartphone */
.echo-deux {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
    margin-bottom: var(--echo-espace-bloc);
}

.echo-deux > .echo-boite {
    margin: 0;
    display: flex;
    flex-direction: column;
}

/* Bouton du socle sur toute la largeur de son conteneur */
.echo-bouton.echo-large {
    width: 100%;
}

/* Champ de saisie */
.echo-champ {
    width: 100%;
    margin: 0 0 12px;
}

.echo-champ input {
    width: 100%;
    height: 44px;
    padding: 0 14px;
    border: 1px solid var(--echo-bordure);
    border-radius: 8px;
    background: var(--echo-fond);
    font-family: var(--echo-police);
    font-size: var(--echo-t-petit);
    color: var(--echo-texte);
    outline: none;
}

.echo-champ input:focus {
    border-color: var(--echo-bleu);
}

/* Séparateur « ou par email » */
.echo-ou {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 16px 0;
    font-size: var(--echo-t-mention);
    color: var(--echo-texte-clair);
}

.echo-ou::before,
.echo-ou::after {
    content: '';
    flex: 1;
    border-top: 1px solid var(--echo-bordure);
}

/* Message de retour : fond bleu voile, jamais de filet */
.echo-message {
    display: none;
    margin-top: 14px;
    padding: 12px 14px;
    background: var(--echo-bleu-voile);
    font-size: var(--echo-t-petit);
    color: var(--echo-texte);
    line-height: 1.6;
}

.echo-message.echo-visible {
    display: block;
}

/* Se déconnecter : image deconnexion.png et son mot, comme dans l'app */
.echo-deconnexion {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 0;
    border: none;
    background: none;
    font-family: var(--echo-police);
    font-size: var(--echo-t-petit);
    font-weight: 600;
    color: var(--echo-texte);
    white-space: nowrap;
    cursor: pointer;
    transition: color 0.15s;
}

.echo-deconnexion img {
    width: 26px;
    height: 26px;
    object-fit: contain;
}

.echo-deconnexion:hover {
    color: var(--echo-bleu);
}

/* Identité du bloc compte : un email long passe à la ligne */
.echo-compte-haut > div {
    min-width: 0;
    overflow-wrap: anywhere;
}

/* Rond d'accès sous un conteneur, à gauche, comme sur l'accueil */
.echo-acces.echo-acces-sous {
    width: auto;
    white-space: nowrap;
    margin: -18px 0 var(--echo-espace-bloc);
}

/* Pastille de nombre posée à côté d'un titre de section */
.echo-t-section .echo-pastille-nb {
    vertical-align: middle;
    margin-left: 10px;
}

/* Attente du chargement */
.echo-attente {
    padding: 40px 0;
    font-size: var(--echo-t-petit);
    color: var(--echo-texte-clair);
}

/* Formulaires : libellé, liste de choix, astérisque d'un champ obligatoire */
.echo-champ label {
    display: block;
    font-size: var(--echo-t-petit);
    font-weight: 600;
    color: var(--echo-texte);
    margin-bottom: 6px;
}

.echo-champ select {
    width: 100%;
    height: 44px;
    padding: 0 10px;
    border: 1px solid var(--echo-bordure);
    border-radius: 8px;
    background: var(--echo-fond);
    font-family: var(--echo-police);
    font-size: var(--echo-t-petit);
    color: var(--echo-texte);
    outline: none;
}

.echo-champ select:focus {
    border-color: var(--echo-bleu);
}

.echo-oblig {
    color: var(--echo-bleu);
}

/* Deux champs sur une ligne ; .echo-court pour un champ étroit (NPA) */
.echo-rang {
    display: flex;
    gap: 18px;
}

.echo-rang > .echo-champ {
    flex: 1;
    min-width: 0;
}

.echo-rang > .echo-champ.echo-court {
    flex: 0 0 160px;
}

/* Téléphone : indicatif puis numéro */
.echo-tel {
    display: flex;
    gap: 10px;
}

.echo-tel select {
    flex: 0 0 110px;
    width: auto;
}

.echo-tel input {
    flex: 1;
    min-width: 0;
}

/* Case des conditions générales, jamais de filet */
.echo-cgv {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 0 0 18px;
    font-size: var(--echo-t-petit);
    color: var(--echo-texte-doux);
    line-height: 1.7;
    cursor: pointer;
}

.echo-cgv input {
    width: 20px;
    height: 20px;
    margin-top: 3px;
    accent-color: var(--echo-bleu);
    flex-shrink: 0;
    cursor: pointer;
}

.echo-cgv a {
    color: var(--echo-bleu);
    font-weight: 600;
    text-decoration: underline;
    cursor: pointer;
}

/* Champ du code à six chiffres */
.echo-champ.echo-code {
    max-width: 260px;
}

.echo-champ.echo-code input {
    height: 60px;
    font-size: 1.6rem;
    letter-spacing: 10px;
    text-align: center;
}

@media (max-width: 767px) {
    .echo-rang {
        flex-direction: column;
        gap: 0;
    }

    .echo-rang > .echo-champ.echo-court {
        flex: 1 1 auto;
    }

    .echo-tel select {
        flex: 0 0 96px;
    }
}

/* Rubrique du catalogue : bande, conteneur, tableau */
.echo-rubrique {
    padding: 0 0 40px;
}

/* Haut d'un conteneur : texte à gauche, chiffre fort à droite, moule de l'accueil */
.echo-haut {
    display: flex;
    align-items: flex-start;
    gap: 32px;
}

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

.echo-chiffre {
    flex: 0 0 220px;
    background: var(--echo-bleu-voile);
    padding: 18px 20px;
}

.echo-chiffre b {
    display: block;
    font-size: 2.6rem;
    font-weight: 800;
    line-height: 1;
    color: var(--echo-bleu);
    margin-bottom: 8px;
}

.echo-chiffre span {
    font-size: var(--echo-t-petit);
    color: var(--echo-texte);
    line-height: 1.5;
}

/* Vignettes sous un filet dans un conteneur ; cinq colonnes au besoin */
.echo-boite-vignettes {
    margin-top: 26px;
    padding-top: 22px;
    border-top: 1px solid var(--echo-bordure);
}

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

/* Bande de rubrique devenue un appel (forfaits, dès dix trackers simulés) */
.echo-bandeau.echo-appel::before {
    background: linear-gradient(90deg, rgba(11, 122, 185, 0.95) 0%, rgba(11, 122, 185, 0.8) 60%, rgba(11, 122, 185, 0.45) 100%);
}

.echo-bandeau.echo-appel .echo-t-section {
    font-size: calc(var(--echo-t-section) * 1.15);
}

/* Tableau du catalogue et du panier ; une fiche par ligne sur smartphone */
.echo-catalogue {
    width: 100%;
    border-collapse: collapse;
    border-top: 1px solid var(--echo-texte-clair);
}

.echo-catalogue th {
    text-align: left;
    padding: 10px 12px;
    font-size: var(--echo-t-mention);
    font-weight: 700;
    color: var(--echo-texte-clair);
    border-bottom: 1px solid var(--echo-bordure);
    white-space: nowrap;
}

.echo-catalogue td {
    padding: 12px;
    vertical-align: middle;
    border-bottom: 1px solid var(--echo-bordure);
    font-size: var(--echo-t-petit);
}

.echo-catalogue tr.echo-choisi {
    background: var(--echo-bleu-voile);
}

.echo-catalogue tr.echo-absent {
    opacity: 0.45;
}

.echo-catalogue tr.echo-cliquable {
    cursor: pointer;
    transition: background 0.15s;
}

.echo-catalogue tr.echo-cliquable:hover {
    background: var(--echo-fond-gris);
}

.echo-catalogue tr.echo-cliquable.echo-choisi:hover {
    background: var(--echo-bleu-voile);
}

.echo-col-coche {
    width: 40px;
    text-align: center;
}

.echo-col-dispo {
    width: 110px;
}

.echo-col-qte,
.echo-catalogue th.echo-col-qte {
    width: 130px;
    text-align: center;
}

.echo-col-total,
.echo-catalogue th.echo-col-total {
    width: 170px;
    text-align: right;
}

.echo-catalogue td.echo-nom {
    font-weight: 700;
    color: var(--echo-bleu);
}

.echo-sous {
    display: block;
    margin-top: 2px;
    font-size: var(--echo-t-mention);
    font-weight: 400;
    color: var(--echo-texte-clair);
}

/* Disponible : point bleu oui, point gris non */
.echo-etat {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: var(--echo-t-mention);
    font-weight: 600;
}

.echo-etat::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.echo-etat.echo-oui {
    color: var(--echo-bleu);
}

.echo-etat.echo-oui::before {
    background: var(--echo-bleu);
}

.echo-etat.echo-non {
    color: var(--echo-texte-clair);
}

.echo-etat.echo-non::before {
    background: var(--echo-bordure);
}

/* Prix et totaux */
.echo-prix {
    font-weight: 700;
    color: var(--echo-bleu);
    white-space: nowrap;
}

.echo-prix small {
    font-weight: 400;
    color: var(--echo-texte-clair);
}

.echo-catalogue td.echo-vide {
    padding: 14px 12px;
    font-size: var(--echo-t-petit);
    color: var(--echo-texte-clair);
}

.echo-catalogue + .echo-p-petit {
    margin-top: 14px;
}

/* Suggestion : fond bleu voile, jamais de contour */
.echo-suggestion {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--echo-bleu-voile);
    padding: 18px 22px;
    margin-bottom: var(--echo-espace-section);
}

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

.echo-suggestion-texte {
    flex: 1;
    min-width: 0;
}

.echo-suggestion-texte b {
    display: block;
    margin-bottom: 4px;
    font-size: var(--echo-t-petit);
    color: var(--echo-bleu);
}

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

@media (max-width: 1024px) {
    .echo-vignettes.echo-colonnes-5 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .echo-haut {
        flex-direction: column;
        gap: 18px;
    }

    .echo-chiffre {
        flex: none;
        width: 100%;
    }

    .echo-chiffre b {
        font-size: 2.1rem;
    }

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

    /* Une ligne = une fiche : la coche à gauche, chaque valeur précédée de son libellé */
    .echo-catalogue thead {
        display: none;
    }

    .echo-catalogue,
    .echo-catalogue tbody,
    .echo-catalogue tr,
    .echo-catalogue td {
        display: block;
        width: 100%;
    }

    .echo-catalogue tr {
        position: relative;
        padding: 14px 12px 14px 46px;
        border-bottom: 1px solid var(--echo-bordure);
    }

    .echo-catalogue.echo-sans-coche tr,
    .echo-catalogue tr.echo-ligne-vide {
        padding-left: 12px;
    }

    .echo-catalogue td {
        width: auto;
        padding: 3px 0;
        border: none;
        text-align: left;
    }

    .echo-catalogue td.echo-col-coche {
        position: absolute;
        left: 12px;
        top: 16px;
        padding: 0;
    }

    .echo-catalogue td.echo-nom {
        padding-bottom: 6px;
    }

    .echo-catalogue td:empty {
        display: none;
    }

    .echo-catalogue td[data-l] {
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .echo-catalogue td[data-l]::before {
        content: attr(data-l);
        flex: 0 0 120px;
        font-size: var(--echo-t-mention);
        font-weight: 600;
        color: var(--echo-texte-clair);
    }

    .echo-suggestion {
        flex-wrap: wrap;
    }

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

/* Panier : formule, bouton Retirer, montant sur deux lignes */
.echo-catalogue td.echo-formule {
    font-size: var(--echo-t-mention);
    color: var(--echo-texte-doux);
}

.echo-catalogue td.echo-col-total {
    line-height: 1.7;
}

.echo-col-retirer {
    width: 110px;
    text-align: right;
}

.echo-retirer {
    padding: 0;
    border: none;
    background: none;
    font-family: var(--echo-police);
    font-size: var(--echo-t-mention);
    color: var(--echo-texte-clair);
    text-decoration: underline;
    cursor: pointer;
}

.echo-retirer:hover {
    color: var(--echo-bleu);
}

/* Totaux dans un conteneur gris */
.echo-ligne-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 5px 0;
    font-size: var(--echo-t-petit);
    color: var(--echo-texte);
}

.echo-ligne-total b {
    white-space: nowrap;
}

.echo-somme {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 6px 0;
    font-weight: 700;
    color: var(--echo-bleu);
}

.echo-somme b {
    font-size: 1.15rem;
    white-space: nowrap;
}

.echo-boite hr {
    border: none;
    border-top: 1px solid var(--echo-bordure);
    margin: 8px 0;
}

.echo-boite .echo-mention {
    margin-top: 10px;
}

/* Une question dans un conteneur : titre, texte court, choix ou champ */
.echo-question {
    margin-bottom: 22px;
}

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

.echo-question .echo-p-petit + .echo-choix,
.echo-question .echo-p-petit + .echo-champ {
    margin-top: 12px;
}

/* Zone de texte, champ désactivé, champ de date */
.echo-champ textarea {
    width: 100%;
    min-height: 90px;
    padding: 10px 14px;
    border: 1px solid var(--echo-bordure);
    border-radius: 8px;
    background: var(--echo-fond);
    font-family: var(--echo-police);
    font-size: var(--echo-t-petit);
    color: var(--echo-texte);
    outline: none;
    resize: vertical;
}

.echo-champ textarea:focus {
    border-color: var(--echo-bleu);
}

.echo-champ input:disabled,
.echo-champ select:disabled {
    background: var(--echo-fond-gris);
    color: var(--echo-texte-clair);
}

.echo-champ.echo-date {
    max-width: 220px;
}

/* Case à cocher et son texte (identique à…, engagements) */
.echo-case {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 0 0 14px;
    font-size: var(--echo-t-petit);
    color: var(--echo-texte);
    line-height: 1.7;
    cursor: pointer;
}

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

.echo-case input {
    width: 20px;
    height: 20px;
    margin-top: 3px;
    accent-color: var(--echo-bleu);
    flex-shrink: 0;
    cursor: pointer;
}

@media (max-width: 767px) {
    .echo-champ.echo-date {
        max-width: none;
    }
}

/* ==========================================================================
   13 septies. MOULE DE L'ACCUEIL, COMMUN À TOUTES LES PAGES
   Carrousel d'ouverture avec le titre posé dessus, vignettes à deux colonnes,
   traits de couleur des Géo-Zones.
   ========================================================================== */

.echo-ouverture {
    position: relative;
    width: 100%;
    aspect-ratio: 21 / 9;
    overflow: hidden;
    background: var(--echo-fond);
}

.echo-ouverture > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.echo-ouverture > img.echo-actif {
    opacity: 1;
}

/* Voile et titre posés sur le carrousel, dessin du bandeau */
.echo-ouverture::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    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-ouverture-texte {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 2;
    padding: 70px 40px 0;
}

.echo-ouverture-texte .echo-t-page {
    color: #fff;
    margin: 0 0 8px;
}

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

.echo-ouverture .echo-points {
    z-index: 3;
}

/* Premier titre de section sous le carrousel */
.echo-ouverture + .echo-t-section {
    margin-top: var(--echo-espace-bloc);
}

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

.echo-vignette .echo-liste {
    margin-top: 12px;
}

.echo-boite .echo-info {
    margin: 18px 0 0;
}

/* Trait de couleur d'un type de Géo-Zone, couleurs de l'application */
.echo-trait {
    display: block;
    width: 34px;
    height: 6px;
    border-radius: 3px;
    margin-bottom: 14px;
}

.echo-trait-gzo {
    background: #1960e6;
}

.echo-trait-sgzo {
    background: #0a1f5c;
}

.echo-trait-gzp {
    background: #16a800;
}

.echo-trait-gze {
    background: #f312b0;
}

@media (max-width: 1024px) {
    .echo-ouverture-texte {
        padding: 44px 32px 0;
    }
}

@media (max-width: 767px) {
    .echo-ouverture {
        aspect-ratio: auto;
        height: 260px;
    }

    .echo-ouverture-texte {
        padding: 28px 20px 0;
    }

    .echo-vignettes.echo-colonnes-2 {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    .echo-ouverture > img {
        transition: none;
    }
}

/* Ouverture sur une scène animée (SVG) : la scène garde ses proportions, rien n'est coupé */
.echo-ouverture.echo-scene {
    aspect-ratio: 1200 / 380;
    background: var(--echo-fond-image);
}

.echo-ouverture > svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
}

/* Conteneur posé juste sous l'ouverture */
.echo-ouverture + .echo-boite {
    margin-top: var(--echo-espace-bloc);
}

/* Ouverture sur une scène animée (SVG) au lieu d'images */
.echo-ouverture > svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
}

/* Conteneur posé juste sous l'ouverture */
.echo-ouverture + .echo-boite {
    margin-top: var(--echo-espace-bloc);
}

/* Espace écho, tablette */
@media (max-width: 1024px) {
    .echo-bandeau.echo-bandeau-rubrique {
        padding: 70px 32px 54px;
    }
}

/* Espace écho, smartphone */
@media (max-width: 767px) {
    .echo-bandeau {
        padding: 44px 20px 36px;
    }

    .echo-bandeau.echo-bandeau-rubrique {
        padding: 46px 20px 36px;
        margin-bottom: 16px;
    }

    .echo-compte {
        padding: 18px;
    }

    .echo-compte-haut {
        flex-wrap: wrap;
        gap: 14px;
    }

    .echo-choix .echo-bouton,
    .echo-choix.echo-choix-court .echo-bouton {
        flex: 1 1 0;
        width: auto;
        min-width: 0;
        padding: 0 8px;
    }

    .echo-boite {
        padding: 22px 18px;
    }

    .echo-deux {
        grid-template-columns: 1fr;
        gap: 18px;
    }
}

/* ==========================================================================
   13 sexies. RONDS ET CONTENEURS DE L'APP
   Le rond bicolore de l'app (fond en deux nuances de bleu clair, ombre portée,
   image fixe), et le conteneur gris léger sans contour avec son titre bleu.
   Servent au menu du gabarit et à toute page du site.
   ========================================================================== */

:root {
    --echo-rond-fond: linear-gradient(to right, #ECF5FE 50%, #DEEFFE 50%);
    --echo-rond-ombre: 0 2px 5px rgba(0, 0, 0, 0.5);
}

/* Rond seul : l'image est le rond. Petit (30 px) devant un titre, grand (50 px) en accès direct. */
.echo-rond {
    width: 50px;
    height: 50px;
    padding: 11px;
    border-radius: 50%;
    background: var(--echo-rond-fond);
    box-shadow: var(--echo-rond-ombre);
    object-fit: contain;
    flex-shrink: 0;
}

.echo-rond.echo-rond-petit {
    width: 30px;
    height: 30px;
    padding: 5px;
}

/* Accès direct : le rond et son mot dessous, centrés */
.echo-acces {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    width: 120px;
    font-size: var(--echo-t-petit);
    font-weight: 600;
    color: var(--echo-texte);
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.15s;
}

.echo-acces:hover {
    color: var(--echo-bleu);
}

.echo-acces:hover .echo-rond {
    transform: scale(1.06);
}

.echo-acces .echo-rond {
    transition: transform 0.15s;
}

/* Rangée d'accès directs, centrée */
.echo-acces-rangee {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 40px;
}

/* Conteneur gris léger, jamais de contour. Titre bleu avec son image en rond petit. */
.echo-conteneur {
    background: var(--echo-fond-gris);
    padding: 14px 16px 10px;
}

.echo-conteneur-titre {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: var(--echo-t-secondaire);
    font-weight: 700;
    color: var(--echo-bleu);
    margin-bottom: 8px;
}

@media (max-width: 767px) {
    .echo-acces {
        width: 78px;
        gap: 6px;
        font-size: var(--echo-t-mention);
    }

    .echo-acces-rangee {
        gap: 18px;
    }
}

/* ========== COUVERTURE RÉSEAU : logo, drapeaux, lien, pastilles de niveau ========== */

/* Grand logo posé à droite du texte, dans un conteneur */
.echo-haut > .echo-logo {
    flex: 0 0 220px;
    width: 220px;
    height: auto;
    object-fit: contain;
}

/* Drapeaux en tête de vignette */
.echo-drapeaux {
    display: flex;
    gap: 6px;
    margin-bottom: 14px;
}

.echo-vignette .echo-drapeaux img {
    width: 32px;
    height: 22px;
    object-fit: cover;
    margin: 0;
}

/* Lien simple sous une vignette, sans flèche */
.echo-lien {
    display: inline-block;
    margin-top: 10px;
    font-size: var(--echo-t-petit);
    font-weight: 600;
    color: var(--echo-bleu);
    text-decoration: none;
}

.echo-lien:hover {
    text-decoration: underline;
}

/* Pastille de couleur en tête de vignette (niveaux de couverture) */
.echo-pastille {
    display: block;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    margin-bottom: 12px;
}

.echo-pastille-bonne {
    background: #27ae60;
}

.echo-pastille-moyenne {
    background: #f39c12;
}

.echo-pastille-faible {
    background: #8897aa;
}

@media (max-width: 767px) {
    .echo-haut > .echo-logo {
        flex: none;
        width: 160px;
    }
}

/* ========== ACCESSOIRES : tarif, bloc produit, animaux, origine ========== */

/* Tarif seul en haut à droite du conteneur, sur toute sa largeur */
.echo-boite > .echo-prix {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 22px;
}

/* Texte et image à parts égales ; l'image est toujours entière, jamais rognée */
.echo-produit {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 32px;
    align-items: start;
}

.echo-produit.echo-inverse > .echo-produit-image {
    order: -1;
}

.echo-produit-image img {
    display: block;
    width: 100%;
    height: auto;
}

/* Animaux compatibles, posés sur une même ligne de base */
.echo-animaux {
    display: flex;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid var(--echo-bordure);
}

.echo-animaux img {
    display: block;
    object-fit: contain;
    object-position: bottom;
}

.echo-ani-canin {
    width: 62px;
    height: 62px;
}

.echo-ani-bovin {
    width: 84px;
    height: 84px;
}

.echo-ani-ovin,
.echo-ani-caprin {
    width: 48px;
    height: 48px;
}

.echo-ani-equin {
    width: 118px;
    height: 118px;
}

/* Ligne d'origine en bas de page */
.echo-origine {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 0 0 56px;
}

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

/* Tablette et smartphone : l'image passe au-dessus du texte, sur toute la largeur */
@media (max-width: 1024px) {
    .echo-produit {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .echo-produit > .echo-produit-image {
        order: -1;
    }
}

/* ========== ANALYSES : visuel de module, carte, fidélité au troupeau ========== */

/* Visuel non photographique (graphe, tableaux, carte, animation) à côté du texte */
.echo-produit-visuel {
    min-width: 0;
}

.echo-produit.echo-inverse > .echo-produit-visuel {
    order: -1;
}

/* Carte Mapbox, sans commandes, même rapport que le graphe */
.echo-carte {
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--echo-fond);
}

.echo-carte-toile {
    width: 100%;
    height: 100%;
}

.echo-carte .mapboxgl-ctrl-top-left,
.echo-carte .mapboxgl-ctrl-top-right,
.echo-carte .mapboxgl-ctrl-bottom-left {
    display: none !important;
}

.echo-carte .mapboxgl-ctrl-bottom-right {
    opacity: 0.55;
}

/* Fidélité au troupeau : l'animal suivi, la distance, le groupe */
.echo-fidelite {
    width: 100%;
    aspect-ratio: 4 / 3;
    background: var(--echo-fond);
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 16px;
    align-items: center;
    padding: 24px;
    overflow: hidden;
}

.echo-fid-principal {
    text-align: center;
    transition: transform 2.4s cubic-bezier(.45, .05, .25, 1);
}

.echo-fid-principal img {
    width: 118px;
    height: 118px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

.echo-fid-nom {
    font-size: var(--echo-t-petit);
    font-weight: 700;
    color: var(--echo-texte);
    margin-top: 8px;
}

.echo-fid-id {
    font-size: 0.68rem;
    color: var(--echo-texte-clair);
    margin-top: 2px;
}

.echo-fid-milieu {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.echo-fid-trait {
    width: 86px;
    height: 2px;
    background: var(--echo-bleu);
    position: relative;
}

.echo-fid-trait::before,
.echo-fid-trait::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 9px;
    height: 9px;
    border-top: 2px solid var(--echo-bleu);
    border-left: 2px solid var(--echo-bleu);
}

.echo-fid-trait::before {
    left: 0;
    transform: translateY(-50%) rotate(-45deg);
}

.echo-fid-trait::after {
    right: 0;
    transform: translateY(-50%) rotate(135deg);
}

.echo-fid-valeur {
    font-size: 2rem;
    font-weight: 800;
    color: var(--echo-bleu);
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.echo-fid-legende {
    font-size: 0.72rem;
    color: var(--echo-texte-clair);
    text-align: center;
}

.echo-fid-groupe {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.echo-fid-groupe img {
    width: 62px;
    height: 62px;
    object-fit: contain;
}

/* Tablette et smartphone : le visuel passe au-dessus du texte */
@media (max-width: 1024px) {
    .echo-produit > .echo-produit-visuel {
        order: -1;
    }
}

@media (max-width: 767px) {
    .echo-fidelite {
        grid-template-columns: 1fr;
        aspect-ratio: auto;
        gap: 20px;
        padding: 22px;
    }

    .echo-fid-principal img {
        width: 92px;
        height: 92px;
    }

    .echo-fid-groupe img {
        width: 52px;
        height: 52px;
    }
}

/* ========== ANALYSES : texte sous l'ouverture, logo officiel ========== */

/* Texte posé directement sous l'ouverture, pleine largeur, sans cadre */
.echo-ouverture + .echo-intro {
    margin-top: var(--echo-espace-bloc);
}

.echo-intro {
    margin-bottom: var(--echo-espace-bloc);
}

/* Logo officiel en grand, centré sous le texte d'introduction */
.echo-logo-officiel {
    display: block;
    width: 280px;
    max-width: 100%;
    height: auto;
    margin: 24px auto 0;
}

@media (max-width: 767px) {
    .echo-logo-officiel {
        width: 200px;
    }
}

/* ==========================================================================
   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,
    .echo-acces,
    .echo-acces .echo-rond {
        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;
}