/*
Theme Name: So Feel Thérapie
Theme URI: https://www.sofeeltherapie.fr
Author: Sophie Nascimento
Description: Thème vitrine pour So Feel Thérapie — sexologie humaniste à Chelles (77). Thème « à blocs » : tout le contenu se modifie dans l'éditeur WordPress. Polices hébergées localement (aucun appel à Google), bandeau cookies et formulaire de contact intégrés.
Requires at least: 6.6
Tested up to: 6.8
Requires PHP: 7.4
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: sofeel
*/

/* ---------- Bases ---------- */
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
body { -webkit-font-smoothing: antialiased; }
img { height: auto; }

.screen-reader-text:focus { clip: auto !important; clip-path: none; height: auto; width: auto; position: fixed; top: .5rem; left: .5rem; z-index: 100000; background: #fff; padding: .75rem 1rem; border-radius: 8px; }

/* ---------- En-tête ---------- */
.sofeel-header { position: sticky; top: 0; z-index: 50; background: rgba(251, 248, 245, .94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--wp--preset--color--beige-rose); }
.admin-bar .sofeel-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .sofeel-header { top: 0; position: relative; } }
.sofeel-header .wp-block-navigation a:hover { color: var(--wp--preset--color--terracotta); }
.sofeel-header .wp-block-navigation .current-menu-item > a { color: var(--wp--preset--color--terracotta); }
.sofeel-logo-line { display: flex; align-items: center; gap: .6rem; }
.sofeel-logo-line img { width: 34px; height: 34px; }
.sofeel-header .wp-block-button__link { white-space: nowrap; padding: .7rem 1.4rem; }
.sofeel-header .wp-block-navigation { flex-wrap: nowrap; }
.sofeel-header .wp-block-navigation__container { flex-wrap: nowrap; white-space: nowrap; }
@media (max-width: 1180px) { .sofeel-tagline { display: none; } }
.sofeel-tagline { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--wp--preset--color--sauge); margin: 0; }

/* ---------- Sections ---------- */
.sofeel-eyebrow { font-size: .82rem !important; letter-spacing: .18em; text-transform: uppercase; color: var(--wp--preset--color--sauge); font-weight: 700; margin-bottom: .25rem !important; }
.sofeel-hero { position: relative; overflow: hidden; }
.sofeel-hero::after { content: ""; position: absolute; right: -6rem; top: -4rem; width: 26rem; height: 26rem; background: url("assets/images/ginkgo.svg") no-repeat center / contain; opacity: .09; pointer-events: none; transform: rotate(-18deg); }
.sofeel-hero > * { position: relative; z-index: 1; }

.sofeel-card { background: var(--wp--preset--color--blanc); border-radius: 18px; box-shadow: var(--wp--preset--shadow--douce); height: 100%; }
.sofeel-card h3, .sofeel-card h4 { margin-top: 0; }

/* Les 7 langages : grille */
.sofeel-langages { gap: 1rem !important; }
.sofeel-langage { background: var(--wp--preset--color--blanc); border: 1px solid var(--wp--preset--color--beige-rose); border-radius: 16px; }
.sofeel-langage h4 { margin: 0 0 .25rem; font-family: var(--wp--preset--font-family--titres); font-size: 1.45rem; font-weight: 600; color: var(--wp--preset--color--terracotta); }
.sofeel-langage p { margin: 0; font-size: .97rem; }

/* Encadré rappel médical */
.sofeel-note { border-left: 3px solid var(--wp--preset--color--sauge); background: var(--wp--preset--color--sauge-clair); border-radius: 0 14px 14px 0; }
.sofeel-note p { margin: 0; }

/* Tarif */
.sofeel-prix { font-family: var(--wp--preset--font-family--titres); font-size: 3.2rem; line-height: 1; color: var(--wp--preset--color--terracotta); margin: 0 !important; }

