/* Mise en page du site (en plus de ../commun.css). */
.conteneur { width: min(72rem, 100% - 2.5rem); margin-inline: auto; }
.etroit { width: min(46rem, 100% - 2.5rem); margin-inline: auto; }

/* En-tête */
.entete { background: var(--surface); border-bottom: 1px solid var(--trait); position: sticky; top: 0; z-index: 5; }
.entete .conteneur { display: flex; align-items: center; gap: 1.5rem; min-height: 4.2rem; flex-wrap: wrap; }
.entete nav { display: flex; gap: 1.4rem; margin-left: auto; align-items: center; flex-wrap: wrap; }
.entete nav a { color: var(--texte); text-decoration: none; font-weight: 600; }
.entete nav a[aria-current="page"] { color: var(--encre); box-shadow: inset 0 -2px var(--encre); }
@media (max-width: 760px) { .entete nav { margin-left: 0; gap: .9rem; font-size: .95rem; padding-bottom: .6rem; } }

/* Sections */
section { padding: 4.5rem 0; }
section + section { border-top: 1px solid var(--trait); }
.intro-page { padding: 3.5rem 0 2rem; }
.intro-page p { max-width: 40rem; font-size: 1.1rem; }

/* Accueil */
.accueil-haut { padding: 0; border-bottom: 1px solid var(--trait); }
.accueil-haut .conteneur { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: 3rem; align-items: center; padding: 4.5rem 0 4rem; }
.accueil-haut h1 { font-size: clamp(2.2rem, 4.8vw, 3.3rem); }
.accueil-haut .chapeau { font-size: 1.15rem; color: var(--texte-2); max-width: 32rem; }
.actions { display: flex; flex-wrap: wrap; gap: .7rem; margin: 1.6rem 0 1.2rem; }
.promesses { list-style: none; padding: 0; margin: 0; display: grid; gap: .35rem; color: var(--texte-2); font-size: .95rem; }
.promesses li { display: flex; gap: .5rem; align-items: center; }
.promesses svg { color: var(--encre); flex: none; }
@media (max-width: 860px) { .accueil-haut .conteneur { grid-template-columns: 1fr; padding: 3rem 0; } }

/* Fonctionnalités : liste alternée texte / aperçu, sans cartes identiques. */
.fonction { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 3rem; align-items: center; padding: 2.5rem 0; }
.fonction:nth-child(even) .fonction-visuel { order: -1; }
.fonction ul { padding-left: 1.2rem; color: var(--texte-2); }
@media (max-width: 860px) { .fonction { grid-template-columns: 1fr; gap: 1.5rem; } .fonction:nth-child(even) .fonction-visuel { order: 0; } }

.liste-courte { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 2rem 2.5rem; margin-top: 2rem; }
.liste-courte h3 { display: flex; gap: .55rem; align-items: center; }
.liste-courte h3 svg { color: var(--encre); flex: none; }
.liste-courte p { color: var(--texte-2); margin: 0; }

/* Schéma « où sont vos données » */
.schema { display: grid; grid-template-columns: 1fr auto 1fr; gap: 1rem; align-items: center; background: var(--surface); border: 1px solid var(--trait); border-radius: var(--r); padding: 1.6rem; }
.schema .poste, .schema .internet { text-align: center; display: grid; justify-items: center; gap: .3rem; }
.schema .internet { color: var(--texte-2); }
.schema .barre { font-weight: 700; color: var(--alerte); text-align: center; font-size: .9rem; }
@media (max-width: 700px) { .schema { grid-template-columns: 1fr; } }

