/* Site de Ned (fr : index.html, en : en/index.html). Univers de la présentation : nuit, ivoire, or.
   Polices du système, aucune ressource externe. */
:root {
  --nuit: #0b1424; --marine: #13213a; --bleu: #22416e; --or: #cfa85a; --or-clair: #ead39a; --or-sombre: #9a7430;
  --ivoire: #f3ebdc; --papier: #efe6d3; --encre: #1d1a16; --encre-douce: #6f6455; --bulle: #fffaf0; --bulle-moi: #f0ddb0;
  --titre: "Manrope", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --texte: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--papier); color: var(--encre); font: 17px/1.6 var(--texte); overflow-x: hidden; -webkit-text-size-adjust: 100%; }
a { color: inherit; }
.cadre { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
h1, h2, h3 { font-family: var(--titre); line-height: 1.15; margin: 0; letter-spacing: -.01em; text-wrap: balance; }
.surtitre { font: 700 .95rem/1.3 var(--texte); color: var(--or-sombre); }
:focus-visible { outline: 3px solid var(--or); outline-offset: 3px; }

/* Bandeau */
.haut { background: radial-gradient(120% 90% at 20% 0%, var(--bleu) 0%, var(--marine) 45%, var(--nuit) 100%); color: var(--ivoire); }
nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 0; }
.marque { display: flex; align-items: center; gap: 10px; font: 700 1.15rem var(--titre); text-decoration: none; }
.marque img { width: 34px; height: 34px; border-radius: 50%; }
.liens { display: flex; align-items: center; gap: 8px 20px; }
nav .lien { color: var(--or-clair); text-decoration: none; font-weight: 600; font-size: .95rem; padding: 8px 0; }
nav .langue { border: 1px solid rgba(234, 211, 154, .35); border-radius: 999px; padding: 5px 12px; font-size: .85rem; }
.accroche { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; padding: 40px 0 88px; }
.accroche .surtitre { color: var(--or); }
.accroche h1 { font-size: clamp(2.2rem, 5.2vw, 3.6rem); margin: 14px 0 18px; }
.accroche h1 em { font-style: normal; color: var(--or); }
.accroche p { font-size: 1.12rem; color: rgba(243, 235, 220, .8); max-width: 34em; margin: 0 0 30px; }
.appel { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 22px; }
.bouton { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 26px; min-height: 50px; border-radius: 999px; border: 0;
          cursor: pointer; background: linear-gradient(135deg, var(--or-clair), var(--or) 55%, var(--or-sombre)); color: var(--nuit);
          font: 700 1rem var(--texte); text-decoration: none; box-shadow: 0 8px 24px rgba(207, 168, 90, .25); }
.bouton:hover { filter: brightness(1.06); }
.bouton.second { background: none; color: var(--encre); border: 1.5px solid var(--or-sombre); box-shadow: none; }
.bouton.second:hover { background: rgba(154, 116, 48, .08); }
.discret { color: var(--or-clair); font-weight: 600; text-decoration: none; padding: 8px 0; }

/* Téléphone */
.scene { margin: 0; justify-self: center; width: 100%; max-width: 380px; }
.scenes { display: flex; justify-content: center; gap: 8px; margin-top: 16px; }
.scenes span { width: 8px; height: 8px; border-radius: 50%; background: rgba(243, 235, 220, .25); transition: background .3s, width .3s; }
.scenes span.active { width: 22px; border-radius: 4px; background: var(--or); }
#titre-scene { color: var(--or-clair); font-weight: 600; }
.bulle .piece { display: flex; align-items: center; gap: 8px; background: rgba(34, 65, 110, .08); border-radius: 8px; padding: 7px 9px; margin-bottom: 5px;
                font-size: .82rem; overflow-wrap: anywhere; }
.scene figcaption { text-align: center; font-size: .85rem; color: rgba(243, 235, 220, .55); margin-top: 14px; }
.telephone { background: #0e1a2e; border: 1px solid rgba(207, 168, 90, .35); border-radius: 30px; padding: 14px; max-width: 380px;
             justify-self: center; width: 100%; box-shadow: 0 30px 60px rgba(0, 0, 0, .45); }