/* Liste étapes séance */
.sofeel-etapes { list-style: none; padding: 0; counter-reset: etape; }
.sofeel-etapes li { counter-increment: etape; position: relative; padding: 0 0 1.1rem 3.2rem; }
.sofeel-etapes li::before { content: counter(etape); position: absolute; left: 0; top: .05rem; width: 2.2rem; height: 2.2rem; border-radius: 50%; background: var(--wp--preset--color--beige-rose); color: var(--wp--preset--color--terracotta); font-family: var(--wp--preset--font-family--titres); font-size: 1.25rem; font-weight: 600; display: grid; place-items: center; }

/* Images arrondies / placeholders */
.sofeel-arche img { border-radius: 999px 999px 18px 18px !important; aspect-ratio: 4 / 5; object-fit: cover; }
.sofeel-rond img { border-radius: 50% !important; aspect-ratio: 1; object-fit: cover; }

/* ---------- Formulaire ---------- */
.sofeel-form { display: grid; gap: 1.1rem; }
.sofeel-form label { display: block; font-weight: 700; font-size: .95rem; margin-bottom: .35rem; }
.sofeel-form input[type=text], .sofeel-form input[type=email], .sofeel-form select, .sofeel-form textarea {
	width: 100%; box-sizing: border-box; padding: .8rem 1rem; border: 1px solid #d9cdc6; border-radius: 12px; background: #fff; font: inherit; color: inherit;
}
.sofeel-form input:focus, .sofeel-form select:focus, .sofeel-form textarea:focus { outline: 2px solid var(--wp--preset--color--sauge); outline-offset: 1px; border-color: transparent; }
.sofeel-form .sofeel-aide { font-size: .88rem; color: #6b625d; margin: .35rem 0 0; }
.sofeel-form .sofeel-consent { display: flex; gap: .6rem; align-items: flex-start; font-weight: 400; }
.sofeel-form .sofeel-consent input { margin-top: .4rem; }
.sofeel-form .sofeel-hp { position: absolute !important; left: -9999px !important; }
.sofeel-form button { justify-self: start; border: 0; cursor: pointer; background: var(--wp--preset--color--terracotta); color: #fff; border-radius: 999px; padding: .85rem 1.9rem; font: 700 1rem var(--wp--preset--font-family--texte); }
.sofeel-form button:hover { background: var(--wp--preset--color--sauge); }
.sofeel-alerte { padding: 1rem 1.25rem; border-radius: 12px; margin-bottom: 1rem; }
.sofeel-alerte.ok { background: var(--wp--preset--color--sauge-clair); }
.sofeel-alerte.erreur { background: #f6dcd6; }

/* ---------- Contenus externes (Calendly, carte) bloqués avant consentement ---------- */
.sofeel-externe { border: 1px dashed var(--wp--preset--color--terracotta-clair); border-radius: 16px; padding: 1.5rem; text-align: center; background: var(--wp--preset--color--blanc); }
.sofeel-externe iframe { width: 100%; border: 0; border-radius: 12px; }
.sofeel-externe.charge { border: 0; padding: 0; background: none; }
.sofeel-externe button { border: 1px solid var(--wp--preset--color--terracotta); background: transparent; color: var(--wp--preset--color--terracotta); border-radius: 999px; padding: .6rem 1.3rem; font: 700 .95rem var(--wp--preset--font-family--texte); cursor: pointer; margin: .4rem; }
.sofeel-externe .wp-element-button, .sofeel-externe a.sofeel-btn { display: inline-block; background: var(--wp--preset--color--terracotta); color: #fff; text-decoration: none; border-radius: 999px; padding: .75rem 1.6rem; font-weight: 700; margin: .4rem; }

/* ---------- Bandeau cookies ---------- */
#sofeel-cookies { position: fixed; z-index: 9999; left: 1rem; right: 1rem; bottom: 1rem; max-width: 640px; margin: 0 auto; background: #fff; border-radius: 18px; box-shadow: 0 12px 45px rgba(47,42,39,.18); padding: 1.25rem 1.4rem; font-size: .95rem; }
#sofeel-cookies[hidden] { display: none; }
#sofeel-cookies p { margin: 0 0 .9rem; }
#sofeel-cookies .boutons { display: flex; flex-wrap: wrap; gap: .6rem; }
#sofeel-cookies button { flex: 1 1 auto; border-radius: 999px; padding: .65rem 1.2rem; font: 700 .95rem var(--wp--preset--font-family--texte); cursor: pointer; border: 1px solid var(--wp--preset--color--terracotta); background: transparent; color: var(--wp--preset--color--terracotta); }
#sofeel-cookies button.accepter { background: var(--wp--preset--color--terracotta); color: #fff; }

/* ---------- Pied de page ---------- */
.sofeel-footer a { color: inherit; text-decoration: none; }
.sofeel-footer a:hover { color: var(--wp--preset--color--terracotta-clair); text-decoration: underline; }
.sofeel-footer .sofeel-cookies-lien { background: none; border: 0; padding: 0; color: inherit; font: inherit; cursor: pointer; text-decoration: none; }
.sofeel-footer .sofeel-cookies-lien:hover { text-decoration: underline; }

/* Bouton RDV flottant sur mobile */
.sofeel-rdv-mobile { display: none; }
@media (max-width: 700px) {
	.sofeel-rdv-mobile { display: block; position: fixed; right: 1rem; bottom: 1rem; z-index: 40; background: var(--wp--preset--color--terracotta); color: #fff !important; text-decoration: none; border-radius: 999px; padding: .8rem 1.3rem; font-weight: 700; box-shadow: 0 8px 25px rgba(166,94,78,.35); }
	body.sofeel-cookies-ouvert .sofeel-rdv-mobile { display: none; }
	.sofeel-tagline { display: none; }
}

/* ---------- Espacements portés par des classes (modifiables dans l'éditeur via « Classes CSS ») ---------- */
.sofeel-section, .sofeel-section-serre { padding-left: var(--wp--style--root--padding-left, clamp(1rem, 4vw, 2rem)) !important; padding-right: var(--wp--style--root--padding-right, clamp(1rem, 4vw, 2rem)) !important; }
.sofeel-section { padding-top: var(--wp--preset--spacing--60) !important; padding-bottom: var(--wp--preset--spacing--60) !important; }
.sofeel-section-serre { padding-top: var(--wp--preset--spacing--50) !important; padding-bottom: var(--wp--preset--spacing--50) !important; }
.sofeel-card { padding: var(--wp--preset--spacing--40); }
.sofeel-langage { padding: 1.25rem 1.4rem; }
.sofeel-note { padding: 1.1rem 1.4rem; }
.sofeel-header > .wp-block-group { padding-top: .9rem; padding-bottom: .9rem; }
.sofeel-footer { padding-top: var(--wp--preset--spacing--50); padding-bottom: 5rem; }
.sofeel-centre { text-align: center; }
.sofeel-intro { max-width: 46rem; margin-left: auto !important; margin-right: auto !important; }
.sofeel-points p { margin: 0; }
.sofeel-points strong { display: block; font-family: var(--wp--preset--font-family--titres); font-size: 1.35rem; font-weight: 600; color: var(--wp--preset--color--terracotta); }
.sofeel-legal h2 { font-size: var(--wp--preset--font-size--grand); margin-top: 2.5rem; }
.wp-block-buttons { gap: .8rem; }
.wp-block-button.is-style-outline > .wp-block-button__link { border: 2px solid var(--wp--preset--color--sauge); color: var(--wp--preset--color--sauge); background: transparent; }
.wp-block-button.is-style-outline > .wp-block-button__link:hover { background: var(--wp--preset--color--sauge); color: #fff; }
@media (max-width: 700px) { .sofeel-rdv-entete { display: none !important; } }
@media (max-width: 700px) { .sofeel-centre.is-layout-grid { grid-template-columns: 1fr !important; } }
