/* Site vitrine Rann : thème Marée de l'appli (voir CHARTE.md).
   Un seul thème clair, comme les sites Keriou et Ostiz. */
@import url(fonts.css);

:root {
  --fond: #f2f6f8;
  --surface: #ffffff;
  --encre: #0f2740;
  --secondaire: #4f6275;
  --filet: #d5e0e8;
  --tuile: #e1e9ef;
  --champ: #8fa3b5;
  --action: #0b5cad;
  --action-survol: #08457f;
  --repere: #f5c84c;          /* fond seulement, jamais du texte sur clair */
  --marine: #0f2740;
  --marine-doux: #c3d2e1;
  --marine-texte: #dbe5ee;
  --marine-profond: #07111c;
  --commun-fond: #fff4cc;
  --commun-texte: #3d3000;
  --commun-etiquette: #6b4e00;
  --libre: #0f5132;
  --libre-point: #1c8a57;
  --occupe: #9b2c1f;
  --occupe-point: #c2412f;
  --rayon: 10px;
  --rayon-btn: 8px;
  --largeur: 1160px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--fond); color: var(--encre);
  font: 17px/1.5 'Atkinson Hyperlegible', system-ui, sans-serif;
}
h1, h2, h3 { font-family: 'Outfit', system-ui, sans-serif; margin: 0; line-height: 1.15; }
p { margin: 0; }
a { color: var(--action); }
a:hover { color: var(--action-survol); }
:focus-visible { outline: 3px solid var(--action); outline-offset: 2px; }
[hidden] { display: none !important; }
[id] { scroll-margin-top: 16px; }

