/* Toujours Joignable — page vitrine. Direction validée avec Karl (maquette « TaskTracker ») :
   nuit étoilée bleu-violet, contenu centré, bouton bleu plein + bouton contour, accents jaunes
   et verts, pied de page bleu arrondi. Aucune ressource externe. */

:root {
  color-scheme: dark;
  --nuit: #0a0d33;
  --nuit-2: #11164a;
  --nuit-3: #1a2066;
  --carte: rgba(255, 255, 255, .06);
  --carte-bord: rgba(255, 255, 255, .12);
  --texte: #eef1ff;
  --texte-doux: #bcc4ee;
  --texte-pale: #8f98c9;
  --bleu: #2563eb;
  --bleu-clair: #60a5fa;
  --bleu-survol: #1d4ed8;
  --bleu-pied: #2c3fa8;
  --jaune: #ffc93c;
  --vert: #34d399;

  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --taille: clamp(1rem, .96rem + .2vw, 1.0625rem);
  --titre-1: clamp(2.2rem, 1.2rem + 3.8vw, 3.9rem);
  --titre-2: clamp(1.7rem, 1.2rem + 1.8vw, 2.5rem);
  --section: clamp(3.5rem, 2.5rem + 4vw, 6.5rem);

  --ombre: 0 18px 40px -18px rgba(0, 0, 0, .7);
  --rayon: 16px;
  --rapide: 160ms;
  --sortie: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--nuit); color: var(--texte); font: 400 var(--taille)/1.65 var(--sans); }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .6em; letter-spacing: -.015em; }
h1 { font-size: var(--titre-1); font-weight: 400; }
h1 strong { font-weight: 800; }
h2 { font-size: var(--titre-2); font-weight: 750; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--jaune); outline-offset: 3px; border-radius: 6px; }

.evitement { position: absolute; left: -999px; top: .5rem; background: var(--texte); color: var(--nuit); padding: .5rem 1rem; z-index: 10; }
.evitement:focus { left: .5rem; }
.conteneur { width: min(1120px, 100% - 2rem); margin-inline: auto; }
.conteneur--etroit { width: min(760px, 100% - 2rem); }

/* En-tête */
.entete { position: sticky; top: 0; z-index: 5; background: rgba(10, 13, 51, .82); backdrop-filter: blur(12px); border-bottom: 1px solid var(--carte-bord); }
.entete__ligne { display: flex; align-items: center; gap: 1.5rem; min-height: 4rem; }
.logo { display: flex; align-items: center; gap: .6rem; text-decoration: none; font-weight: 800; font-size: 1.1rem; white-space: nowrap; }
.logo svg { width: 32px; height: 32px; flex-shrink: 0; }
.menu { display: flex; gap: 1.5rem; list-style: none; margin: 0 0 0 auto; padding: 0; }
.menu a { text-decoration: none; color: var(--texte-doux); font-weight: 500; font-size: .95rem; transition: color var(--rapide); }
.menu a:hover { color: var(--texte); }

