/*
Theme Name: MOEA Piscines
Theme URI: https://www.moeapiscines.fr/
Author: MOEA Piscines
Description: Thème bloc léger pour MOEA Piscines (Gutenberg natif, sans constructeur de pages). Reprend la maquette V5 de la page d'accueil.
Version: 10.0.2
Requires at least: 6.6
Requires PHP: 8.1
License: GPL-2.0-or-later
Text Domain: moea
*/

/* Couleurs, polices et tailles : voir theme.json. Ce fichier ne contient que la mise en forme des compositions MOEA. */
:root{
  --moea-anthracite:var(--wp--preset--color--encre);
  --moea-gris:var(--wp--preset--color--encre-douce);
  --moea-filet:var(--wp--preset--color--filet);
  --moea-turquoise:var(--wp--preset--color--turquoise);
  --moea-bleu:var(--wp--preset--color--bleu-profond);
  --moea-fond:var(--wp--preset--color--fond-accent);
  --moea-mesure:38rem;
  --moea-section:clamp(3.5rem,8vw,6.5rem);
}
body{-webkit-font-smoothing:antialiased}
a{text-decoration-color:var(--moea-turquoise);text-underline-offset:.2em;text-decoration-thickness:1.5px}
:where(h1,h2,h3){text-wrap:balance}
.wp-element-caption,figcaption{font-size:.875rem;color:var(--moea-gris);line-height:1.45;margin-top:.6rem;text-align:left}
.wp-element-caption strong{color:var(--moea-anthracite)}

/* Les paragraphes à largeur de lecture restent alignés à gauche (et non centrés) dans les sections larges */
.moea-chapeau,.moea-conclusion,.moea-encadre,.moea-precision{margin-left:0!important;margin-right:auto!important}

/* ——— Boutons ——— */
.wp-block-button .wp-block-button__link{border-radius:6px}
.wp-block-button.moea-lien-bouton .wp-block-button__link{background:transparent;color:var(--moea-anthracite);padding:.15rem 0;border-radius:0;border-bottom:1.5px solid var(--moea-turquoise)}
.wp-block-button.moea-lien-bouton .wp-block-button__link:hover{background:transparent;color:var(--moea-bleu)}

