/* Site de l'Atelier Postural - reprise du template « atelier » (Template Creator CK + Page Builder CK).
   Polices : Belgika (titres, gratuite, Font Squirrel) et Carlito (texte, licence OFL, mêmes dimensions que Calibri). */
@font-face { font-family: Belgika; src: url(../fonts/belgika_16th-webfont.woff2) format("woff2"), url(../fonts/belgika_16th-webfont.woff) format("woff"); font-display: swap; }
@font-face { font-family: Carlito; src: url(../fonts/carlito-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: Carlito; src: url(../fonts/carlito-latin-700-normal.woff2) format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: Carlito; src: url(../fonts/carlito-latin-400-italic.woff2) format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: Carlito; src: url(../fonts/carlito-latin-700-italic.woff2) format("woff2"); font-weight: 700; font-style: italic; font-display: swap; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
/* Triangles de couleur fixés sur le côté droit de la fenêtre */
body {
  margin: 0; color: #333; font: 20px/24px Carlito, Calibri, "Segoe UI", sans-serif;
  background: #fff url(../img/triangles-cote.png) 100% 50% / contain no-repeat fixed;
}
img { max-width: 100%; height: auto; border: 0; }
a { color: #1176a6; }
a:hover, a:focus { color: #2a4959; }

/* ---------- Colonne centrale ---------- */
.colonne { position: relative; width: 70%; max-width: 1300px; margin: 25px auto 0; }

/* Menu posé sur la première section */
.menu { position: absolute; z-index: 5; top: 55px; left: 30px; }
.bouton-menu { display: block; padding: 0; border: 0; background: none; color: #333; font: 20px Carlito, Calibri, sans-serif; cursor: default; }
.menu ul { list-style: none; margin: 4px 0 0; padding: 0 0 0 15px; }
.menu a { color: #fff; text-decoration: none; font-size: 20px; line-height: 24px; text-transform: uppercase; text-shadow: 0 0 6px rgba(0, 0, 0, .35); }
.menu a:hover { text-decoration: underline; }

/* ---------- Sections (un bloc = une section) ---------- */
.section { position: relative; margin-bottom: 25px; padding: 40px 30px 50px; background: #fff center / cover no-repeat; overflow: hidden; }
/* photo de fond qui reste en place pendant le défilement (effet parallaxe), sauf sur les écrans tactiles */
.section.avec-fond { background-attachment: fixed; }
@media (hover: none) { .section.avec-fond { background-attachment: scroll; } }
.section-interieur { position: relative; z-index: 1; }
.titre-section { margin: 0 0 30px; font: 400 26px/30px Belgika, "Century Gothic", sans-serif; text-transform: uppercase; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px;
  text-shadow: 0 0 6px rgba(255, 255, 255, .9), 0 0 2px rgba(255, 255, 255, .9); }

/* Contenu */
.bloc-contenu::after { content: ""; display: table; clear: both; }
.bloc-contenu p { margin: 0 0 24px; }
/* texte justifié dans les grands paragraphes, comme l'ancien site (pas dans les tarifs, faits de lignes courtes) */
.panneau-droite p, .panneau-gauche p, .colonnes-3 p, .membre .plus p, .justifie p { text-align: justify; }
.bloc-contenu h3 { margin: 0 0 20px; font: 400 16px/36px Belgika, "Century Gothic", sans-serif; text-transform: uppercase; }
.bloc-contenu h4 { margin: 18px 0 2px; font: 400 16px/26px Belgika, "Century Gothic", sans-serif; text-transform: uppercase; text-decoration: underline; }
.bloc-contenu ul { margin: 0 0 20px; padding-left: 22px; }
.bloc-contenu .note { font-style: italic; font-weight: 700; text-align: left; }
.bloc-contenu .alerte { color: #f59c0c; font-weight: 700; text-align: left; }

/* Panneau blanc semi-transparent sur la photo */
.panneau { background: rgba(255, 255, 255, .72); border-radius: 5px; padding: 15px; }
.panneau > :last-child { margin-bottom: 0; }
.panneau-droite { margin-left: 32%; margin-top: 50px; }
.panneau-gauche { width: 42%; }
.colonnes { display: grid; grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); gap: 40px; align-items: start; }
.colonnes-2 { --n: 2; } .colonnes-3 { --n: 3; }
.decale { margin-top: 160px; }

/* Accueil : bandeau orange « Cabinet de kinésithérapie » et logo dans un cadre gris */
#presentation { min-height: 600px; }
#presentation .section-interieur { position: static; }   /* cabinet et logo placés par rapport à la section */
.hero-cabinet { position: absolute; left: 0; top: 370px; width: 50%; margin: 0 !important; }
.hero-logo { position: absolute; right: 15px; top: 330px; width: 48%; margin: 0 !important; }
.hero-logo img { display: block; width: 100%; background: rgba(230, 230, 230, .55); border-radius: 5px; }

/* Triangles de décor de certaines sections (fixés dans la mise en page, pas dans le contenu) */
#soins::before, #soins::after, #ateliers::before, #coaching::after {
  content: ""; position: absolute; z-index: 0; background: center / contain no-repeat; pointer-events: none;
}
#soins::before { left: 30px; top: 120px; width: 245px; height: 267px; background-image: url(/images/decor/triangle2.png); }
#soins::after { left: 30px; top: 550px; width: 192px; height: 500px; background-image: url(/images/decor/triangle3.png); }
#ateliers::before { right: 60px; top: 40px; width: 243px; height: 120px; background-image: url(/images/decor/triangle4.png); }
#coaching::after { right: 120px; top: 80px; width: 365px; height: 365px; background-image: url(/images/decor/triangle5.png); }

/* Équipe : fiches de couleur ; le parcours s'ouvre en cliquant sur le nom */
/* fiche = rectangle de couleur : photo carrée, nom en blanc dedans, parcours qui s'ouvre dans la fiche */
.equipe-fiches { align-items: start; }
#equipe .equipe-fiches { margin-top: 40px; margin-bottom: 70px; }   /* fiches remontées, de l'air en dessous */
.membre { padding: 25px 30px 22px; color: #fff; text-align: center; }
.membre-orange { background: rgba(232, 150, 50, .88); }
.membre-bordeaux { background: rgba(110, 30, 30, .88); }
.membre .portrait { margin: 0 0 18px !important; line-height: 0; text-align: center !important; }
.membre .portrait img { width: 170px; height: 170px; object-fit: cover; border: 4px solid rgba(255, 255, 255, .85); }
.membre .ouvrir { margin: 0; color: #fff; font-size: 22px; line-height: 30px; text-decoration: underline; text-underline-offset: 5px; }
.membre .ouvrir::before { background: #fff; color: #333; }
.membre .plus { margin-top: 18px; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .6); }
.membre .plus p { margin: 0 0 6px; color: #fff; }
.membre .plus a { color: #fff; }

/* Bouton « ouvrir / afficher plus » */
.ouvrir, .afficher-plus { cursor: pointer; user-select: none; }
.ouvrir::before, .afficher-plus::before {
  content: "↓"; display: inline-block; width: 22px; height: 22px; margin-right: 8px; border-radius: 50%; background: #111; color: #fff;
  font: 700 14px/22px Arial, sans-serif; text-align: center; text-decoration: none; vertical-align: 3px; transition: transform .25s;
}
.ouvert > .ouvrir::before, .afficher-plus.ouvert::before { transform: rotate(180deg); }
.afficher-plus { margin: 10px 0 20px !important; font: 400 14px Belgika, "Century Gothic", sans-serif; text-transform: uppercase; text-decoration: underline; text-align: left !important; }
.plus { display: none; }
.ouvert > .plus, .afficher-plus.ouvert + .plus { display: block; }

/* Carte Google Maps */
.bloc-contenu iframe { display: block; width: 100%; height: 300px; border: 0; }
/* Infos pratiques : 4 cases (Contact | Tarifs, puis Carte | Important), comme l'ancien site */
.grille-infos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 45px 50px; align-items: stretch; }
.grille-infos > * { margin: 0 !important; }
.panneau-gris { background: rgba(150, 150, 150, .75); }
/* carte et « Important » : même hauteur (la carte reste au moins carrée) */
.case-carte { line-height: 0; aspect-ratio: 1 / 1; }
.case-carte iframe { width: 100%; height: 100%; border-radius: 5px; }
.case-important { align-self: stretch; }

/* Galerie (si un bloc « galerie » est ajouté) */
.galerie { display: flex; flex-wrap: wrap; gap: 12px; }
.galerie .photo { line-height: 0; }
.galerie .photo img { height: 160px; width: auto; }

/* Pied de page */
.pied { padding: 10px 0 30px; text-align: center; font-size: 14px; }
.pied p { margin: 0; }

/* Bouton Doctolib fixé en bas à droite */
.bouton-rdv { position: fixed; right: 5px; bottom: 0; z-index: 40; }
.bouton-rdv p { margin: 0; }
.bouton-rdv a {
  display: block; width: 257px; height: 40px; border-radius: 4px 4px 0 0; background: #0596de; color: #fff; text-align: center;
  font-size: 13px; line-height: 40px; text-decoration: underline;
}
.bouton-rdv img { height: 15px; width: auto; margin: 0 0 3px 4px; vertical-align: middle; }

/* « Retour en haut » */
.remonter {
  position: fixed; right: 35px; bottom: 55px; z-index: 30; width: 70px; color: #333; text-align: center; text-decoration: none;
  font: 700 13px/24px Carlito, Calibri, sans-serif; opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s;
}
.remonter::after { content: ""; display: block; width: 12px; height: 12px; margin: 2px auto 0; border-left: 4px solid #999; border-top: 4px solid #999; transform: rotate(45deg); }
.remonter.visible { opacity: 1; visibility: visible; }
.remonter:hover { color: #000; }

/* Agrandissement des photos */
.visionneuse { position: fixed; inset: 0; z-index: 1000; background: rgba(0, 0, 0, .9); display: flex; align-items: center; justify-content: center; flex-direction: column; }
.visionneuse img { max-width: calc(100vw - 120px); max-height: calc(100vh - 110px); }
.visionneuse .legende-v { color: #eee; }
.visionneuse button { position: absolute; border: 0; background: rgba(255, 255, 255, .15); color: #fff; font-size: 30px; width: 50px; height: 50px; border-radius: 50%; cursor: pointer; }
.visionneuse .fermer { top: 15px; right: 15px; } .visionneuse .prec { left: 15px; } .visionneuse .suiv { right: 15px; }

/* ---------- Tablettes ---------- */
@media (max-width: 1100px) {
  .colonne { width: 88%; }
  .colonnes-3 { --n: 2; }
  .panneau-droite { margin-left: 22%; }
  .panneau-gauche { width: 60%; }
  .decale { margin-top: 40px; }
}
/* ---------- Téléphones ---------- */
@media (max-width: 700px) {
  body { font-size: 18px; line-height: 23px; background-size: 45% auto; }
  .colonne { width: auto; margin: 0; }
  .menu { position: sticky; top: 0; left: 0; z-index: 50; display: flex; flex-direction: column; align-items: flex-end; padding: 8px 12px; background: rgba(255, 255, 255, .95); box-shadow: 0 1px 4px rgba(0, 0, 0, .15); }
  .bouton-menu { padding: 4px 14px; border: 1px solid #333; border-radius: 4px; cursor: pointer; }
  .menu ul { display: none; width: 100%; padding: 6px 0 0; }
  .menu ul.ouvert { display: block; }
  .menu a { display: block; padding: 8px 2px; color: #333; text-shadow: none; border-top: 1px solid #ddd; }
  .section { padding: 30px 15px 35px; margin-bottom: 12px; scroll-margin-top: 58px; }
  .colonnes, .colonnes-3, .colonnes-2 { --n: 1; gap: 25px; }
  .panneau-droite, .panneau-gauche { width: auto; margin: 20px 0 0; }
  .grille-infos { grid-template-columns: 1fr; gap: 25px; }
  #equipe .equipe-fiches { margin-top: 20px; margin-bottom: 30px; }
  .membre { padding: 20px 15px; }
  .decale { margin-top: 0; }
  #presentation { min-height: 420px; }
  .hero-cabinet { left: 0; top: 30px; width: 85%; }
  .hero-logo { right: 10px; top: auto; bottom: 20px; width: 80%; }
  #soins::before, #soins::after, #ateliers::before, #coaching::after { opacity: .5; transform: scale(.6); transform-origin: top left; }
  .bloc-contenu p { text-align: left; }
  .membre .plus p { text-align: left; }
  .bouton-rdv a { width: 230px; }
  .remonter { right: 10px; bottom: 50px; width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, .9); box-shadow: 0 1px 4px rgba(0, 0, 0, .3); font-size: 0; }
  .remonter::after { margin-top: 15px; }
}