/* Boutons (comme la maquette : bleu plein, contour blanc) */
.bouton {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 11rem; padding: .8rem 1.5rem; border-radius: 10px;
  background: var(--bleu); color: #fff; border: 2px solid var(--bleu);
  font-weight: 700; text-decoration: none; text-align: center;
  transition: transform var(--rapide) var(--sortie), background var(--rapide), border-color var(--rapide);
}
.bouton:hover { transform: translateY(-2px); background: var(--bleu-survol); border-color: var(--bleu-survol); }
.bouton:active { transform: translateY(0); }
.bouton--contour { background: transparent; border-color: rgba(255, 255, 255, .85); }
.bouton--contour:hover { background: rgba(255, 255, 255, .1); border-color: #fff; }
.bouton--petit { min-width: 0; padding: .5rem 1rem; font-size: .9rem; white-space: nowrap; }

/* Accroche : fond nuit étoilée */
.accroche {
  position: relative; overflow-x: clip; text-align: center;
  padding: clamp(3rem, 2rem + 5vw, 6rem) 0 clamp(3rem, 2rem + 3vw, 4.5rem);
  background: var(--nuit) url("img/fond-nuit.webp") center / cover no-repeat;
}
.accroche::after { content: ""; position: absolute; inset: auto 0 0; height: 8rem; background: linear-gradient(transparent, var(--nuit)); pointer-events: none; }
.accroche__centre { position: relative; z-index: 1; }
.chapo { font-size: clamp(1.05rem, 1rem + .4vw, 1.3rem); color: var(--texte-doux); max-width: 40rem; margin: 0 auto 2rem; }
.actions { display: flex; flex-wrap: wrap; gap: .9rem; }
.actions--centre { justify-content: center; }

/* Scène : téléphone + étiquettes flottantes (rappel de l'illustration de la maquette) */
.scene { position: relative; width: min(780px, 100%); margin: 3.2rem auto 2.5rem; }
.telephone { margin: 0 auto; width: min(330px, 100%); text-align: left; }
.telephone__ecran { background: #f7f8ff; color: #10143f; border-radius: 30px; padding: 1.3rem 1rem 1rem; border: 9px solid #1d2470; box-shadow: var(--ombre); }
.telephone__statut { display: flex; align-items: center; gap: .5rem; font-size: .8rem; font-weight: 600; color: #5a6290; margin-bottom: .9rem; }
.point { width: .55rem; height: .55rem; border-radius: 50%; background: #16a34a; }
.bulle { max-width: 86%; padding: .6rem .85rem; border-radius: 14px; font-size: .9rem; line-height: 1.45; margin-bottom: .55rem; opacity: 0; animation: apparait .5s var(--sortie) forwards; }
.bulle--client { background: #e6e9fb; border-bottom-left-radius: 4px; }
.bulle--agent { background: var(--bleu); color: #fff; margin-left: auto; border-bottom-right-radius: 4px; }
.bulle:nth-of-type(2) { animation-delay: .2s; }
.bulle:nth-of-type(3) { animation-delay: 1s; }
.bulle:nth-of-type(4) { animation-delay: 1.8s; }
.bulle:nth-of-type(5) { animation-delay: 2.6s; }
.telephone figcaption { text-align: center; font-size: .8rem; color: var(--texte-pale); margin-top: 1rem; }
.flottant {
  position: absolute; z-index: 2; display: flex; align-items: center; gap: .55rem; margin: 0;
  background: #fff; color: #10143f; font-weight: 700; font-size: .88rem;
  padding: .55rem .9rem .55rem .55rem; border-radius: 12px; box-shadow: var(--ombre);
  opacity: 0; animation: apparait .6s var(--sortie) 3.3s forwards;
}
.flottant--agenda { left: 1rem; top: 30%; transform: rotate(-4deg); }
.flottant--sms { right: 2rem; top: 58%; transform: rotate(3deg); animation-delay: 3.7s; }
.coche { display: grid; place-items: center; width: 1.8rem; height: 1.8rem; border-radius: 8px; background: var(--vert); color: #053b28; font-size: .95rem; }
.coche--jaune { background: var(--jaune); color: #4a3200; }
@keyframes apparait { from { opacity: 0; translate: 0 8px; } to { opacity: 1; translate: 0 0; } }

/* Atouts : rangée centrée sous l'illustration (à la place des avis de la maquette) */
.atouts { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem 3rem; list-style: none; padding: 0; margin: 0; }
.atouts li { display: grid; text-align: center; }
.atouts strong { font-size: 1.15rem; color: var(--jaune); }
.atouts span { font-size: .88rem; color: var(--texte-doux); }

/* Sections */
.section { padding: var(--section) 0; }
.section--teinte { background: var(--nuit-2); }
.section h2 { text-align: center; }
.section__intro { color: var(--texte-doux); max-width: 44rem; margin: 0 auto 2.4rem; text-align: center; font-size: 1.06rem; }
.sous-titre { margin-top: 3.5rem; font-size: 1.4rem; text-align: center; }

.cartes { display: grid; gap: 1.2rem; }
.cartes--3 { grid-template-columns: repeat(3, 1fr); }
.cartes--2 { grid-template-columns: repeat(2, 1fr); }
.carte { background: var(--carte); border: 1px solid var(--carte-bord); border-radius: var(--rayon); padding: 1.5rem; transition: transform var(--rapide) var(--sortie), background var(--rapide); }
.carte:hover { transform: translateY(-3px); background: rgba(255, 255, 255, .09); }
.carte p { color: var(--texte-doux); margin: 0; }
.carte--icone { position: relative; padding-top: 2.3rem; margin-top: 1rem; }
.pastille { position: absolute; top: -1.1rem; left: 1.4rem; width: 2.3rem; height: 2.3rem; border-radius: 10px; display: grid; place-items: center; background: var(--jaune); color: #3a2800; font-weight: 800; }

.etapes { counter-reset: e; list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.etapes li { counter-increment: e; padding-top: 1rem; border-top: 3px solid var(--bleu); color: var(--texte-doux); }
.etapes li::before { content: "0" counter(e); display: block; font-size: 2.2rem; font-weight: 800; color: var(--bleu-clair); line-height: 1; margin-bottom: .5rem; }
.etapes strong { color: var(--texte); }

/* Métiers */
.metiers { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1.2rem; }
.metier { grid-column: span 2; background: var(--carte); border: 1px solid var(--carte-bord); border-radius: var(--rayon); padding: 1.4rem; }
.metier:nth-child(1), .metier:nth-child(2) { grid-column: span 3; }
.metier:nth-child(1) { background: var(--nuit-3); border-color: rgba(96, 165, 250, .5); }
.metier p { color: var(--texte-doux); margin-bottom: .5rem; }
.metier__bilan { font-weight: 700; color: var(--vert) !important; margin: 0 !important; }

/* Tarifs */
.tarifs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.tarif { position: relative; display: flex; flex-direction: column; background: var(--carte); border: 1px solid var(--carte-bord); border-radius: var(--rayon); padding: 1.8rem 1.5rem; }
.tarif ul { list-style: none; padding: 0; margin: 1.2rem 0 1.8rem; display: grid; gap: .55rem; flex: 1; }
.tarif li { display: flex; gap: .55rem; color: var(--texte-doux); font-size: .97rem; }
.tarif li::before { content: "✓"; color: var(--vert); font-weight: 800; }
.tarif__prix { color: var(--texte-pale); margin: 0; }
.tarif__prix span { font-size: 2.6rem; font-weight: 800; color: var(--texte); }
.tarif__miseenplace { font-size: .9rem; color: var(--texte-pale); margin: .2rem 0 0; }
.tarif .bouton { min-width: 0; }
.tarif--vedette { background: var(--nuit-3); border: 2px solid var(--bleu); }
.tarif__badge { position: absolute; top: -.8rem; left: 1.5rem; margin: 0; background: var(--jaune); color: #3a2800; font-size: .8rem; font-weight: 800; padding: .25rem .75rem; border-radius: 999px; }
.tarifs__note { margin-top: 2rem; color: var(--texte-pale); font-size: .92rem; text-align: center; }

/* Questions */
details { background: var(--carte); border: 1px solid var(--carte-bord); border-radius: var(--rayon); margin-bottom: .8rem; }
summary { cursor: pointer; list-style: none; padding: 1.1rem 3rem 1.1rem 1.3rem; font-weight: 600; position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 1.2rem; top: 50%; transform: translateY(-50%); font-size: 1.4rem; color: var(--jaune); transition: transform var(--rapide); }
details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
details p { padding: 0 1.3rem 1.1rem; margin: 0; color: var(--texte-doux); }

/* Contact */
.contact { text-align: center; }
.contact .conteneur--etroit { background: var(--nuit-3); border: 1px solid rgba(96, 165, 250, .45); border-radius: 24px; padding: clamp(2rem, 1.5rem + 3vw, 3.5rem) clamp(1.2rem, 1rem + 2vw, 3rem); }
.contact p { color: var(--texte-doux); font-size: 1.06rem; margin-bottom: 2rem; }

/* Pied de page bleu arrondi (maquette) */
.pied { background: var(--bleu-pied); border-top-left-radius: clamp(2rem, 1rem + 5vw, 5rem); padding: 2.5rem 0 1.2rem; margin-top: 2rem; }
.pied__grille { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1.5rem 3rem; border-bottom: 1px solid rgba(255, 255, 255, .3); padding-bottom: 1.5rem; }
.pied p { margin: 0 0 .35rem; font-size: .92rem; color: #dfe5ff; }
.pied a { text-decoration: none; }
.pied a:hover { text-decoration: underline; }
.pied__titre { font-weight: 800; color: #fff !important; font-size: 1rem !important; margin-bottom: .6rem !important; }
.pied__contact { text-align: right; }
.pied__copie { text-align: center; font-size: .8rem !important; margin: 1rem 0 0 !important; }

/* Page de texte (mentions légales) */
.texte { padding: var(--section) 0; }
.texte h1 { font-size: var(--titre-2); font-weight: 750; }
.texte h2 { font-size: 1.3rem; margin-top: 2.2rem; text-align: left; }
.texte p, .texte li { color: var(--texte-doux); }
.texte a { color: var(--bleu-clair); }

/* Mobile */
@media (max-width: 900px) {
  .menu { display: none; }
  .entete .bouton--petit { margin-left: auto; }
  .cartes--3, .cartes--2, .tarifs, .etapes, .metiers { grid-template-columns: 1fr; }
  .metier, .metier:nth-child(1), .metier:nth-child(2) { grid-column: auto; }
  .accroche { background-image: url("img/fond-nuit-mobile.webp"); }
  .flottant--agenda { left: 0; top: -1.6rem; }
  .flottant--sms { right: 0; top: auto; bottom: 1.2rem; }
  .pied__contact { text-align: left; }
}
@media (max-width: 420px) {
  .entete__ligne { gap: .8rem; }
  .actions .bouton { width: 100%; }
  .atouts { gap: 1rem 1.6rem; }
  .logo { font-size: .95rem; gap: .45rem; }
  .entete .bouton--petit { padding: .45rem .7rem; font-size: .85rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .bulle, .flottant { opacity: 1; }
}

/* Fiche de lancement */
.fiche fieldset { border: 1px solid var(--carte-bord); border-radius: var(--rayon); background: var(--carte); padding: 1.2rem 1.3rem 1.4rem; margin: 0 0 1.4rem; }
.fiche legend { font-weight: 800; font-size: 1.1rem; padding: 0 .5rem; color: var(--texte); }
.fiche label { display: grid; gap: .35rem; margin-top: .9rem; font-weight: 600; color: var(--texte); font-size: .95rem; }
.fiche input:not([type="checkbox"]), .fiche select, .fiche textarea {
  font: inherit; font-weight: 400; color: var(--texte); background: var(--nuit); border: 1px solid var(--carte-bord);
  border-radius: 10px; padding: .65rem .75rem; width: 100%;
}
.fiche textarea { resize: vertical; }
.fiche input:focus-visible, .fiche select:focus-visible, .fiche textarea:focus-visible { outline: 3px solid var(--jaune); outline-offset: 1px; }
.fiche ::placeholder { color: var(--texte-pale); }
.fiche__case { display: flex !important; align-items: center; gap: .6rem; font-weight: 500 !important; }
.fiche__case input { width: 1.15rem; height: 1.15rem; accent-color: var(--bleu); }
.fiche__aide { margin: .3rem 0 0; color: var(--texte-pale); font-size: .9rem; }
.fiche__jours { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 0 1rem; }
.fiche__etat { color: var(--vert); font-size: .9rem; min-height: 1.4em; }
.fiche .actions { margin-top: 1rem; }
.fiche button.bouton { font: inherit; font-weight: 700; cursor: pointer; }

