/* Site public Doorvia (pages de présentation, métiers, ressources, pages légales) */
:root {
    --encre: #1e3a8a; --encre-fonce: #142a66; --corail: #ff6b4a; --texte: #1f2430; --doux: #5c6370;
    --fond: #f5f7fb; --carte: #ffffff; --bord: #e3e7ef; --vert: #2b8a3e;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; font-family: "Segoe UI", system-ui, -apple-system, Roboto, sans-serif; color: var(--texte); background: var(--fond); line-height: 1.6; }
a { color: var(--encre); }
img { max-width: 100%; display: block; }
.conteneur { width: min(1120px, 100% - 32px); margin: 0 auto; }
.etroit { width: min(800px, 100% - 32px); margin: 0 auto; }

/* En-tête */
.entete { position: sticky; top: 0; z-index: 10; background: rgba(255,255,255,.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--bord); }
.barre { display: flex; align-items: center; gap: 18px; height: 64px; }
.marque { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.25rem; color: var(--encre); text-decoration: none; }
.marque img { width: 34px; height: 34px; border-radius: 9px; }
.menu { display: flex; gap: 18px; margin-left: auto; align-items: center; }
.menu a { text-decoration: none; color: var(--texte); font-weight: 600; font-size: .95rem; }
.menu a:hover { color: var(--encre); }
.langues { position: relative; }
.langues summary { list-style: none; cursor: pointer; font-weight: 700; font-size: .9rem; padding: 6px 10px; border: 1px solid var(--bord); border-radius: 999px; background: #fff; }
.langues summary::-webkit-details-marker { display: none; }
.langues ul { position: absolute; right: 0; top: 40px; margin: 0; padding: 6px; list-style: none; background: #fff; border: 1px solid var(--bord); border-radius: 12px; box-shadow: 0 12px 30px rgba(20,42,102,.15); min-width: 150px; }
.langues li a { display: block; padding: 8px 12px; border-radius: 8px; text-decoration: none; color: var(--texte); font-weight: 600; }
.langues li a:hover, .langues li a[aria-current] { background: var(--fond); color: var(--encre); }
@media (max-width: 900px) { .menu a.secondaire { display: none; } }
@media (max-width: 520px) { .menu a.connexion { display: none; } .menu { gap: 10px; } }

/* Boutons */
.bouton { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 22px; border-radius: 999px; border: 0; font-weight: 700; font-size: 1rem; text-decoration: none; cursor: pointer; font-family: inherit; }
.bouton-corail { background: var(--corail); color: #fff !important; box-shadow: 0 8px 22px rgba(255,107,74,.35); }
.bouton-corail:hover { background: #f2532f; }
.bouton-clair { background: #fff; color: var(--encre) !important; border: 1.5px solid var(--bord); }
.menu .bouton { min-height: 40px; padding: 0 16px; font-size: .92rem; }

/* Fil d'Ariane */
.ariane { font-size: .88rem; color: rgba(255,255,255,.8); margin-bottom: 10px; }
.ariane a { color: #fff; text-decoration: none; }
.ariane span + span::before { content: "›"; margin: 0 8px; opacity: .7; }

/* Accroche */
.accroche { background: radial-gradient(circle at 80% 10%, #2c4fb3 0, var(--encre) 45%, var(--encre-fonce) 100%); color: #fff; overflow: hidden; }
.accroche .conteneur { padding: 56px 0 64px; }
.accroche.double .conteneur { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; padding: 72px 0 80px; }
.surtitre { display: inline-block; padding: 6px 14px; border-radius: 999px; background: rgba(255,255,255,.12); font-weight: 700; font-size: .85rem; letter-spacing: .3px; }
h1 { font-size: clamp(2rem, 4.6vw, 3.2rem); line-height: 1.12; margin: 16px 0; }
h1 em { font-style: normal; color: #ffb3a1; }
.accroche p.grand { font-size: 1.18rem; opacity: .93; max-width: 680px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 14px; }
.rassurance { font-size: .9rem; opacity: .8; }
@media (max-width: 860px) { .accroche.double .conteneur { grid-template-columns: 1fr; padding: 48px 0 56px; } }

/* Téléphone animé */
.telephone { position: relative; width: 290px; height: 600px; margin: 0 auto; border-radius: 44px; background: #0b1020; padding: 12px; box-shadow: 0 30px 80px rgba(0,0,0,.45), inset 0 0 0 2px #2a3350; }
.telephone::before { content: ""; position: absolute; top: 18px; left: 50%; width: 90px; height: 22px; transform: translateX(-50%); border-radius: 999px; background: #0b1020; z-index: 2; }
.ecran { position: relative; width: 100%; height: 100%; border-radius: 34px; overflow: hidden; background: #e9ecef; }
.ecran img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; opacity: 0; transition: opacity .9s ease; }
.ecran img.visible { opacity: 1; }
.legende-ecran { margin-top: 16px; text-align: center; font-weight: 700; min-height: 1.6em; }
.pastilles { display: flex; justify-content: center; gap: 6px; margin-top: 10px; }
.pastilles button { width: 9px; height: 9px; padding: 0; border-radius: 50%; border: 0; background: rgba(255,255,255,.35); cursor: pointer; }
.pastilles button.actif { background: #fff; width: 22px; border-radius: 999px; }

/* Sections */
section { padding: 72px 0; }
section.blanc { background: #fff; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); line-height: 1.2; margin: 0 0 14px; color: var(--encre); }
h3 { font-size: 1.15rem; margin: 10px 0 6px; }
.intro { max-width: 740px; font-size: 1.1rem; color: var(--doux); margin: 0 0 34px; }
.centre { text-align: center; }
.centre .intro { margin-left: auto; margin-right: auto; }
.grille-2, .grille-3, .grille-4 { display: grid; gap: 20px; }
.grille-2 { grid-template-columns: repeat(2, 1fr); }
.grille-3 { grid-template-columns: repeat(3, 1fr); }
.grille-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .grille-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 860px) { .grille-2, .grille-3 { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .grille-4 { grid-template-columns: 1fr; } }
.carte { background: var(--carte); border: 1px solid var(--bord); border-radius: 20px; padding: 24px; text-align: left; }
.carte p { margin: 0; color: var(--doux); }
a.carte { text-decoration: none; color: inherit; transition: transform .15s ease, box-shadow .15s ease; }
a.carte:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(20,42,102,.12); }
a.carte h3 { color: var(--encre); }
.icone { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: #eef2ff; color: var(--encre); font-size: 1.4rem; }
.etiquette { display: inline-block; padding: 4px 12px; border-radius: 999px; background: #fff1ed; color: #c2410c; font-weight: 700; font-size: .8rem; }

/* Fonction : texte + visuel */
.fonction { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; padding: 36px 0; }
.fonction.inverse .visuel { order: -1; }
.coche { padding: 0; list-style: none; margin: 18px 0 0; display: grid; gap: 10px; }
.coche li { padding-left: 30px; position: relative; }
.coche li::before { content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 50%; background: #e3f4ea url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12l4 4 8-8' fill='none' stroke='%232b8a3e' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat; }
.visuel { display: flex; justify-content: center; }
.mini-tel { width: 260px; border-radius: 34px; padding: 9px; background: #0b1020; box-shadow: 0 24px 60px rgba(20,42,102,.25); }
.mini-tel img { border-radius: 26px; aspect-ratio: 390 / 844; object-fit: cover; object-position: top; background: #e9ecef; }
@media (max-width: 860px) { .fonction { grid-template-columns: 1fr; gap: 26px; } .fonction.inverse .visuel { order: 0; } }

/* Animation carte + tournée */
.scene { width: 100%; max-width: 460px; aspect-ratio: 1; border-radius: 28px; background: #eef1ea; box-shadow: 0 24px 60px rgba(20,42,102,.18); overflow: hidden; }
.scene .rue { stroke: #fff; stroke-width: 14; fill: none; stroke-linecap: round; }
.scene .trajet { stroke: var(--encre); stroke-width: 5; fill: none; stroke-dasharray: 900; stroke-dashoffset: 900; animation: tracer 6s ease-in-out infinite; }
.scene .porte { transform-box: fill-box; transform-origin: center bottom; animation: apparaitre 6s ease-in-out infinite; }
@keyframes tracer { 0% { stroke-dashoffset: 900; } 60%, 100% { stroke-dashoffset: 0; } }
@keyframes apparaitre { 0%, 10% { transform: scale(0); } 18%, 100% { transform: scale(1); } }
.scene .onde { animation: onde 1.8s ease-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes onde { from { transform: scale(.4); opacity: .6; } to { transform: scale(2.2); opacity: 0; } }

/* Bande de chiffres */
.bande { background: var(--encre); color: #fff; padding: 48px 0; }
.bande .grille-4 { text-align: center; }
.bande strong { display: block; font-size: 2rem; }
.bande span { opacity: .85; }

/* Pastilles de liens (métiers) */
.puces { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.puces a, .puces span { padding: 10px 18px; border-radius: 999px; background: #fff; border: 1px solid var(--bord); font-weight: 600; text-decoration: none; color: var(--texte); }
.puces a:hover { border-color: var(--encre); color: var(--encre); }

/* Étapes numérotées */
ol.etapes { counter-reset: e; list-style: none; padding: 0; display: grid; gap: 12px; }
ol.etapes > li { counter-increment: e; position: relative; padding-left: 42px; }
ol.etapes > li::before { content: counter(e); position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: 50%; background: var(--encre); color: #fff; font-weight: 800; display: grid; place-items: center; font-size: .9rem; }

/* Tarifs */
.bascule { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--fond); border: 1px solid var(--bord); margin-bottom: 30px; }
.bascule button { border: 0; background: none; padding: 10px 18px; border-radius: 999px; font-weight: 700; cursor: pointer; color: var(--doux); font-family: inherit; }
.bascule button.actif { background: var(--encre); color: #fff; }
.offres { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; text-align: left; }
@media (max-width: 960px) { .offres { grid-template-columns: 1fr; } }
.offre { position: relative; background: #fff; border: 1.5px solid var(--bord); border-radius: 22px; padding: 28px; display: flex; flex-direction: column; gap: 10px; }
.offre.mise-en-avant { border-color: var(--encre); box-shadow: 0 18px 50px rgba(30,58,138,.15); }
.offre .badge { position: absolute; top: -13px; right: 20px; background: var(--corail); color: #fff; padding: 4px 12px; border-radius: 999px; font-size: .8rem; font-weight: 800; }
.offre h3 { margin: 0; font-size: 1.35rem; }
.prix { font-size: 2.6rem; font-weight: 800; color: var(--encre); line-height: 1; }
.prix small { font-size: .9rem; color: var(--doux); font-weight: 600; }
.offre ul { padding: 0; margin: 8px 0 16px; list-style: none; display: grid; gap: 8px; flex: 1; }
.offre li::before { content: "✓  "; color: var(--vert); font-weight: 800; }
.note { color: var(--doux); font-size: .92rem; margin-top: 22px; }
table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: .95rem; background: #fff; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--bord); vertical-align: top; }
th { background: var(--fond); }
.tableau { overflow-x: auto; }

/* FAQ */
details.faq { background: #fff; border: 1px solid var(--bord); border-radius: 16px; padding: 16px 20px; margin-bottom: 10px; text-align: left; }
details.faq summary { font-weight: 700; cursor: pointer; }
details.faq p { color: var(--doux); margin: 10px 0 0; }

/* Bandeau d'appel à l'action */
.appel { background: linear-gradient(135deg, var(--encre), var(--encre-fonce)); color: #fff; border-radius: 26px; padding: 40px; text-align: center; }
.appel h2 { color: #fff; }
.appel p { opacity: .9; max-width: 620px; margin: 0 auto 22px; }

/* Article (ressources, guide, pages légales) */
.article { background: #fff; padding: 56px 0 72px; }
.article h2 { font-size: 1.55rem; margin: 46px 0 12px; padding-top: 8px; }
.article h3 { margin: 26px 0 8px; }
.article p, .article li { font-size: 1.04rem; }
.article .chapeau { font-size: 1.18rem; color: var(--doux); }
.astuce, .attention { border-radius: 14px; padding: 14px 18px; margin: 18px 0; }
.astuce { background: #eef2ff; border-left: 4px solid var(--encre); }
.attention { background: #fff4e6; border-left: 4px solid #e8590c; }
.astuce strong, .attention strong { display: block; margin-bottom: 4px; }
.sommaire { background: var(--fond); border: 1px solid var(--bord); border-radius: 16px; padding: 16px 22px; margin: 22px 0; }
.sommaire ol { margin: 8px 0 0; padding-left: 20px; display: grid; gap: 4px; }
figure { margin: 22px 0; display: flex; gap: 18px; flex-wrap: wrap; align-items: flex-start; }
figure img { width: 230px; border-radius: 22px; border: 8px solid #0b1020; box-shadow: 0 14px 34px rgba(20,42,102,.18); }
figcaption { flex: 1; min-width: 200px; color: var(--doux); font-size: .95rem; }
kbd, .btn-ui { display: inline-block; padding: 1px 8px; border-radius: 6px; background: var(--fond); border: 1px solid var(--bord); font-family: inherit; font-weight: 600; font-size: .92em; white-space: nowrap; }
.pastille { display: inline-block; width: 12px; height: 12px; border-radius: 50%; vertical-align: -1px; margin-right: 4px; }
.avis-traduction { background: #fff4e6; border-radius: 12px; padding: 10px 14px; font-size: .92rem; color: #8a4b0f; }
.maj { color: var(--doux); font-size: .92rem; }

/* Formulaire de contact */
form.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; background: #fff; padding: 28px; border-radius: 22px; border: 1px solid var(--bord); text-align: left; }
form.contact .large { grid-column: 1 / -1; }
form.contact label { display: grid; gap: 6px; font-weight: 600; font-size: .92rem; }
form.contact input, form.contact select, form.contact textarea { font: inherit; padding: 12px 14px; border-radius: 12px; border: 1.5px solid var(--bord); background: #fff; }
form.contact input:focus, form.contact select:focus, form.contact textarea:focus { outline: 2px solid var(--encre); border-color: transparent; }
.piege { position: absolute; left: -9999px; }
.resultat { grid-column: 1 / -1; margin: 0; font-weight: 700; }
@media (max-width: 700px) { form.contact { grid-template-columns: 1fr; } }

/* Pied de page */
.pied { background: var(--encre-fonce); color: rgba(255,255,255,.78); padding: 48px 0 28px; font-size: .92rem; }
.pied a { color: #fff; text-decoration: none; }
.pied a:hover { text-decoration: underline; }
.pied .colonnes { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr 1fr; gap: 28px; }
.pied h4 { color: #fff; margin: 0 0 10px; font-size: .95rem; }
.pied ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.pied .bas { margin-top: 32px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.15); display: flex; flex-wrap: wrap; gap: 10px 22px; justify-content: space-between; }
@media (max-width: 960px) { .pied .colonnes { grid-template-columns: 1fr 1fr; } }

.revele { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.revele.vu { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    .revele { opacity: 1; transform: none; transition: none; }
    .scene .trajet, .scene .porte, .scene .onde { animation: none; stroke-dashoffset: 0; }
    .ecran img { transition: none; }
}
