/* Coparentalité — estilos comuns */
:root {
  --fond: #F6F3EE;
  --surface: #FFFFFF;
  --encre: #1E2528;
  --discret: #5E6669;
  --ligne: #E4DED4;
  --bord-champ: #D9D2C6;
  --bleu: #2F5D9E;
  --bleu-fonce: #1F4478;
  --orange: #B8572F;
  --erreur-fond: #FBE4DE;
  --erreur-texte: #8A2A12;
  --ok-fond: #E1EFE4;
  --ok-texte: #1F5A2E;
  --rayon: 12px;
}

* { box-sizing: border-box; }

html, body { margin: 0; }

body {
  font-family: 'DM Sans', system-ui, sans-serif;
  background: var(--fond);
  color: var(--encre);
  font-size: 16px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--bleu); }
a:hover { color: var(--bleu-fonce); }

.page {
  max-width: 420px;
  min-height: 100vh;
  margin: 0 auto;
  padding: 56px 24px 32px;
  display: flex;
  flex-direction: column;
}

.page--haut { padding-top: 24px; }

.marque {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
}

.marque__nom {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 34px;
  font-weight: 600;
  letter-spacing: -0.5px;
}

.marque__slogan {
  margin: 0;
  color: var(--discret);
  max-width: 290px;
}

.retour {
  width: 44px;
  height: 44px;
  margin-left: -10px;
  display: flex;
  align-items: center;
  color: var(--encre);
}

.etape {
  margin-top: 16px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--discret);
}

h1 {
  margin: 8px 0 0;
  font-family: 'Fraunces', Georgia, serif;
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -0.4px;
  line-height: 1.15;
}

.intro {
  margin: 8px 0 0;
  color: var(--discret);
  font-size: 15px;
}