.ecran { background: #e9dfca; border-radius: 20px; overflow: hidden; }
.entete { display: flex; align-items: center; gap: 10px; background: var(--marine); color: var(--ivoire); padding: 12px 14px; font-size: .9rem; }
.entete img { width: 32px; height: 32px; border-radius: 50%; }
.entete small { display: block; color: rgba(243, 235, 220, .6); font-size: .75rem; }
.fil { padding: 14px 12px 18px; display: flex; flex-direction: column; gap: 8px; font-size: .9rem; line-height: 1.45; }
.bulle { background: var(--bulle); border-radius: 4px 14px 14px 14px; padding: 9px 12px; max-width: 92%; box-shadow: 0 1px 1px rgba(0, 0, 0, .08); color: var(--encre); }
.bulle.moi { background: var(--bulle-moi); align-self: flex-end; border-radius: 14px 4px 14px 14px; }
.bulle b { font-weight: 700; }
.heure { display: block; text-align: right; font-size: .68rem; color: var(--encre-douce); margin-top: 2px; }
/* Animation : les bulles arrivent une à une (ned.js ; sans lui, la première scène est affichée en entier) */
.fil.anime { min-height: 470px; justify-content: flex-end; transition: opacity .6s; }
.fil.anime.efface { opacity: 0; }
.fil.anime .bulle:not(.ecrit) { display: none; }
.fil.anime .bulle.vue { display: block; animation: arrivee .35s ease-out; }
.bulle.ecrit { display: inline-flex; gap: 4px; padding: 12px 14px; animation: arrivee .25s ease-out; }
.bulle.ecrit span { width: 7px; height: 7px; border-radius: 50%; background: var(--encre-douce); animation: point 1.1s infinite ease-in-out; }
.bulle.ecrit span:nth-child(2) { animation-delay: .15s; } .bulle.ecrit span:nth-child(3) { animation-delay: .3s; }
.entete small.ecrit-statut { color: var(--or-clair); }
@keyframes arrivee { from { opacity: 0; transform: translateY(10px) scale(.97); } }
@keyframes point { 0%, 60%, 100% { opacity: .3; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }

/* Sections */
section { padding: 84px 0; }
.titre-section { max-width: 40em; margin-bottom: 40px; }
.titre-section h2 { font-size: clamp(1.7rem, 3.6vw, 2.4rem); margin: 10px 0 12px; }
.titre-section p { color: var(--encre-douce); margin: 0; font-size: 1.05rem; }
.probleme { background: var(--ivoire); }
.chiffres { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.chiffre { background: var(--bulle); border: 1px solid rgba(154, 116, 48, .2); border-radius: 18px; padding: 24px; }
.chiffre strong { display: block; font: 800 1.9rem var(--titre); color: var(--bleu); margin-bottom: 6px; }
.chiffre span { color: var(--encre-douce); font-size: .98rem; }

.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.service { background: var(--bulle); border-radius: 18px; padding: 26px; border: 1px solid rgba(154, 116, 48, .18); display: flex; flex-direction: column; gap: 10px; }
.service .icone { font-size: 1.6rem; line-height: 1.2; }
.service h3 { font-size: 1.15rem; }
.service p { margin: 0; color: var(--encre-douce); font-size: .97rem; }
.exemple { margin-top: auto; background: var(--papier); border-left: 3px solid var(--or); border-radius: 6px; padding: 9px 12px; font-size: .9rem; color: var(--encre); }
.aussi { margin: 28px 0 0; color: var(--encre-douce); max-width: 46em; }
.aussi b { color: var(--encre); }

.bientot { background: linear-gradient(180deg, var(--papier), var(--ivoire)); }
.bientot .service { border-color: rgba(207, 168, 90, .55); box-shadow: 0 10px 30px rgba(154, 116, 48, .1); }

/* L'enquête : la bande sombre qui mène au questionnaire */
.enquete { background: radial-gradient(110% 130% at 15% 0%, var(--bleu) 0%, var(--marine) 50%, var(--nuit) 100%); color: var(--ivoire); }
.enquete .cadre { max-width: 820px; }
.enquete .surtitre { color: var(--or); }
.enquete h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin: 10px 0 14px; }
.enquete p { color: rgba(243, 235, 220, .8); margin: 0; max-width: 38em; font-size: 1.05rem; }
.enquete .appel { margin-top: 28px; }

.journee { background: var(--marine); color: var(--ivoire); }
.journee .titre-section p { color: rgba(243, 235, 220, .72); }
.journee .surtitre { color: var(--or); }
.ligne-temps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.moment { background: rgba(243, 235, 220, .06); border: 1px solid rgba(207, 168, 90, .3); border-radius: 18px; padding: 22px; }
.moment time { font: 800 1.5rem var(--titre); color: var(--or); }
.moment h3 { font-size: 1.02rem; margin: 6px 0 8px; }
.moment p { margin: 0; font-size: .93rem; color: rgba(243, 235, 220, .78); }

.etapes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: etape; }
.etape { padding: 26px; border-radius: 18px; background: var(--bulle); border: 1px solid rgba(154, 116, 48, .18); }
.etape::before { counter-increment: etape; content: counter(etape); display: inline-grid; place-items: center; width: 36px; height: 36px;
                 border-radius: 50%; background: var(--marine); color: var(--or-clair); font: 800 1rem var(--titre); margin-bottom: 14px; }
.etape h3 { font-size: 1.1rem; margin-bottom: 6px; }
.etape p { margin: 0; color: var(--encre-douce); font-size: .97rem; }

.confiance { background: var(--ivoire); }
.garanties { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px 40px; padding: 0; margin: 0; list-style: none; }
.garanties li { padding-left: 34px; position: relative; }
.garanties li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 24px; height: 24px; border-radius: 50%;
                        background: var(--marine); color: var(--or-clair); display: grid; place-items: center; font-size: .8rem; font-weight: 800; }
