/* Feuille de style commune — Cabinet d'ostéopathie Cali & Ecanvil */

/* Polices hébergées sur le site (aucun appel à Google).
   Titres en swap ; texte courant et étiquettes en optional pour éviter les décalages de mise en page. */
@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(/assets/fonts/bricolage-grotesque-latin.woff2) format('woff2');
}
@font-face {
  font-family: 'Karla';
  font-style: normal;
  font-weight: 400 700;
  font-display: optional;
  src: url(/assets/fonts/karla-latin.woff2) format('woff2');
}
@font-face {
  font-family: 'Spline Sans Mono';
  font-style: normal;
  font-weight: 400 500;
  font-display: optional;
  src: url(/assets/fonts/spline-sans-mono-latin.woff2) format('woff2');
}
/* ===== Lisibilité ===== */
html { -webkit-text-size-adjust: 100%; }
.c-sec p { max-width: 680px; }
.c-sec .c-faq p, .c-sec .c-alert p { max-width: none; }

/* Boutons : 48 px minimum, libellé centré */
.btnp, .btng, .btnd { min-height: 48px; box-sizing: border-box; display: inline-flex !important; align-items: center; justify-content: center; text-align: center; }

/* Blocs repliables (formations, communes) */
.c-more { margin-top: 8px; }
.c-more > summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 10px; min-height: 48px; font-weight: 700; font-size: 15px; color: #2F5D46; }
.c-more > summary::-webkit-details-marker { display: none; }
.c-more > summary::after { content: "+"; font-size: 20px; line-height: 1; }
.c-more[open] > summary::after { content: "\2212"; }

/* FAQ en accordéon */
.c-faq { border-top: 1px solid #D9D0BD; }
.c-faq details { border-bottom: 1px solid #D9D0BD; }
.c-faq summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 40px 1fr 24px; gap: 20px; align-items: start; padding: 22px 0; min-height: 48px; box-sizing: border-box; }
.c-faq summary::-webkit-details-marker { display: none; }
.c-faq summary::after { content: "+"; font-size: 24px; line-height: 1; color: #2F5D46; }
.c-faq details[open] summary::after { content: "\2212"; }
.c-faqn { font-family: 'Spline Sans Mono', monospace; font-size: 13px; color: #8A5A0F; padding-top: 4px; }
.c-faq details > p { margin: 0 44px 24px 60px; }

/* Sommaire des pages motifs */
.c-toc { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 30px; }
.c-toc a { min-height: 40px; box-sizing: border-box; display: inline-flex; align-items: center; }

/* Encadrés : avis médical, tarif */
.c-alert { background: #FFF8EC; border: 1px solid #E5CFA3; border-left: 4px solid #8A5A0F; border-radius: 4px; padding: 26px 28px; }
.c-box { background: #FFFFFF; border: 1px solid #DDD6C6; border-radius: 4px; padding: 26px 28px; }

/* Listes longues en deux colonnes sur ordinateur */
@media (min-width: 1000px) {
  ul.c-cols2 { display: block !important; columns: 2; column-gap: 36px; }
  ul.c-cols2 li { break-inside: avoid; margin-bottom: 9px; }
}

/* Mobile */
@media (max-width: 700px) {
  .c-sec p, .c-sec li { font-size: 17px !important; line-height: 1.65 !important; }
  .c-sec p { max-width: none; }
  .c-cta, .c-herocta { flex-direction: column !important; align-items: stretch !important; }
  .c-cta > a, .c-herocta > a { width: 100%; }
  .c-maplink { grid-template-columns: 1fr !important; gap: 0 !important; }
  .c-maplink > span { padding: 18px 20px 20px !important; }
  .c-faq summary { grid-template-columns: 30px 1fr 20px; gap: 12px; }
  .c-faq details > p { margin: 0 0 22px 0; }
  .c-alert, .c-box { padding: 20px; }
}

/* Pied de page : 4 colonnes, 2 sur tablette, 1 sur mobile */
@media (max-width: 1000px) { .c-footnav { grid-template-columns: 1fr 1fr !important; } }
@media (max-width: 700px) {
  .c-footnav { grid-template-columns: 1fr !important; gap: 24px !important; }
  .c-sec .c-footnav li { font-size: 15px !important; line-height: 1.5 !important; }
  .c-footnav ul { gap: 8px !important; }
  /* pages plus courtes sur téléphone */
  .c-hero img.c-heroimg { height: 240px !important; }
  #avis .c-grid3 { display: flex !important; overflow-x: auto; scroll-snap-type: x mandatory; gap: 14px !important; padding-bottom: 10px; }
  #avis .c-grid3 > div { flex: 0 0 85%; scroll-snap-align: start; }
}

/* Accessibilité : liens soulignés dans le texte, points du diaporama assez grands au toucher */
.c-sec p a:not(.btnp):not(.btng):not(.btnd) { text-decoration: underline !important; text-underline-offset: 2px; }
button[data-car="dot"] { width: 24px !important; height: 24px !important; padding: 7.5px !important; background-clip: content-box !important; }