form {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.champ {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

label { font-size: 14px; font-weight: 600; }

input[type="text"],
input[type="email"],
input[type="password"] {
  height: 50px;
  padding: 0 16px;
  border: 1px solid var(--bord-champ);
  border-radius: var(--rayon);
  background: var(--surface);
  font: inherit;
  font-size: 16px;
  color: var(--encre);
}

input:focus-visible {
  outline: 2px solid var(--bleu);
  outline-offset: 1px;
  border-color: var(--bleu);
}

.aide { font-size: 13px; color: var(--discret); }

.lien-droite { align-self: flex-end; font-size: 14px; font-weight: 500; }

.case-accord {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 14px;
  font-weight: 400;
}

.case-accord input {
  width: 20px;
  height: 20px;
  margin: 1px 0 0;
  flex-shrink: 0;
  accent-color: var(--encre);
}

.bouton {
  height: 52px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--rayon);
  border: 1.5px solid var(--encre);
  background: var(--encre);
  color: #FFFFFF;
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.bouton:hover { background: #33403F; color: #FFFFFF; }

.bouton:disabled { opacity: 0.6; cursor: progress; }

.bouton--contour { background: transparent; color: var(--encre); }

.bouton--contour:hover { background: #EFE9DF; color: var(--encre); }

.separateur {
  margin-top: 28px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--discret);
  font-size: 14px;
}

.separateur::before,
.separateur::after {
  content: '';
  flex-grow: 1;
  height: 1px;
  background: var(--ligne);
}

.message {
  padding: 12px 16px;
  border-radius: var(--rayon);
  font-size: 14px;
}

.message[data-type="erreur"] { background: var(--erreur-fond); color: var(--erreur-texte); }
.message[data-type="ok"] { background: var(--ok-fond); color: var(--ok-texte); }

.encadre {
  padding: 16px;
  border-radius: var(--rayon);
  background: var(--surface);
  border: 1px solid var(--ligne);
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 14px;
}

.encadre p { margin: 0; }

.espace { flex-grow: 1; min-height: 32px; }

.pied {
  display: flex;
  justify-content: center;
  gap: 20px;
  font-size: 13px;
}

.pied a { color: var(--discret); }

.entete {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.date-jour { font-size: 14px; color: var(--discret); }

.pastille {
  width: 44px;
  height: 44px;
  border-radius: 22px;
  background: var(--bleu);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  text-transform: uppercase;
}

.carte-accent {
  margin-top: 24px;
  padding: 18px;
  border-radius: 16px;
  background: var(--bleu);
  color: #FFFFFF;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.carte-accent__titre {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.2;
}

.carte-accent p { margin: 0; font-size: 15px; }

[hidden] { display: none !important; }

.visuellement-cache {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ===== Etapa 5: painel, família, calendário, histórico ===== */

.page--nav { padding-bottom: 112px; }

select,
input[type="date"] {
  height: 50px;
  width: 100%;
  padding: 0 12px;
  border: 1px solid var(--bord-champ);
  border-radius: var(--rayon);
  background: var(--surface);
  font: inherit;
  font-size: 16px;
  color: var(--encre);
}

select:focus-visible,
input[type="date"]:focus-visible { outline: 2px solid var(--bleu); outline-offset: 1px; }

input[readonly] { background: #FAF8F4; color: var(--discret); font-size: 14px; }

h2 { margin: 0; font-size: 16px; font-weight: 600; }

.h1-entete { margin-top: 4px; font-size: 30px; }

.pastille { text-decoration: none; flex-shrink: 0; }
.pastille:hover { color: #FFFFFF; }
[data-cor="laranja"].pastille, .avatar[data-cor="laranja"] { background: var(--orange); color: #FFFFFF; }
[data-cor="azul"].pastille, .avatar[data-cor="azul"] { background: var(--bleu); color: #FFFFFF; }

.carte-accent[data-cor="azul"] { background: var(--bleu); }
.carte-accent[data-cor="laranja"] { background: var(--orange); }
.carte-accent--neutre { background: var(--surface); color: var(--encre); border: 1px solid var(--ligne); }
.carte-accent--neutre p { color: var(--discret); }
.carte-accent__sur { font-size: 13px; font-weight: 600; letter-spacing: 0.6px; text-transform: uppercase; }
.carte-accent a { color: inherit; font-weight: 600; }
.carte-accent--neutre a { color: var(--bleu); }

.titre-section { margin: 28px 0 12px; font-size: 16px; font-weight: 600; }
.titre-section--lien { display: flex; justify-content: space-between; align-items: baseline; }
.titre-section--lien a { font-size: 15px; font-weight: 500; }

.liste { display: flex; flex-direction: column; gap: 10px; }

.vide {
  margin: 0;
  padding: 16px;
  border-radius: var(--rayon);
  border: 1px dashed var(--bord-champ);
  color: var(--discret);
  font-size: 15px;
}

.ligne {
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--ligne);
  display: flex;
  align-items: center;
  gap: 14px;
}

.ligne--nue { padding: 0; border: 0; background: transparent; }

.ligne__texte { display: flex; flex-direction: column; gap: 2px; flex-grow: 1; min-width: 0; }
.ligne__titre { font-size: 17px; font-weight: 600; overflow-wrap: anywhere; }
.ligne__detail { font-size: 14px; color: var(--discret); overflow-wrap: anywhere; }

.avatar {
  width: 44px;
  height: 44px;
  border-radius: 22px;
  background: #EFE9DF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  text-transform: uppercase;
  flex-shrink: 0;
}

.lien-bouton {
  min-height: 44px;
  padding: 0 4px;
  border: 0;
  background: none;
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  color: var(--bleu);
  text-decoration: underline;
  cursor: pointer;
  flex-shrink: 0;
}

.lien-bouton:hover { color: var(--bleu-fonce); }
.lien-bouton--danger { color: var(--erreur-texte); align-self: center; }

.bouton--pointille {
  background: transparent;
  color: var(--encre);
  border: 1.5px dashed #BDB4A5;
}

.bouton--pointille:hover { background: #EFE9DF; color: var(--encre); }

.carte {
  padding: 16px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--ligne);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.carte--form { margin-top: 0; gap: 16px; }

.carte__bas {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: var(--discret);
}

.carte-form {
  margin-top: 4px;
  padding: 16px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--ligne);
  gap: 16px;
}

.carte-form__titre { font-size: 17px; font-weight: 600; }

.actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }

.grille-2 { margin-top: 24px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.zone-rythme .grille-2 + .grille-2 { margin-top: 12px; }
.zone-rythme .aide { margin: 10px 0 0; }

.etat-sauvegarde { margin: 6px 0 0; min-height: 20px; font-size: 13px; color: var(--ok-texte); }

.pilule { padding: 5px 12px; border-radius: 999px; font-size: 14px; font-weight: 600; flex-shrink: 0; }
.pilule--attente { background: #FBEBD3; color: #7A4A0C; }
.pilule--ok { background: var(--ok-fond); color: var(--ok-texte); }

.partage { display: flex; flex-direction: column; gap: 12px; padding-top: 12px; border-top: 1px solid var(--ligne); }
.partage .aide { margin: 0; }

.pied-famille { display: flex; justify-content: center; }

/* Menu de baixo */
.nav-bas {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10;
  height: 76px;
  padding: 8px max(8px, calc((100% - 420px) / 2)) 14px;
  background: var(--surface);
  border-top: 1px solid var(--ligne);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.nav-bas a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: var(--discret);
  font-size: 12px;
  font-weight: 500;
  text-decoration: none;
}

.nav-bas a.actif { color: var(--encre); font-weight: 600; }

/* Calendário */
.entete--cal { align-items: center; }
.entete--cal h1 { margin: 0; }
.fleches { display: flex; gap: 6px; }

.rond {
  width: 44px;
  height: 44px;
  border-radius: 22px;
  border: 1px solid var(--bord-champ);
  background: var(--surface);
  color: var(--encre);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.legende { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 16px; font-size: 14px; }
.legende span { display: flex; align-items: center; gap: 6px; }
.trait { display: inline-block; width: 16px; height: 4px; border-radius: 2px; }
.trait[data-cor="azul"], .case__barre[data-cor="azul"] { background: var(--bleu); }
.trait[data-cor="laranja"], .case__barre[data-cor="laranja"] { background: var(--orange); }

.semaine, .grille-mois { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px; }
.semaine { margin-top: 16px; text-align: center; font-size: 12px; font-weight: 600; color: var(--discret); }
.grille-mois { margin-top: 8px; }

.case {
  position: relative;
  height: 52px;
  padding: 7px 0 0;
  border: 0;
  border-radius: 10px;
  background: var(--surface);
  font: inherit;
  color: var(--encre);
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
}

.case--vide { background: transparent; cursor: default; }
.case--choisie { box-shadow: inset 0 0 0 2px var(--encre); }
.case__num { font-size: 15px; font-weight: 500; }
.case--choisie .case__num { font-weight: 700; }
.case__barre { position: absolute; left: 8px; right: 8px; bottom: 6px; height: 4px; border-radius: 2px; }

/* ===== Etapa 6: eventos ===== */

input[type="time"], textarea {
  width: 100%;
  border: 1px solid var(--bord-champ);
  border-radius: var(--rayon);
  background: var(--surface);
  font: inherit;
  font-size: 16px;
  color: var(--encre);
}

input[type="time"] { height: 50px; padding: 0 12px; }
textarea { padding: 12px 16px; resize: vertical; min-height: 80px; }
input[type="time"]:focus-visible, textarea:focus-visible { outline: 2px solid var(--bleu); outline-offset: 1px; }

fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
legend { padding: 0; margin-bottom: 8px; font-size: 14px; font-weight: 600; }

.entete-evenement { display: flex; align-items: center; gap: 24px; margin-top: 8px; }
.entete-evenement a { font-size: 16px; font-weight: 500; padding: 10px 0; }
.entete-evenement h1 { margin: 0; font-size: 22px; }

.pastilles { display: flex; flex-wrap: wrap; gap: 10px; }

.pastille-choix {
  height: 44px;
  padding: 0 18px;
  border-radius: 22px;
  border: 1px solid var(--bord-champ);
  background: var(--surface);
  color: var(--encre);
  font: inherit;
  font-size: 16px;
  cursor: pointer;
}

.pastille-choix[aria-pressed="true"] { background: var(--encre); border-color: var(--encre); color: #FFFFFF; }

.grille-2--serre { margin-top: 0; }

.note-bas { margin: 8px 0 0; font-size: 14px; color: var(--discret); text-align: center; }

.fab {
  position: fixed;
  right: max(20px, calc((100% - 420px) / 2 + 20px));
  bottom: 96px;
  z-index: 11;
  height: 52px;
  padding: 0 22px;
  border-radius: 26px;
  background: var(--encre);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(30, 37, 40, 0.2);
}

.fab:hover { color: #FFFFFF; background: #33403F; }

.page--nav { padding-bottom: 170px; }

.ligne--lien { color: var(--encre); text-decoration: none; }
.ligne--lien:hover { color: var(--encre); border-color: var(--bord-champ); background: #FDFCFA; }
.ligne--compacte { justify-content: space-between; padding: 14px 18px; }
.ligne__icone { display: flex; align-self: flex-start; margin-top: 2px; color: var(--encre); }
.ligne__titre--normal { font-weight: 400; font-size: 17px; }
.ligne__droite { color: var(--discret); font-size: 15px; flex-shrink: 0; }

.ligne--vacances { background: #F3E6BF; border-color: #F3E6BF; }

.bloc-date { width: 48px; display: flex; flex-direction: column; align-items: center; flex-shrink: 0; }
.bloc-date__mois { font-size: 12px; text-transform: uppercase; color: var(--discret); }
.bloc-date__jour { font-size: 20px; font-weight: 600; }

.case--vacances { background: #F3E6BF; }
.case__point { width: 5px; height: 5px; margin-top: 4px; border-radius: 3px; background: var(--encre); }
.carre-vacances { display: inline-block; width: 14px; height: 14px; border-radius: 4px; background: #F3E6BF; }
.case__point { position: absolute; left: 50%; bottom: 15px; margin: 0 0 0 -2.5px; }

/* ===== Perfil ===== */
.profil-carte { margin-top: 20px; }
.avatar--grand { width: 56px; height: 56px; border-radius: 28px; font-size: 22px; }
.carte__bas--colonne { flex-direction: column; align-items: flex-start; gap: 2px; padding-top: 12px; border-top: 1px solid var(--ligne); }
.pied-famille { gap: 24px; align-items: center; }
.pied-famille a { font-size: 15px; font-weight: 500; }
.zone-danger { margin-top: 36px; padding-top: 8px; border-top: 1px solid var(--ligne); }
.bouton--danger { background: var(--erreur-texte); border-color: var(--erreur-texte); color: #FFFFFF; }
.bouton--danger:hover { background: #6E200D; color: #FFFFFF; }
.carte--danger { border-color: #E9B8A9; margin-top: 12px; }
.zone-danger > .bouton, #deconnexion.bouton { width: 100%; }

/* ===== Páginas legais ===== */
.texte-legal { max-width: 680px; }
.texte-legal h1 { margin-top: 16px; }
.texte-legal h2 { margin: 28px 0 8px; font-size: 18px; }
.texte-legal p, .texte-legal li { font-size: 15px; line-height: 1.6; }
.texte-legal p { margin: 0 0 10px; }
.texte-legal ul { margin: 0 0 10px; padding-left: 20px; }
.texte-legal .maj { color: var(--discret); font-size: 14px; }
.texte-legal mark { background: #FBEBD3; color: #7A4A0C; padding: 0 4px; border-radius: 4px; font-weight: 600; }
.texte-legal table { width: 100%; border-collapse: collapse; margin: 8px 0 12px; font-size: 14px; background: var(--surface); border-radius: var(--rayon); overflow: hidden; }
.texte-legal th, .texte-legal td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--ligne); line-height: 1.45; }
.texte-legal th { font-weight: 600; background: #EFE9DF; }
.texte-legal tr:last-child td { border-bottom: 0; }

/* ===== Tela de conexão com apresentação ===== */
.accueil { display: flex; flex-direction: column; }
.page--connexion { width: 100%; }
.marque__nom { margin: 0; }
.presentation { padding: 8px 24px 40px; max-width: 420px; margin: 0 auto; width: 100%; }
.presentation--gauche { order: 2; border-top: 1px solid var(--ligne); padding-top: 36px; }
.presentation--droite { order: 3; }
.page--connexion { order: 1; }
.presentation__sur { margin: 0 0 8px; font-size: 13px; font-weight: 600; letter-spacing: 0.6px; text-transform: uppercase; color: var(--orange); }
.presentation__titre { margin: 0 0 12px; font-family: 'Fraunces', Georgia, serif; font-size: 30px; font-weight: 600; line-height: 1.15; letter-spacing: -0.4px; }
.presentation__titre--petit { font-size: 22px; margin-top: 28px; }
.presentation__texte { margin: 0 0 20px; color: var(--discret); font-size: 16px; line-height: 1.55; }
.atouts { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.atouts li { display: flex; gap: 14px; align-items: flex-start; font-size: 15px; line-height: 1.5; }
.atouts__icone { width: 40px; height: 40px; border-radius: 12px; background: var(--surface); border: 1px solid var(--ligne); display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: var(--bleu); }
.atouts li:nth-child(even) .atouts__icone { color: var(--orange); }
.apercu-appli { padding: 16px; border-radius: 20px; background: var(--surface); border: 1px solid var(--ligne); box-shadow: 0 10px 30px rgba(30, 37, 40, 0.08); display: flex; flex-direction: column; gap: 10px; }
.apercu-appli__entete { display: flex; justify-content: space-between; align-items: center; font-family: 'Fraunces', Georgia, serif; font-size: 18px; font-weight: 600; }
.apercu-appli__pastille { width: 30px; height: 30px; border-radius: 15px; background: var(--bleu); color: #FFFFFF; font-family: 'DM Sans', system-ui, sans-serif; font-size: 13px; display: flex; align-items: center; justify-content: center; }
.apercu-appli__carte { padding: 14px; border-radius: 12px; background: var(--orange); color: #FFFFFF; display: flex; flex-direction: column; gap: 4px; }
.apercu-appli__sur { font-size: 11px; font-weight: 600; letter-spacing: 0.6px; text-transform: uppercase; }
.apercu-appli__titre { font-family: 'Fraunces', Georgia, serif; font-size: 17px; font-weight: 600; }
.apercu-appli__suite { font-size: 13px; }
.apercu-appli__ligne { display: flex; justify-content: space-between; gap: 8px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--ligne); font-size: 14px; }
.apercu-appli__ligne strong { font-weight: 500; }
.apercu-appli__ligne span { color: var(--discret); }
.apercu-appli__ligne--vacances { background: #F3E6BF; border-color: #F3E6BF; }
.etapes-accueil { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 10px; font-size: 15px; line-height: 1.5; }
.garanties { list-style: none; margin: 20px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.garanties li { padding: 6px 12px; border-radius: 12px; background: var(--ok-fond); color: var(--ok-texte); font-size: 13px; font-weight: 600; }

@media (min-width: 1100px) {
  .accueil { display: grid; grid-template-columns: minmax(0, 1fr) 420px minmax(0, 1fr); gap: 48px; align-items: center; max-width: 1360px; margin: 0 auto; padding: 0 32px; min-height: 100vh; }
  .presentation, .page--connexion { order: 0; }
  .presentation { max-width: 400px; padding: 40px 0; }
  .presentation--gauche { border-top: 0; justify-self: end; }
  .presentation--droite { justify-self: start; }
  .page--connexion { min-height: 0; padding: 48px 32px 32px; background: var(--surface); border: 1px solid var(--ligne); border-radius: 24px; box-shadow: 0 10px 30px rgba(30, 37, 40, 0.06); }
  .page--connexion .espace { min-height: 28px; flex-grow: 0; }
}

/* ===== Guia passo a passo ===== */
.guide { position: fixed; inset: 0; z-index: 1000; }
.guide__spot {
  position: fixed;
  border-radius: 14px;
  box-shadow: 0 0 0 9999px rgba(20, 25, 28, 0.62);
  outline: 3px solid #E07A45;
  outline-offset: 2px;
  pointer-events: none;
  transition: left 0.25s ease, top 0.25s ease, width 0.25s ease, height 0.25s ease;
  animation: guide-pulse 1.6s ease-in-out infinite;
}
.guide--centre .guide__spot { outline: 0; animation: none; }
@keyframes guide-pulse {
  0%, 100% { outline-color: #E07A45; outline-offset: 2px; }
  50% { outline-color: #F5B38F; outline-offset: 6px; }
}
.guide__bulle {
  position: fixed;
  width: min(380px, calc(100vw - 24px));
  max-height: calc(100vh - 24px);
  overflow: auto;
  padding: 18px 18px 14px;
  border-radius: 16px;
  background: var(--surface);
  color: var(--encre);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
}
.guide__bulle:focus { outline: none; }
.guide--centre .guide__bulle { left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(440px, calc(100vw - 32px)); padding: 24px; }
.guide__compteur { font-size: 12px; font-weight: 600; letter-spacing: 0.5px; text-transform: uppercase; color: var(--orange); }
.guide__titre { margin: 6px 0 10px; font-family: 'Fraunces', Georgia, serif; font-size: 21px; font-weight: 600; line-height: 1.2; }
.guide--centre .guide__titre { font-size: 26px; }
.guide__texte { margin: 0 0 8px; font-size: 15px; line-height: 1.5; }
.guide__actions { display: flex; gap: 10px; margin-top: 14px; }
.guide__actions .bouton { flex: 1 1 0; height: 46px; padding: 0 12px; font-size: 15px; }
.guide__passer { display: block; margin: 6px auto 0; font-size: 14px; color: var(--discret); }
@media (prefers-reduced-motion: reduce) {
  .guide__spot { animation: none; transition: none; }
}

/* ===== Página inicial (apresentação + login) ===== */
html { scroll-padding-top: 84px; }
.lp { background: var(--fond); }
.lp-conteneur { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.lp-conteneur--etroit { max-width: 780px; }
.lp-barre { position: sticky; top: 0; z-index: 20; background: rgba(246, 243, 238, 0.94); border-bottom: 1px solid var(--ligne); backdrop-filter: blur(6px); }
.lp-barre__interieur { height: 68px; display: flex; align-items: center; gap: 24px; }
.lp-logo { display: flex; align-items: center; gap: 10px; color: var(--encre); text-decoration: none; font-family: 'Fraunces', Georgia, serif; font-size: 21px; font-weight: 600; }
.lp-logo:hover { color: var(--encre); }
.lp-barre__liens { display: none; gap: 24px; margin-left: auto; }
.lp-barre__liens a { color: var(--encre); text-decoration: none; font-size: 15px; font-weight: 500; }
.lp-barre__liens a:hover { color: var(--bleu); }
.lp-barre__cta { margin-left: auto; padding: 10px 16px; border-radius: 10px; background: var(--encre); color: #FFFFFF; font-size: 14px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.lp-barre__cta:hover { color: #FFFFFF; background: #33403F; }

.lp-hero { padding: 36px 0 48px; }
.lp-hero__grille { display: flex; flex-direction: column; gap: 32px; }
.lp-sur { margin: 0 0 10px; font-size: 13px; font-weight: 600; letter-spacing: 0.7px; text-transform: uppercase; color: var(--orange); }
.lp-hero__titre { margin: 0 0 16px; font-family: 'Fraunces', Georgia, serif; font-size: 38px; line-height: 1.08; letter-spacing: -0.8px; font-weight: 600; }
.lp-hero__intro { margin: 0 0 24px; font-size: 18px; line-height: 1.55; color: var(--discret); max-width: 560px; }
.lp-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 20px; }
.lp-bouton { padding: 0 22px; }
.lp-connexion { padding: 28px 24px 24px; border-radius: 20px; background: var(--surface); border: 1px solid var(--ligne); box-shadow: 0 12px 32px rgba(30, 37, 40, 0.07); }
.lp-connexion__titre { margin: 0; font-family: 'Fraunces', Georgia, serif; font-size: 24px; font-weight: 600; }
.lp-connexion form { margin-top: 20px; }

.lp-section { padding: 64px 0; }
.lp-section--clair { background: var(--surface); border-top: 1px solid var(--ligne); border-bottom: 1px solid var(--ligne); }
.lp-titre { margin: 0 0 14px; font-family: 'Fraunces', Georgia, serif; font-size: 30px; line-height: 1.15; letter-spacing: -0.5px; font-weight: 600; }
.lp-intro { margin: 0 0 32px; max-width: 680px; font-size: 17px; line-height: 1.6; color: var(--discret); }
.lp-grille { display: grid; gap: 16px; margin-top: 28px; }
.lp-carte { padding: 22px; border-radius: 16px; background: var(--fond); border: 1px solid var(--ligne); }
.lp-section:not(.lp-section--clair) .lp-carte { background: var(--surface); }
.lp-carte__icone { width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: #E6ECF5; color: var(--bleu); }
.lp-carte:nth-child(even) .lp-carte__icone { background: #F6E3D9; color: var(--orange); }
.lp-carte h3 { margin: 14px 0 6px; font-size: 18px; font-weight: 600; }
.lp-carte p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--discret); }

.lp-comment { display: grid; gap: 40px; align-items: center; }
.lp-etapes { list-style: none; margin: 24px 0 0; padding: 0; display: flex; flex-direction: column; gap: 20px; }
.lp-etapes li { display: flex; gap: 16px; align-items: flex-start; }
.lp-etapes__num { width: 36px; height: 36px; border-radius: 18px; background: var(--encre); color: #FFFFFF; font-weight: 600; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.lp-etapes h3 { margin: 4px 0 4px; font-size: 18px; font-weight: 600; }
.lp-etapes p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--discret); }
.lp-note { margin: 24px 0 0; font-size: 15px; color: var(--discret); }
.lp-comment .apercu-appli { max-width: 420px; width: 100%; justify-self: center; }

.lp-donnees { display: flex; gap: 20px; align-items: flex-start; }
.lp-donnees__icone { width: 64px; height: 64px; border-radius: 18px; background: var(--ok-fond); color: var(--ok-texte); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.lp-liste { margin: 8px 0 16px; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; font-size: 16px; line-height: 1.55; }

.lp-faq { margin-top: 24px; display: flex; flex-direction: column; gap: 10px; }
.lp-faq__item { border-radius: 14px; background: var(--fond); border: 1px solid var(--ligne); padding: 0 20px; }
.lp-faq__item summary { cursor: pointer; padding: 18px 0; font-size: 17px; font-weight: 600; list-style-position: outside; }
.lp-faq__item p { margin: 0 0 18px; font-size: 15px; line-height: 1.6; color: var(--discret); }

.lp-final { padding: 64px 0; background: var(--encre); color: #FFFFFF; text-align: center; }
.lp-final p { margin: 0 0 24px; font-size: 17px; color: #D6D9DA; }
.lp-final__actions { justify-content: center; }
.lp-final .bouton { background: #FFFFFF; color: var(--encre); border-color: #FFFFFF; }
.lp-final .bouton:hover { background: #EFE9DF; color: var(--encre); }
.lp-final .lp-bouton--clair { background: transparent; color: #FFFFFF; }
.lp-final .lp-bouton--clair:hover { background: rgba(255, 255, 255, 0.1); color: #FFFFFF; }

.lp-pied { padding: 28px 0 36px; }
.lp-pied__interieur { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; }

@media (min-width: 720px) {
  .lp-grille--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lp-hero__titre { font-size: 46px; }
}

@media (min-width: 1000px) {
  .lp-barre__liens { display: flex; }
  .lp-barre__cta { margin-left: 8px; }
  .lp-hero { padding: 48px 0 64px; }
  .lp-hero__grille { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 64px; align-items: center; min-height: calc(100vh - 68px - 112px); }
  .lp-hero__titre { font-size: 54px; }
  .lp-grille--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lp-comment { grid-template-columns: minmax(0, 1fr) 420px; gap: 64px; }
  .lp-titre { font-size: 36px; }
  .lp-section { padding: 88px 0; }
}
.lp-barre__connexion { margin-left: auto; font-size: 14px; font-weight: 600; color: var(--encre); text-decoration: none; white-space: nowrap; }
.lp-barre__connexion + .lp-barre__cta { margin-left: 0; }
@media (max-width: 420px) { .lp-barre__cta { display: none; } }
@media (min-width: 1000px) { .lp-barre__connexion { display: none; } .lp-barre__connexion + .lp-barre__cta { margin-left: 8px; } }

/* ===== Afiliação ===== */
.lp-section--haut { padding: 40px 0 24px; }
.lp-barre__liens--toujours { display: flex; margin-left: auto; }
.avis-partenaire { margin: 0; max-width: 760px; padding: 14px 16px; border-radius: 12px; background: #FBEBD3; color: #5C3A0A; font-size: 14px; line-height: 1.5; }
.idees__titre { margin: 28px 0 6px; font-family: 'Fraunces', Georgia, serif; font-size: 24px; font-weight: 600; }
.idees__intro { margin: 0; max-width: 720px; color: var(--discret); font-size: 16px; line-height: 1.55; }
#choix-age, #choix-niveau { margin-top: 8px; }
.idee { display: flex; flex-direction: column; }
.idee p { flex-grow: 1; }
.idee__lien { margin-top: 16px; height: 44px; font-size: 15px; }
.liste-rentree { list-style: none; margin: 20px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.liste-rentree li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 12px; background: var(--surface); border: 1px solid var(--ligne); font-size: 16px; }
.liste-rentree a { font-size: 14px; font-weight: 600; white-space: nowrap; }
.carte-suggestion { gap: 8px; }
.carte-suggestion__etiquette { font-size: 12px; font-weight: 600; letter-spacing: 0.4px; text-transform: uppercase; color: var(--discret); }
.carte-suggestion .bouton { height: 44px; font-size: 15px; }
#suggestions .titre-section { margin-bottom: 0; }
@media (max-width: 999px) { .lp-barre__liens--toujours { gap: 16px; } .lp-barre__liens--toujours + .lp-barre__cta { margin-left: 0; } }
@media (max-width: 420px) { .lp-barre__liens--toujours { display: none; } .lp-barre__liens--toujours + .lp-barre__cta { display: inline-block; margin-left: auto; } }

/* ===== Visibilidade da afiliação ===== */
.nav-bas { grid-template-columns: repeat(5, minmax(0, 1fr)); padding-left: max(4px, calc((100% - 460px) / 2)); padding-right: max(4px, calc((100% - 460px) / 2)); }
.nav-bas a { font-size: 11.5px; }
.lien-cadeau { margin-top: -4px; margin-left: 12px; align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px; border-radius: 18px; background: #F6E3D9; color: #8A3D1E; font-size: 14px; font-weight: 600; text-decoration: none; }
.lien-cadeau:hover { background: #F1D3C3; color: #6E2F16; }
.lien-cadeau svg { width: 18px; height: 18px; }
.lien-cadeau__pub { font-size: 11px; font-weight: 500; color: #9A5A3C; }
#idee-cadeau { border-color: #F1D3C3; background: #FDF6F2; }
.idee__lien { background: var(--orange); border-color: var(--orange); color: #FFFFFF; }
.idee__lien:hover { background: #9C4726; border-color: #9C4726; color: #FFFFFF; }
.liste-rentree a { padding: 8px 12px; border-radius: 10px; background: var(--orange); color: #FFFFFF; text-decoration: none; }
.liste-rentree a:hover { background: #9C4726; color: #FFFFFF; }
.lp-section--idees { background: #FDF6F2; border-top: 1px solid #F1D3C3; border-bottom: 1px solid #F1D3C3; }
.lp-carte--lien { display: flex; flex-direction: column; text-decoration: none; color: var(--encre); background: var(--surface); transition: transform 0.15s ease, box-shadow 0.15s ease; }
.lp-carte--lien:hover { color: var(--encre); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(30, 37, 40, 0.08); }
.lp-carte--lien h3 { margin-top: 0; }
.lp-carte--lien p { flex-grow: 1; }
.lp-carte__cta { margin-top: 14px; font-weight: 600; color: var(--orange); }
.carte-suggestion .bouton { background: var(--orange); border-color: var(--orange); color: #FFFFFF; }
.carte-suggestion .bouton:hover { background: #9C4726; border-color: #9C4726; color: #FFFFFF; }
@media (prefers-reduced-motion: reduce) { .lp-carte--lien { transition: none; } }

/* ===== Layout computador: página larga, menu no topo, duas colunas ===== */
.nav-bas__logo { display: none !important; }
.famille-grille { display: grid; grid-template-columns: minmax(0, 1fr); }

@media (min-width: 1000px) {
  /* Menu vira barra no topo: libera a parte de baixo da tela */
  .nav-bas {
    top: 0; bottom: auto; height: 64px;
    padding: 0 max(32px, calc((100% - 1200px) / 2 + 40px));
    border-top: 0; border-bottom: 1px solid var(--ligne);
    display: flex; align-items: center; gap: 6px;
  }
  .nav-bas a {
    flex-direction: row; gap: 8px; height: 40px; padding: 0 14px;
    border-radius: 20px; font-size: 15px;
  }
  .nav-bas a:hover { background: var(--fond); color: var(--encre); }
  .nav-bas a.actif { background: var(--fond); }
  .nav-bas a svg { width: 20px; height: 20px; }
  .nav-bas .nav-bas__logo {
    display: flex !important; margin-right: auto; padding: 0; gap: 10px;
    font-family: 'Fraunces', Georgia, serif; font-size: 20px; font-weight: 600; color: var(--encre);
  }
  .nav-bas .nav-bas__logo:hover { background: none; }

  .page--nav { max-width: 1200px; padding: 96px 40px 64px; min-height: 0; }
  .page--nav > h1:first-of-type, .page--nav .intro { max-width: 760px; }

  .fab { right: max(32px, calc((100% - 1200px) / 2 + 40px)); bottom: 32px; }

  /* Accueil: presentes à esquerda, compromissos à direita */
  .tableau-grille {
    display: grid; grid-template-columns: minmax(300px, 380px) minmax(0, 1fr);
    grid-template-areas: "cote principal"; gap: 40px; align-items: start; margin-top: 8px;
  }
  .tableau-principal { grid-area: principal; }
  .tableau-cote { grid-area: cote; position: sticky; top: 88px; }
  .tableau-cote #suggestions > :first-child { margin-top: 0; }
  .tableau-grille:has(#suggestions[hidden]) { grid-template-columns: minmax(0, 1fr); grid-template-areas: "principal"; }
  .tableau-principal > #garde-du-jour + .titre-section { margin-top: 28px; }

  /* Calendário: mês à esquerda, dia escolhido à direita */
  .cal-grille { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 40px; align-items: start; }
  .cal-grille .case { height: 64px; }
  .cal-jour { position: sticky; top: 88px; }
  .cal-jour .titre-section { margin-top: 6px; }

  /* Família: filhos e outro responsável à esquerda, ritmo à direita */
  .famille-grille {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 40px;
    grid-template-areas: "enfants rythme" "parent rythme"; align-items: start;
  }
  #enfants { grid-area: enfants; }
  #rythme { grid-area: rythme; }
  #parent { grid-area: parent; }
  .famille-grille ~ .bouton { max-width: 420px; }

  /* Histórico: largura de leitura confortável */
  #liste-historique { max-width: 820px; }

  /* Perfil: cartões em duas colunas */
  .profil-grille { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 32px; align-items: start; }
  .page--nav .profil-carte { max-width: none; }
  .page--nav #deconnexion, .page--nav .zone-danger { max-width: 420px; }

  /* Evento (sem menu): um pouco mais largo */
  body[data-page="evenement"] .page { max-width: 640px; }
}

/* ===== Repetição de eventos ===== */
.repetition { margin: 4px 0 20px; padding: 16px; }
.repetition .case-accord { font-size: 15px; cursor: pointer; }
.repetition__champs { margin-top: 16px; }
.repetition__champs .champ { margin-bottom: 12px; }
.repetition .pastilles { margin-top: 0; }
.repetition__resume { margin: 12px 0 0; font-size: 14px; }
.repetition--info { font-size: 14px; color: var(--discret); line-height: 1.5; }
.repetition__resume[data-type="erreur"] { color: var(--erreur-texte); font-weight: 600; }
@media (max-width: 480px) { .repetition__champs { grid-template-columns: minmax(0, 1fr); gap: 0; } }
.avis-partenaire--neutre { background: var(--ok-fond); color: var(--ok-texte); }