.garanties b { display: block; }
.garanties span { color: var(--encre-douce); font-size: .96rem; }

.contact { background: var(--papier); text-align: center; }
.contact img { width: 64px; height: 64px; border-radius: 50%; margin-bottom: 16px; }
.contact h2 { font-size: clamp(1.6rem, 3.4vw, 2.2rem); margin-bottom: 12px; }
.contact p { color: var(--encre-douce); max-width: 34em; margin: 0 auto 24px; }
.contact .appel { justify-content: center; }
.contact .discret { color: var(--or-sombre); }

/* Pied de page : Dexio (logo officiel bleu clair sur fond nuit, jamais recoloré), puis les règles */
footer { background: var(--nuit); color: rgba(243, 235, 220, .6); font-size: .9rem; padding: 34px 0 calc(34px + env(safe-area-inset-bottom)); }
footer .cadre { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 32px; justify-content: space-between; }
footer a { color: rgba(243, 235, 220, .8); }
.dexio { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: rgba(243, 235, 220, .75); font-size: .95rem; min-height: 44px; }
.dexio img { height: 26px; width: auto; display: block; }
.dexio:hover img { filter: brightness(1.1); }
.regles { display: flex; flex-wrap: wrap; gap: 6px 18px; }

@media (max-width: 860px) {
  .accroche { grid-template-columns: 1fr; padding-bottom: 64px; }
  .services, .chiffres, .etapes { grid-template-columns: 1fr; }
  .ligne-temps { grid-template-columns: 1fr 1fr; }
  .garanties { grid-template-columns: 1fr; }
  section { padding: 64px 0; }
}
/* Mobile : plus de cadre de téléphone, la conversation devient l'écran de messagerie, bord à bord */
@media (max-width: 600px) {
  body { font-size: 16px; }
  .accroche { gap: 36px; padding: 24px 0 0; }
  .accroche p { font-size: 1.05rem; }
  .appel .bouton { flex: 1 1 100%; }
  .scene { max-width: none; width: calc(100% + 40px); margin: 0 -20px; justify-self: stretch; }
  .telephone { border: 0; border-radius: 0; padding: 0; max-width: none; background: none; box-shadow: none; }
  .ecran { border-radius: 0; min-height: 100svh; display: flex; flex-direction: column; }
  .entete { position: sticky; top: 0; z-index: 1; padding: 14px 16px; box-shadow: 0 2px 8px rgba(0, 0, 0, .25); }
  .fil { flex: 1; padding: 16px 12px 28px; font-size: .95rem; }
  .fil.anime { min-height: 0; }
  .scenes { margin-top: 0; padding-top: 18px; background: var(--nuit); }
  .scene figcaption { margin: 0; padding: 12px 20px 32px; background: var(--nuit); }
  .service, .etape, .chiffre { padding: 22px; }
  footer .cadre { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 520px) { .ligne-temps { grid-template-columns: 1fr; } }
@media (max-width: 360px) { nav .lien:not(.langue) { font-size: .9rem; } .marque { font-size: 1.05rem; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