.lien-evitement { position: absolute; left: -9999px; top: 8px; background: var(--surface); padding: 8px 12px; z-index: 10; }
.lien-evitement:focus { left: 8px; }
.visuellement-cache { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.conteneur { max-width: var(--largeur); margin: 0 auto; padding-left: 24px; padding-right: 24px; }

/* Boutons */
.btn {
  display: inline-block; text-decoration: none; font-weight: 700; padding: 13px 22px;
  border-radius: var(--rayon-btn); border: 2px solid transparent; font-size: 18px; text-align: center; cursor: pointer;
  font-family: inherit; line-height: 1.3;
}
.btn-repere { background: var(--repere); color: var(--marine); }
.btn-repere:hover { background: #ffd866; color: var(--marine); }
.btn-contour { border-color: var(--marine-doux); color: #ffffff; }
.btn-contour:hover { border-color: #ffffff; color: #ffffff; }
.btn-action { background: var(--action); color: #ffffff; }
.btn-action:hover { background: var(--action-survol); color: #ffffff; }
.btn:disabled { opacity: .6; cursor: default; }

/* En-tête */
.entete { background: var(--marine); color: #ffffff; }
.nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding-top: 18px; padding-bottom: 18px; }
.marque { display: flex; align-items: center; gap: 10px; color: #ffffff; text-decoration: none; font-family: 'Outfit', sans-serif; font-weight: 700; font-size: 26px; letter-spacing: -0.01em; }
.marque:hover { color: #ffffff; }
.nav-liens { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 26px; font-size: 16px; }
.nav-liens a { color: var(--marine-doux); text-decoration: none; }
.nav-liens a:hover { color: #ffffff; }
.nav-liens .btn { color: var(--marine); font-size: 16px; padding: 9px 16px; }

.hero { display: flex; flex-wrap: wrap; align-items: center; gap: 56px; padding-top: 48px; padding-bottom: 88px; }
.hero-texte { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.hero h1 { font-size: clamp(36px, 5vw, 56px); font-weight: 700; letter-spacing: -0.02em; }
.surtitre { color: var(--action); font-weight: 700; font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase; }
.hero .surtitre { color: var(--repere); }
.chapo { font-size: 20px; color: var(--marine-texte); max-width: 600px; }
.boutons { display: flex; flex-wrap: wrap; gap: 14px; padding-top: 6px; }
.hero .note { font-size: 15px; color: var(--marine-doux); }

/* Téléphone de l'accueil (décoratif, aria-hidden) */
.hero-visuel { flex: 1 1 300px; display: flex; justify-content: center; }
.telephone { width: 300px; background: var(--fond); border: 10px solid var(--marine-profond); border-radius: 36px; overflow: hidden; color: var(--encre); box-shadow: 0 24px 48px rgba(0, 0, 0, .35); }
.tel-entete { background: var(--marine); color: #ffffff; padding: 22px 16px 14px; display: flex; flex-direction: column; gap: 10px; }
.tel-territoire { color: var(--repere); font-weight: 700; font-size: 11px; letter-spacing: 0.05em; }
.tel-groupe { font-family: 'Outfit', sans-serif; font-weight: 600; font-size: 19px; }
.tel-filtre { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); background: #1d3a57; border-radius: 8px; padding: 3px; font-size: 12px; text-align: center; }
.tel-filtre span { padding: 5px 0; color: var(--marine-doux); }
.tel-filtre .actif { background: #ffffff; color: var(--encre); border-radius: 6px; font-weight: 700; }
.tel-liste { padding: 12px; display: flex; flex-direction: column; gap: 10px; font-size: 13px; }
.tel-objet { background: var(--surface); border: 1px solid var(--filet); border-radius: var(--rayon); padding: 10px; display: flex; gap: 10px; align-items: center; }
.tel-photo { width: 46px; height: 46px; border-radius: 8px; background: var(--tuile); flex-shrink: 0; }
.tel-photo.commun { background: var(--commun-fond); }
.tel-infos { display: flex; flex-direction: column; gap: 3px; }
.tel-infos b { font-size: 14px; }
.tel-infos .qui { color: var(--secondaire); }
.etiquette-commun { background: var(--commun-fond); color: var(--commun-etiquette); font-size: 11px; font-weight: 700; padding: 1px 6px; border-radius: 4px; align-self: flex-start; }
.dispo::before { content: "●"; margin-right: 4px; }
.dispo.libre { color: var(--libre); }
.dispo.libre::before { color: var(--libre-point); }
.dispo.occupe { color: var(--occupe); }
.dispo.occupe::before { color: var(--occupe-point); }

/* Sections */
.section { padding-top: 88px; padding-bottom: 40px; display: flex; flex-direction: column; gap: 32px; }
.section-claire { background: var(--surface); border-top: 1px solid var(--filet); border-bottom: 1px solid var(--filet); }
.section-claire > .section { padding-bottom: 88px; }
.titre-section { display: flex; flex-direction: column; gap: 10px; max-width: 760px; }
.titre-section h2 { font-size: clamp(28px, 3.4vw, 38px); font-weight: 700; }
.titre-section .intro { color: var(--secondaire); font-size: 19px; }

.grille { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); }
.grille-4 { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); }

.carte { background: var(--surface); border: 1px solid var(--filet); border-radius: var(--rayon); padding: 30px; display: flex; flex-direction: column; gap: 14px; }
.carte h3 { font-size: 25px; font-weight: 600; }
.carte p, .carte li { color: var(--secondaire); }
.carte ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.carte.commun { background: var(--commun-fond); border-color: var(--commun-fond); }
.carte.commun p, .carte.commun li { color: var(--commun-texte); }

.etapes { list-style: none; margin: 0; padding: 0; }
.etape { background: var(--surface); border: 1px solid var(--filet); border-radius: var(--rayon); padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.etape h3 { font-size: 20px; font-weight: 600; }
.etape p { color: var(--secondaire); }
.chiffre { width: 40px; height: 40px; border-radius: 50%; background: var(--marine); color: var(--repere); font-family: 'Outfit', sans-serif; font-weight: 700; font-size: 20px; display: flex; align-items: center; justify-content: center; }

.public { border: 1px solid var(--filet); border-radius: var(--rayon); overflow: hidden; display: flex; flex-direction: column; background: var(--surface); }
.public::before { content: ""; height: 8px; background: var(--marine); }
.public.bailleur::before { background: var(--action); }
.public.voisins::before { background: var(--repere); }
.public div { padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.public h3 { font-size: 23px; font-weight: 600; }
.public p { color: var(--secondaire); }

.fonctions { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); column-gap: 32px; border-top: 1px solid var(--filet); }
.fonction { padding: 24px 0; border-bottom: 1px solid var(--filet); display: flex; flex-direction: column; gap: 6px; }
.fonction h3 { font-size: 19px; font-weight: 600; }
.fonction p { color: var(--secondaire); }
.bientot { display: inline-block; background: var(--tuile); color: var(--encre); font-family: 'Atkinson Hyperlegible', sans-serif; font-size: 13px; font-weight: 700; padding: 2px 8px; border-radius: 4px; vertical-align: 3px; margin-left: 6px; }

/* Tarifs */
.palier { background: var(--surface); border: 1px solid var(--filet); border-radius: var(--rayon); padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.palier h3 { font-size: 20px; font-weight: 600; }
.palier .prix { font-family: 'Outfit', sans-serif; font-size: 40px; font-weight: 700; line-height: 1.1; }
.palier .prix small { font-size: 16px; font-weight: 500; color: var(--secondaire); }
.palier p { color: var(--secondaire); }
.palier.fort { background: var(--marine); border-color: var(--marine); color: #ffffff; }
.palier.fort h3 { color: var(--repere); }
.palier.fort p, .palier.fort .prix small { color: var(--marine-texte); }
.encart-offre { background: var(--commun-fond); color: var(--commun-texte); border-radius: var(--rayon); padding: 22px 28px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; font-size: 18px; }

/* FAQ */
.faq { max-width: 860px; }
.faq details { border-bottom: 1px solid var(--filet); padding: 16px 0; }
.faq summary { font-weight: 700; font-size: 19px; cursor: pointer; }
.faq details p { color: var(--secondaire); padding-top: 10px; }

/* Contact */
.contact { display: flex; flex-wrap: wrap; gap: 48px; padding-bottom: 88px; }
.contact-texte { flex: 1 1 320px; display: flex; flex-direction: column; gap: 14px; }
.contact-texte h2 { font-size: clamp(28px, 3.4vw, 38px); font-weight: 700; }
.contact-texte p { color: var(--secondaire); font-size: 19px; }
.formulaire { flex: 2 1 480px; min-width: 0; background: var(--surface); border: 1px solid var(--filet); border-radius: var(--rayon); padding: 28px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 18px; }
.formulaire[hidden] { display: none; }
.formulaire label { display: flex; flex-direction: column; gap: 6px; font-weight: 700; }
.formulaire input, .formulaire select, .formulaire textarea { font: inherit; font-weight: 400; color: inherit; padding: 12px; border: 1px solid var(--champ); border-radius: var(--rayon-btn); background: var(--surface); width: 100%; }
.formulaire .large, .formulaire .statut, .formulaire button { grid-column: 1 / -1; }
.formulaire button { justify-self: start; }
.formulaire .piege { position: absolute; left: -9999px; }
.statut { color: var(--secondaire); min-height: 1.5em; }

/* Pied de page */
.pied { background: var(--marine); color: var(--marine-doux); }
.pied .conteneur { padding-top: 32px; padding-bottom: 32px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; font-size: 15px; }
.pied b { color: #ffffff; }
.pied nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.pied a { color: var(--marine-doux); }
.pied a:hover { color: #ffffff; }

/* Pages de texte (mentions, confidentialité, 404) */
.texte { max-width: 760px; margin: 0 auto; padding: 56px 24px 88px; display: flex; flex-direction: column; gap: 14px; }
.texte h1 { font-size: clamp(30px, 4vw, 40px); font-weight: 700; }
.texte h2 { font-size: 22px; font-weight: 600; margin-top: 18px; }
.texte ul { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 6px; }
.texte .maj { color: var(--secondaire); font-size: 15px; }
.texte .encart-offre { font-size: 16px; }

@media (max-width: 640px) {
  .nav-liens a:not(.btn) { display: none; }
  .hero { padding-top: 24px; padding-bottom: 48px; gap: 40px; }
  .hero .boutons .btn { flex: 1 1 100%; }
  .section { padding-top: 56px; }
  .carte, .palier, .formulaire { padding: 22px; }
}
