/* Concipilot — site vitrine. Une seule famille (Outfit), la frise de rotation comme élément marquant. */
@font-face { font-family: 'Outfit'; src: url('fonts/Outfit.ttf') format('truetype'); font-weight: 100 900; font-display: swap; }

:root {
    --nuit: #12324A;
    --nuit-profond: #0C2436;
    --canard: #0F766E;
    --ambre: #F2A33A;
    --ecume: #EEF3F6;
    --texte: #1B3346;
    --gris: #56697A;
    --trait: #D9E2E9;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: 'Outfit', system-ui, sans-serif; font-size: 18px; font-weight: 400; line-height: 1.6; color: var(--texte); background: #FBFCFD; }
::selection { background: var(--ambre); color: var(--nuit-profond); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 600; line-height: 1.08; letter-spacing: -.025em; color: var(--nuit); text-wrap: balance; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--ambre); outline-offset: 3px; border-radius: 4px; }
.cadre { width: min(1180px, 100% - 48px); margin-inline: auto; }

/* Boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 24px; border-radius: 999px; font: inherit; font-weight: 600; font-size: 17px; text-decoration: none; border: 1.5px solid transparent; transition: background-color 150ms ease-out, border-color 150ms ease-out, transform 120ms ease-out; }
.btn:active { transform: translateY(1px); }
.btn-ambre { background: var(--ambre); color: var(--nuit-profond); }
.btn-ambre:hover { background: #ffb653; }
.btn-ligne { border-color: rgba(255,255,255,.4); color: #fff; }
.btn-ligne:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.btn-nuit { background: var(--nuit); color: #fff; }
.btn-nuit:hover { background: var(--nuit-profond); }

/* En-tête : posé sur l'aplat bleu nuit */
.entete { position: absolute; inset: 0 0 auto; z-index: 5; }
.entete .cadre { display: flex; align-items: center; justify-content: space-between; height: 84px; }
.entete img { height: 30px; width: auto; }
.entete nav { display: flex; align-items: center; gap: 32px; }
.entete nav a { color: #C9D6E0; text-decoration: none; font-size: 16px; }
.entete nav a:not(.btn):hover { color: #fff; }
.entete nav .btn { min-height: 44px; padding: 0 20px; font-size: 15px; color: var(--nuit-profond); }

/* Ouverture */
.ouverture { background: var(--nuit); color: #fff; padding: 150px 0 96px; }
.ouverture h1 { color: #fff; font-size: clamp(44px, 6.4vw, 84px); font-weight: 700; max-width: 13ch; }
.ouverture-texte { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 48px; align-items: end; }
.ouverture-texte p { font-size: 21px; color: #C9D6E0; max-width: 36ch; }
.ouverture-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.demo-note { margin-top: 16px; font-size: 15px; color: #9FB2C2; }

/* La frise de rotation */
.frise { font-variant-numeric: tabular-nums; margin: 72px 0 0; background: var(--nuit-profond); border-radius: 22px; padding: 28px 28px 24px; }
.frise-titre { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; margin-bottom: 18px; color: #C9D6E0; font-size: 15px; }
.frise-titre strong { color: #fff; font-size: 19px; font-weight: 600; }
.frise-heures, .voie { display: grid; grid-template-columns: 170px repeat(10, minmax(0, 1fr)); align-items: center; }
.frise-heures { color: #93A9BA; font-size: 13px; padding-bottom: 8px; }
.frise-heures span { border-left: 1px solid rgba(255,255,255,.08); padding-left: 6px; }
.voie { min-height: 64px; border-top: 1px solid rgba(255,255,255,.08); }
.voie-nom { color: #fff; font-weight: 500; font-size: 16px; padding-right: 12px; }
.voie-nom small { display: block; color: #93A9BA; font-size: 13px; font-weight: 400; }
.bloc { height: 42px; border-radius: 10px; display: flex; align-items: center; gap: 8px; padding: 0 12px; font-size: 14px; font-weight: 500; white-space: nowrap; overflow: hidden; }
.bloc-depart { background: rgba(255,255,255,.1); color: #DCE5EC; }
.bloc-menage { background: var(--canard); color: #fff; }
.bloc-arrivee { background: var(--ambre); color: var(--nuit-profond); }
.frise-legende { display: flex; gap: 24px; flex-wrap: wrap; margin-top: 16px; color: #9FB2C2; font-size: 14px; }
.frise-legende span::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 8px; vertical-align: -1px; }
.frise-legende .l-depart::before { background: rgba(255,255,255,.3); }
.frise-legende .l-menage::before { background: var(--canard); }
.frise-legende .l-arrivee::before { background: var(--ambre); }

/* La seule animation de la page : la frise se remplit une fois, dans l'ordre de la journée */
@media (prefers-reduced-motion: no-preference) {
    .bloc { animation: remplir .5s cubic-bezier(.2,.7,.2,1) both; transform-origin: left center; }
    .bloc-depart { animation-delay: .25s; }
    .bloc-menage { animation-delay: .65s; }
    .bloc-arrivee { animation-delay: 1.05s; }
    @keyframes remplir { from { opacity: 0; transform: scaleX(.3); } to { opacity: 1; transform: none; } }
}

/* Les moments de la journée */
.journee { padding: 120px 0 40px; }
.journee-intro { max-width: 760px; margin-bottom: 88px; }
.journee-intro h2 { font-size: clamp(34px, 4.2vw, 54px); }
.journee-intro p { font-size: 21px; color: var(--gris); margin-top: 18px; max-width: 52ch; }

.moment { display: grid; grid-template-columns: 150px minmax(0, 4fr) minmax(0, 6fr); gap: 40px; align-items: start; padding: 64px 0; border-top: 1px solid var(--trait); }
.moment-heure { font-size: 22px; font-weight: 600; color: var(--canard); padding-top: 4px; }
.moment h3 { font-size: 34px; margin-bottom: 16px; max-width: 16ch; }
.moment p { color: var(--gris); max-width: 42ch; }
.moment ul { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 10px; }
.moment li { position: relative; padding-left: 26px; }
.moment li::before { content: ""; position: absolute; left: 0; top: .62em; width: 12px; height: 2px; background: var(--ambre); }
.ecran { border-radius: 14px; overflow: hidden; box-shadow: 0 0 0 1px var(--trait), 0 24px 48px -20px rgba(18,50,74,.35); }
.telephones { display: flex; gap: 24px; align-items: flex-start; justify-content: center; }
.telephone { width: 300px; border-radius: 36px; overflow: hidden; border: 9px solid var(--nuit); box-shadow: 0 24px 48px -18px rgba(18,50,74,.45); }
.telephone + .telephone { margin-top: 56px; }

/* Le reste, en une ligne */
.aussi { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--trait); margin-top: 24px; }
.aussi div { padding: 36px 32px 36px 0; }
.aussi div + div { padding-left: 32px; border-left: 1px solid var(--trait); }
.aussi h3 { font-size: 21px; margin-bottom: 8px; }
.aussi p { color: var(--gris); font-size: 16px; }

/* Tarifs : un seul bloc, trois colonnes */
.tarifs { background: var(--ecume); padding: 112px 0; margin-top: 96px; }
.tarifs h2 { font-size: clamp(34px, 4.2vw, 54px); max-width: 18ch; }
.tarifs-intro { font-size: 20px; color: var(--gris); margin-top: 16px; max-width: 54ch; }
.formules { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 56px; background: #fff; border-radius: 22px; overflow: hidden; border: 1px solid var(--trait); }
.formule { padding: 36px 32px; display: flex; flex-direction: column; gap: 14px; }
.formule + .formule { border-left: 1px solid var(--trait); }
.formule-phare { background: var(--nuit); color: #fff; border-left-color: var(--nuit) !important; }
.formule h3 { font-size: 22px; }
.formule-phare h3 { color: #fff; }
.formule-taille { color: var(--gris); font-size: 16px; }
.formule-phare .formule-taille { color: #B9C9D6; }
.formule-prix { font-variant-numeric: tabular-nums; font-size: 56px; font-weight: 700; letter-spacing: -.035em; line-height: 1; margin: 10px 0 2px; color: var(--nuit); }
.formule-phare .formule-prix { color: #fff; }
.formule-prix small { font-size: 18px; font-weight: 400; letter-spacing: 0; color: var(--gris); }
.formule-phare .formule-prix small { color: #B9C9D6; }
.formule p { font-size: 16px; color: var(--gris); flex: 1; }
.formule-phare p { color: #C9D6E0; }
.formule .btn { align-self: flex-start; }
.tarifs-commun { margin-top: 24px; color: var(--gris); font-size: 16px; max-width: 75ch; }

/* Questions */
.questions { padding: 112px 0; }
.questions h2 { font-size: clamp(34px, 4.2vw, 54px); margin-bottom: 48px; }
.questions dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 44px 64px; margin: 0; }
.questions dt { font-size: 21px; font-weight: 600; color: var(--nuit); margin-bottom: 8px; }
.questions dd { margin: 0; color: var(--gris); max-width: 46ch; }

/* Fin : la démo et ses clés */
.fin { background: var(--nuit); color: #fff; padding: 104px 0; }
.fin .cadre { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.fin h2 { color: #fff; font-size: clamp(36px, 4.6vw, 60px); max-width: 14ch; }
.fin p { color: #C9D6E0; font-size: 20px; margin-top: 18px; max-width: 40ch; }
.fin .ouverture-actions { margin-top: 32px; }

/* Les identifiants présentés comme une étiquette de porte-clés */
.porte-cles { justify-self: center; position: relative; width: min(360px, 100%); background: var(--ambre); color: var(--nuit-profond); border-radius: 18px 18px 18px 60px; padding: 34px 30px 30px 74px; transform: rotate(-4deg); box-shadow: 0 30px 50px -24px rgba(0,0,0,.55); }
.porte-cles::before { content: ""; position: absolute; left: 24px; top: 50%; width: 26px; height: 26px; margin-top: -13px; border-radius: 50%; background: var(--nuit); box-shadow: inset 0 0 0 5px rgba(0,0,0,.12); }
.porte-cles span { display: block; font-size: 14px; }
.porte-cles strong { display: block; font-size: 27px; font-weight: 700; letter-spacing: -.01em; margin-bottom: 10px; white-space: nowrap; }
.porte-cles strong:last-child { margin-bottom: 0; }

/* Pied */
.pied { padding: 40px 0 48px; color: var(--gris); font-size: 15.5px; }
.pied .cadre { display: flex; flex-wrap: wrap; gap: 18px 36px; align-items: center; }
.pied img { height: 24px; width: auto; margin-right: auto; }
.pied a { text-decoration: none; }
.pied a:hover { color: var(--nuit); text-decoration: underline; }

/* Page de texte (mentions légales) */
.page-texte .entete { position: static; background: var(--nuit); }
.page-texte main { padding: 72px 0 110px; }
.page-texte main .cadre { max-width: 760px; }
.page-texte h1 { font-size: 48px; margin-bottom: 36px; }
.page-texte h2 { font-size: 24px; margin: 40px 0 12px; }
.page-texte main p { margin-bottom: 12px; color: var(--gris); }

/* Tablette */
@media (max-width: 960px) {
    .entete nav a:not(.btn) { display: none; }
    .ouverture { padding: 124px 0 72px; }
    .ouverture-texte, .fin .cadre { grid-template-columns: 1fr; gap: 28px; }
    .moment { grid-template-columns: 1fr; gap: 20px; padding: 52px 0; }
    .aussi, .formules, .questions dl { grid-template-columns: 1fr; }
    .aussi div, .aussi div + div { padding: 28px 0; border-left: 0; }
    .aussi div + div { border-top: 1px solid var(--trait); }
    .formule + .formule { border-left: 0; border-top: 1px solid var(--trait); }
    .porte-cles { justify-self: start; }
}

/* Téléphone : la frise devient une liste par logement */
@media (max-width: 720px) {
    body { font-size: 17px; }
    .cadre { width: min(1180px, 100% - 32px); }
    .ouverture-texte p { font-size: 19px; }
    .ouverture-actions .btn { width: 100%; }
    .frise { padding: 20px 18px; margin-top: 48px; }
    .frise-heures { display: none; }
    .voie { display: flex; flex-wrap: wrap; gap: 8px; padding: 14px 0; }
    .voie-nom { width: 100%; }
    .bloc { grid-column: auto !important; height: 36px; font-size: 13px; }
    .journee, .tarifs, .questions { padding-top: 80px; padding-bottom: 80px; }
    .telephone { width: min(300px, 78%); border-width: 6px; border-radius: 26px; }
    .telephone + .telephone { margin-top: 32px; }
    .formule-prix { font-size: 46px; }
    .porte-cles { transform: rotate(-2deg); width: min(340px, 100% - 16px); }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