/* ——— En-tête ——— */
.moea-entete{position:sticky;top:0;z-index:20;background:#fff;border-bottom:1px solid var(--moea-filet);padding-block:.6rem;gap:1.5rem;justify-content:space-between;align-items:center}
.admin-bar .moea-entete{top:32px}
.moea-entete{padding-left:var(--wp--style--root--padding-left,16px);padding-right:var(--wp--style--root--padding-right,16px)}
.moea-entete .moea-logo{margin:0;flex:none}
.moea-entete .moea-nav{margin-left:auto;font-weight:600}
.moea-entete .moea-nav .wp-block-navigation__submenu-container{font-weight:400;min-width:20rem!important;border:1px solid var(--moea-filet)!important;box-shadow:0 12px 30px rgb(0 0 0/.12)}
.moea-entete .moea-nav a:hover{text-decoration:underline}
.moea-tel-entete{margin:0;font-weight:600;white-space:nowrap}
.moea-tel-entete a{color:var(--moea-anthracite);text-decoration:none}
.moea-entete .moea-appeler{display:none}
@media(max-width:62rem){
  .moea-tel-entete{display:none}
  .moea-entete .moea-appeler{display:flex;margin-left:auto}
  .moea-entete .moea-nav{margin-left:0}
  .moea-entete .moea-logo img{width:96px!important}
}

/* ——— Sections ——— */
.moea-section{padding-block:var(--moea-section)}
.moea-bande{padding-block:var(--moea-section)}
.moea-filet-haut{border-top:1px solid var(--moea-filet)}
.moea-chapeau{font-size:1.15rem;color:var(--moea-gris);max-width:var(--moea-mesure)}
.moea-photo-43 img{aspect-ratio:4/3;object-fit:cover;width:100%}

/* ——— Premier écran ——— */
.moea-ouverture{padding-block:clamp(2rem,5vw,4rem) 0}
.moea-ouverture .moea-chapeau{color:var(--moea-anthracite)}
.moea-h1 mark{display:block;background:none;font-family:var(--wp--preset--font-family--texte);font-size:1.1rem;font-weight:600;line-height:1.4;letter-spacing:0;margin-bottom:1rem}
.moea-h1 mark + br{display:none}
.moea-actions{gap:.75rem 1.25rem;align-items:center}
.moea-ouverture + .moea-section{padding-top:clamp(2.5rem,5vw,3.75rem)}

/* ——— Par où commencer ——— */
.moea-situations{border-top:1.5px solid var(--moea-anthracite)}
.moea-situation{border-bottom:1px solid var(--moea-filet);padding-block:1.5rem;margin:0!important;gap:.4rem 2.5rem}
.moea-vecu{font-family:var(--wp--preset--font-family--titre);font-style:italic;font-size:1.3rem;line-height:1.3;margin:0}
.moea-service{margin:0;font-weight:600;font-size:1.1rem}
.moea-service a{text-decoration:none;color:var(--moea-bleu)}
.moea-service a:hover{text-decoration:underline}
.moea-quoi{margin:.2rem 0 0;color:var(--moea-gris)}

/* ——— La coupe ——— */
.moea-titre-bleu{color:var(--moea-bleu)}
.moea-panoramique img{aspect-ratio:21/9;object-fit:cover;object-position:50% 72%;width:100%}
.moea-ligne-eau{position:relative;border-top:3px solid var(--moea-turquoise);margin-block:3.25rem 0!important;height:0}
.moea-ligne-eau+*{margin-block-start:3.25rem!important}
.moea-ligne-eau p{position:absolute;left:0;margin:0!important;font-weight:600;color:var(--moea-bleu);line-height:1.4}
.moea-ligne-eau .moea-dessus{top:-2.1rem}
.moea-ligne-eau .moea-dessous{top:.6rem}
.moea-croquis img{aspect-ratio:4/3;object-fit:contain;background:#fff;border:1px solid var(--moea-filet);width:100%}
.moea-conclusion{max-width:var(--moea-mesure);font-size:1.1rem;margin-top:2.5rem}

/* ——— Méthode ——— */
.moea-etapes{list-style:none;padding:0;counter-reset:etape;display:grid;gap:0}
.moea-etapes li{counter-increment:etape;border-top:1px solid var(--moea-filet);padding:1rem 0 1rem 3.4rem;position:relative;color:var(--moea-gris);font-size:1rem}
.moea-etapes li::before{content:counter(etape);position:absolute;left:0;top:.9rem;font-family:var(--wp--preset--font-family--titre);font-size:1.6rem;line-height:1;color:var(--moea-bleu)}
.moea-etapes strong{font-family:var(--wp--preset--font-family--titre);font-weight:600;font-size:1.25rem;color:var(--moea-anthracite)}
@media(min-width:64rem){
  .moea-etapes{grid-template-columns:repeat(7,minmax(0,1fr));gap:0 1.25rem;border-top:3px solid var(--moea-turquoise)}
  .moea-etapes li{border-top:0;padding:1.1rem 0 0}
  .moea-etapes li::before{position:static;display:block;margin-bottom:.4rem}
}
.moea-encadre{border:1.5px solid var(--moea-anthracite);padding:1.25rem 1.5rem;max-width:44rem;margin-top:2.5rem}

/* ——— Cas pratiques ——— */
.moea-cas{gap:3.5rem;margin-block:0 clamp(3rem,6vw,5rem)!important}
.moea-lieu{font-size:.9rem;color:var(--moea-gris);font-weight:500;margin:0 0 .4rem}
.moea-cas h3{margin-top:0;font-size:clamp(1.5rem,1.2rem + 1.2vw,2rem)}
.moea-rubrique{border-top:1px solid var(--moea-filet);padding-top:.9rem;margin-top:1.6rem}
.moea-rubrique p,.moea-rubrique li{line-height:1.7}
.moea-dt{font-weight:600;color:var(--moea-bleu);margin:0 0 .4rem}
.moea-rubrique ul li::marker{color:var(--moea-turquoise)}
.moea-liens a{margin-right:1.25rem;font-weight:500}
@media(max-width:781px){.moea-cas>.wp-block-column:has(.moea-etiquette){order:2}}
.moea-cas-principal .moea-paire{gap:.6rem;margin-bottom:2rem}
.moea-trois{gap:3rem}
.moea-etiquette{position:relative;margin-bottom:.75rem}
.moea-etiquette figcaption{position:absolute;left:.6rem;top:.6rem;margin:0;background:#fff;color:var(--moea-anthracite);font-size:.875rem;font-weight:600;padding:.2rem .55rem}

/* ——— Présentation ——— */
.moea-portrait img{aspect-ratio:4/5;object-fit:cover;width:100%}
.moea-portrait img:not([src]){display:none}
.moea-valeurs{gap:2rem;margin:0!important;border-top:1px solid var(--moea-filet);padding-top:1rem}
.moea-valeurs + .moea-valeurs{border-top:0;padding-top:0}
.moea-valeur{font-size:.95rem;color:var(--moea-gris)}
.moea-valeur strong{font-family:var(--wp--preset--font-family--titre);font-size:1.1rem;color:var(--moea-anthracite)}

/* ——— Secteurs ——— */
.moea-carte img{width:100%;border:1px solid var(--moea-filet)}
.moea-secteur{border-top:1.5px solid var(--moea-anthracite);padding-top:1.25rem;margin-bottom:2rem}
.moea-secteur h3{margin:0 0 .6rem;font-size:1.5rem}
.moea-communes{font-size:.95rem;color:var(--moea-gris)}
.moea-precision{color:var(--moea-gris);max-width:var(--moea-mesure);margin-top:2rem}

/* ——— Contact ——— */
.moea-profils{gap:3rem}
.moea-profil{border-top:1.5px solid var(--moea-anthracite);padding-top:1rem}
.moea-profil h3{font-size:1.35rem;margin:0 0 .75rem}
.moea-profil ul{padding-left:1.1rem}
.moea-profil li::marker{color:var(--moea-turquoise)}
.moea-contact-bas{margin-top:2.5rem!important;gap:3rem}
.moea-coordonnees{background:#fff;border-top:3px solid var(--moea-turquoise);padding:1.5rem 1.75rem;gap:2rem;margin:0!important}
.moea-coordonnees p{margin:0;font-size:.875rem;color:var(--moea-gris)}
.moea-coordonnees strong{display:block;font-family:var(--wp--preset--font-family--titre);font-weight:400;font-size:1.35rem;color:var(--moea-anthracite);overflow-wrap:anywhere}

/* ——— Pied de page ——— */
.wp-site-blocks>footer,.wp-site-blocks>main{margin-block-start:0}
.moea-main>.wp-block-post-content>:last-child{margin-block-end:0}
.moea-pied{color:#e9eeee;padding-block:3.5rem 2rem}
.moea-pied a{color:#e9eeee}
.moea-pied p{font-size:.95rem}
.moea-mentions{border-top:1px solid rgb(255 255 255/.18);padding-top:1.25rem;font-size:.875rem!important;opacity:.85}

/* ═════ Pages de service (Diagnostic & dépannage…) ═════ */
.moea-sans-haut{padding-top:0}
.moea-fil{font-size:.875rem;color:var(--moea-gris);margin:0}
.moea-fil a{color:var(--moea-gris)}
.moea-tarif-court{font-size:1rem;border-top:1px solid var(--moea-filet);padding-top:1rem;max-width:var(--moea-mesure)}
.moea-maximes{border-left:3px solid var(--moea-turquoise);padding-left:1.5rem}
.moea-maximes p{font-family:var(--wp--preset--font-family--titre);font-style:italic;font-size:clamp(1.3rem,1.1rem + .8vw,1.65rem);line-height:1.3;margin:0 0 .6rem}
.moea-maximes p:last-child{font-style:normal;color:var(--moea-bleu);margin:0}
.moea-familles{border-top:1.5px solid var(--moea-anthracite);column-gap:3rem!important;row-gap:0!important}
@media(max-width:52rem){.moea-familles{grid-template-columns:1fr!important}}
.moea-famille{border-bottom:1px solid var(--moea-filet);padding-block:1.25rem}
.moea-famille h3{font-size:1.3rem;margin:0 0 .35rem}
.moea-famille p{color:var(--moea-gris);margin:0}
@media(min-width:64rem){.moea-etapes.moea-etapes-4{grid-template-columns:repeat(4,minmax(0,1fr));gap:0 2rem}}
.moea-tarif{border-top:3px solid var(--moea-turquoise);background:#fff;padding:1.75rem;box-shadow:0 0 0 1px var(--moea-filet)}
.moea-tarif h2{margin-top:0;font-size:1.9rem}
.moea-tarif ul{padding-left:1.1rem}
.moea-tarif li::marker{color:var(--moea-turquoise)}
.moea-petit{font-size:.9rem;color:var(--moea-gris)}
.moea-suite{border-top:1px solid var(--moea-filet);padding-top:.9rem;margin:0 0 .9rem}
.moea-suite strong{color:var(--moea-bleu)}
.moea-faq{border-top:1.5px solid var(--moea-anthracite)}
.moea-faq .wp-block-details{border-bottom:1px solid var(--moea-filet);padding-block:1rem;margin:0}
.moea-faq summary{cursor:pointer;font-family:var(--wp--preset--font-family--titre);font-size:1.2rem;list-style:none;display:flex;justify-content:space-between;gap:1rem}
.moea-faq summary::-webkit-details-marker{display:none}
.moea-faq summary::after{content:"+";color:var(--moea-turquoise);font-family:var(--wp--preset--font-family--texte);font-weight:600}
.moea-faq details[open] summary::after{content:"–"}
.moea-faq details p{margin-top:.6rem;max-width:var(--moea-mesure)}
.moea-liste-filet{border-top:1.5px solid var(--moea-anthracite);padding-top:1rem;padding-left:1.1rem}
.moea-liste-filet li::marker{color:var(--moea-turquoise)}
.wp-block-heading+.moea-cas{margin-block-start:2rem!important}
.moea-liste-puces{padding-left:1.1rem}.moea-liste-puces li::marker{color:var(--moea-turquoise)}
.moea-trois-col{gap:3rem}
.moea-colonne{border-top:1.5px solid var(--moea-anthracite);padding-top:1rem}
.moea-colonne h3{font-size:1.35rem;margin:0 0 .5rem}
.moea-cas+.moea-cas{margin-top:clamp(3rem,6vw,5rem)!important}

/* Compléments contact, sans modification des compositions existantes. */
.moea-form{max-width:76rem;margin:0 auto 4rem;padding:0 1.25rem}.moea-form label{display:block}.moea-form input,.moea-form textarea{display:block;width:100%;box-sizing:border-box;font:inherit;padding:.7rem;border:1px solid #173B53;border-radius:6px;background:#fff;color:#172128}.moea-form button{background:#173B53;color:#fff;border:0;border-radius:6px;padding:.8rem 1.5rem;font:inherit;cursor:pointer}.moea-form :focus-visible{outline:3px solid #173B53;outline-offset:3px}.moea-h1 small{font-family:var(--wp--preset--font-family--source-sans-3),sans-serif;font-size:1.1rem;color:#173B53}

.moea-entete .moea-appeler{display:block!important}.moea-home{max-width:76rem;margin:auto;padding:0 24px;color:#172128}.moea-home section{margin:56px 0}.moea-home-hero{display:grid;grid-template-columns:1fr 1fr;gap:40px;align-items:center}.moea-home h1{font-size:clamp(44px,5vw,70px);line-height:1.07;font-weight:400;margin:0 0 24px}.moea-home h1 small{display:block;font-family:'Source Sans 3',sans-serif;font-size:18px;line-height:1.5;color:#173B53;margin-bottom:20px}.moea-home figure{margin:0}.moea-home img{width:100%;height:auto;display:block;border-radius:6px}.moea-home-hero img{aspect-ratio:4/3;object-fit:cover}.moea-home figcaption{font-size:14px;line-height:1.5;margin-top:10px}.moea-home-actions{display:flex;justify-content:center;gap:20px;flex-wrap:wrap;margin:24px 0 48px}.moea-home-actions a{white-space:nowrap;border-radius:6px}.moea-home-cards{display:grid;grid-template-columns:repeat(5,1fr);gap:16px}.moea-home-cards>a{border:1px solid #d9e0df;border-radius:6px;padding:20px;text-decoration:none;color:#172128}.moea-home h3{font-size:25px;line-height:1.2}.moea-home-cards p{font-size:17px}.moea-home-care{background:#FAF5E3;padding:32px;border-radius:6px}.moea-home-steps,.moea-home-projects{display:grid;grid-template-columns:repeat(3,1fr);gap:24px}.moea-home-projects img{aspect-ratio:4/3;object-fit:cover}.moea-home-sketch{max-width:420px;margin:32px auto!important}.moea-home a:focus-visible{outline:3px solid #173B53;outline-offset:5px}@media(max-width:1000px){.moea-home-cards{grid-template-columns:repeat(2,1fr)}}@media(max-width:700px){.moea-home{padding:0 20px}.moea-home-hero,.moea-home-steps,.moea-home-projects,.moea-home-cards{grid-template-columns:1fr}.moea-home section{margin:32px 0}.moea-home-hero{gap:24px}.moea-home h1{font-size:44px}.moea-home-care{padding:24px}.moea-home-actions{gap:12px}.moea-home-actions a{font-size:16px}}

.moea-home-actions a{font-size:20px;padding:18px 32px;min-width:230px;text-align:center}.moea-etapes{gap:16px}.moea-section{margin-block:32px!important;padding-block:24px!important}.moea-carte img{max-height:420px;width:100%;object-fit:contain}@media(max-width:700px){.moea-home-actions a{min-width:0;width:100%}.moea-etapes{display:grid;grid-template-columns:1fr}.moea-home-hero{align-items:center}}