/* Tarifs */
.offre { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 2.5rem; align-items: start; }
.carte-prix { background: var(--surface); border: 2px solid var(--encre); border-radius: 18px; padding: 2rem; box-shadow: var(--ombre); }
.prix { font: 800 3rem/1 var(--titre); margin: .6rem 0 .2rem; }
.prix small { font: 600 1rem var(--corps); color: var(--texte-2); }
.a-fixer { display: inline-block; background: #FFF6D6; color: #5A4300; border-radius: 6px; padding: 0 .35rem; font-size: .85rem; font-weight: 700; }
.coche { list-style: none; padding: 0; margin: 1.2rem 0 1.6rem; display: grid; gap: .55rem; }
.coche li { display: grid; grid-template-columns: 1.3rem 1fr; gap: .5rem; }
.coche li::before { content: ""; width: 1.1rem; height: 1.1rem; margin-top: .25rem; border-radius: 50%; background: var(--doux) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%232D4F9E' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/80% no-repeat; }
@media (max-width: 860px) { .offre { grid-template-columns: 1fr; } }

/* Questions fréquentes */
details { border-bottom: 1px solid var(--trait); padding: .9rem 0; }
summary { font-weight: 700; cursor: pointer; list-style-position: outside; }
details p { margin: .6rem 0 0; color: var(--texte-2); }

/* Formulaires de compte et d'achat */
.panneau { background: var(--surface); border: 1px solid var(--trait); border-radius: 16px; padding: 2rem; }
.etapes { display: flex; gap: .5rem; list-style: none; padding: 0; margin: 0 0 1.8rem; counter-reset: e; flex-wrap: wrap; }
.etapes li { counter-increment: e; display: flex; align-items: center; gap: .45rem; color: var(--texte-2); font-weight: 600; font-size: .95rem; }
.etapes li::before { content: counter(e); width: 1.6rem; height: 1.6rem; border-radius: 50%; display: grid; place-items: center; background: var(--doux); color: var(--encre); font-weight: 800; }
.etapes li[aria-current="step"] { color: var(--texte); }
.etapes li[aria-current="step"]::before { background: var(--encre); color: var(--sur-encre); }
.etapes li + li::after { order: -1; content: ""; width: 1.4rem; height: 2px; background: var(--trait); }
.deux-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2rem; align-items: start; }
@media (max-width: 860px) { .deux-col { grid-template-columns: 1fr; } }
.numero-licence { font: 700 1.35rem/1.3 ui-monospace, "Cascadia Mono", Consolas, monospace; letter-spacing: .06em; background: var(--doux); color: var(--texte); border-radius: 10px; padding: .7rem 1rem; display: inline-block; }

/* Espace client */
.client { display: grid; grid-template-columns: 14rem minmax(0, 1fr); gap: 2.5rem; padding: 2.5rem 0 4rem; align-items: start; }
.client-menu { display: grid; gap: .2rem; position: sticky; top: 5.5rem; }
.client-menu a { text-decoration: none; color: var(--texte); padding: .55rem .8rem; border-radius: 10px; font-weight: 600; }
.client-menu a[aria-current="page"] { background: var(--doux); color: var(--encre); }
.bloc { background: var(--surface); border: 1px solid var(--trait); border-radius: var(--r); padding: 1.5rem; margin-bottom: 1.5rem; }
.bloc h2 { font-size: 1.35rem; }
.ligne { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .6rem 1.5rem; align-items: center; padding: .9rem 0; border-top: 1px solid var(--trait); }
.ligne:first-of-type { border-top: 0; }
.ligne .quoi strong { display: block; }
.telechargements { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: 1rem; }
.telechargement { border: 1.5px solid var(--trait); border-radius: var(--r); padding: 1.1rem; display: grid; gap: .5rem; }
.telechargement.vous { border-color: var(--encre); }
@media (max-width: 860px) { .client { grid-template-columns: 1fr; } .client-menu { position: static; display: flex; flex-wrap: wrap; } }

/* Pages légales */
.legal { display: grid; grid-template-columns: 13rem minmax(0, 1fr); gap: 3rem; padding: 2.5rem 0 4rem; }
.legal nav { position: sticky; top: 5.5rem; display: grid; gap: .3rem; align-self: start; }
.legal nav a { text-decoration: none; color: var(--texte-2); }
.legal article { max-width: 44rem; }
.legal article h2 { margin-top: 2.5rem; }
.zone-sensible { border: 2px solid var(--alerte); }
.zone-sensible h2 { color: var(--alerte); }
.case { display: flex; gap: .6rem; align-items: flex-start; margin: 0 0 .8rem; }
.case input { margin-top: .3rem; flex: none; }
.a-rediger { border: 2px dashed var(--trait); border-radius: 10px; padding: 1rem; color: var(--texte-2); }
@media (max-width: 860px) { .legal { grid-template-columns: 1fr; } .legal nav { position: static; } }

/* Pied de page */
.pied { background: var(--surface); border-top: 1px solid var(--trait); padding: 2.5rem 0; font-size: .92rem; color: var(--texte-2); }
.pied .conteneur { display: flex; flex-wrap: wrap; gap: 1rem 2.5rem; justify-content: space-between; }
.pied nav { display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; }
.pied a { color: var(--texte-2); }
.pied .credit { justify-content: flex-end; margin-top: 1.5rem; }
.pied .credit a { display: inline-flex; align-items: center; gap: .35rem; white-space: nowrap; }
.pied .credit picture { display: inline-flex; flex: none; }
.pied .credit img { display: inline-block; height: 22px; width: auto; }

/* Aperçu du logiciel (capture factice, construite en HTML) */
.fenetre { border-radius: 14px; overflow: hidden; border: 1px solid var(--trait); background: var(--surface); box-shadow: var(--ombre); font-size: .8rem; line-height: 1.45; display: grid; grid-template-columns: 8.5rem minmax(0, 1fr); min-height: 19rem; color: var(--texte); }
.fenetre aside { background: var(--doux); padding: .8rem .6rem; display: flex; flex-direction: column; gap: .15rem; }
.fenetre aside .marque { font-size: .95rem; margin-bottom: .8rem; padding: .1rem .3rem; }
.fenetre aside span { padding: .4rem .55rem; border-radius: 8px; color: var(--texte-2); }
.fenetre aside span.actif { background: var(--surface); color: var(--texte); font-weight: 700; }
.fenetre aside .bas { margin-top: auto; }
.fenetre main { padding: .9rem 1rem; min-width: 0; }
.fenetre .qui { font: 800 1.05rem/1.2 var(--titre); }
.fenetre .onglets { display: flex; gap: .2rem; border-bottom: 1px solid var(--trait); margin: .5rem 0 .65rem; overflow: hidden; }
.fenetre .onglets span { padding: .3rem .4rem; color: var(--texte-2); white-space: nowrap; }
.fenetre .onglets span.actif { color: var(--encre); font-weight: 700; box-shadow: inset 0 -2px var(--encre); }
.fenetre .rappel { padding: .45rem .6rem; margin-bottom: .55rem; }
.fenetre .outils { display: flex; flex-wrap: wrap; gap: .2rem; margin-bottom: .35rem; }
.fenetre .outils i { font-style: normal; width: 1.55rem; height: 1.55rem; display: grid; place-items: center; border-radius: 6px; border: 1px solid var(--trait); background: var(--fond); }
.fenetre .outils i.micro { width: auto; padding: 0 .5rem; background: var(--encre); border-color: var(--encre); color: var(--sur-encre); font-weight: 700; white-space: nowrap; }
.fenetre .texte { border: 1.5px solid var(--encre); border-radius: 8px; padding: .5rem .6rem; min-height: 4.6rem; }
.fenetre mark { background: color-mix(in srgb, var(--surligneur) 70%, transparent); color: inherit; border-radius: 3px; padding: 0 .1em; }
.fenetre .boutons { display: flex; justify-content: flex-end; gap: .35rem; margin-top: .6rem; }
.fenetre .boutons span, .fenetre .bouton { border-radius: 999px; padding: .3rem .8rem; border: 1px solid var(--trait); white-space: nowrap; }
.fenetre .boutons span.go, .fenetre .bouton.go { background: var(--encre); border-color: var(--encre); color: var(--sur-encre); font-weight: 700; }
.fenetre aside .cherche { border: 1px solid var(--trait); background: var(--surface); margin-bottom: .45rem; font-size: .7rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fenetre .pastille { white-space: nowrap; font-size: .7rem; }
.fenetre aside .compte { float: right; padding: 0 .4rem; border-radius: 999px; background: var(--alerte); color: var(--surface); font-size: .68rem; font-weight: 700; }
.fenetre .fil { color: var(--texte-2); font-size: .72rem; margin-bottom: .25rem; }
.fenetre .tete { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .4rem .6rem; }
.fenetre .tete > div:first-child { flex: 1 1 11rem; min-width: 0; }
.fenetre .tete .boutons { margin: 0; }
.fenetre .champs { display: grid; grid-template-columns: auto auto minmax(0, 1fr); gap: .4rem; margin-bottom: .5rem; }
.fenetre .champs b, .fenetre .etiquette { display: block; font-size: .7rem; margin-bottom: .1rem; }
.fenetre .champ { border: 1px solid var(--trait); border-radius: 6px; padding: .15rem .4rem; background: var(--fond); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fenetre .champ.vide { color: var(--texte-2); }
.fenetre .menu-mini { display: flex; flex-direction: column; gap: .1rem; }
.fenetre .menu-mini span { padding: .25rem .45rem; border-radius: 7px; color: var(--texte-2); }
.fenetre .menu-mini span.actif { background: var(--doux); color: var(--texte); font-weight: 700; }
.sur-papier { padding: 2.2rem 1.6rem; border-radius: 18px; border: 1px solid var(--trait); background: var(--surface); }
@media (max-width: 560px) { .sur-papier { padding: 1.2rem; } .fenetre { grid-template-columns: 1fr; } .fenetre aside { display: none; } }

/* Aperçu de la page d'accueil du logiciel (patients du jour) */
.fenetre .carte-mini { border: 1px solid var(--trait); border-radius: 10px; padding: .55rem .6rem; background: var(--surface); min-width: 0; }
.fenetre .avatar { width: 1.7rem; height: 1.7rem; border-radius: 50%; display: grid; place-items: center; background: var(--doux); color: var(--encre); font-weight: 700; font-size: .7rem; flex: none; }
.fenetre .puce-mini { border: 1px solid var(--trait); border-radius: 999px; padding: .15rem .55rem; color: var(--texte-2); }
.fenetre .puce-mini.actif { border-color: var(--encre); color: var(--encre); font-weight: 700; background: var(--doux); }

/* Champ piège du formulaire de contact : invisible pour les personnes, rempli par les robots. */
.piege { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Espace client : formulaires « Modifier » dépliables, déconnexion présentée comme un lien du menu. */
.modifier { border: 0; padding: 0; text-align: right; }
.modifier[open] { width: 100%; max-width: 26rem; text-align: left; }
.modifier summary { list-style: none; display: inline-flex; cursor: pointer; }
.modifier summary::-webkit-details-marker { display: none; }
.modifier[open] summary { margin-bottom: .8rem; }
.lien-bouton { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; text-align: left; }
.client-menu .lien-bouton { padding: .55rem .8rem; border-radius: 10px; font-weight: 600; color: var(--texte-2); width: 100%; }
