/*
Theme Name: Électron Libre (enfant OceanWP)
Description: Thème enfant OceanWP pour le réseau Électron Libre. Poppins hébergée en local et palette commune.
Template: oceanwp
Author: BX création
Version: 1.0.46
Text Domain: oceanwp-child-electron-libre
*/

/* Police locale : 3 graisses seulement (400, 600, 800) */
@font-face{font-family:"Poppins";src:url("fonts/poppins-400.woff2") format("woff2");font-weight:400;font-style:normal;font-display:swap}
@font-face{font-family:"Poppins";src:url("fonts/poppins-600.woff2") format("woff2");font-weight:600;font-style:normal;font-display:swap}
@font-face{font-family:"Poppins";src:url("fonts/poppins-800.woff2") format("woff2");font-weight:800;font-style:normal;font-display:swap}

/* Palette commune aux 12 sites du réseau */
:root{
  --bleu-nuit:#101C3A;
  --ivoire:#FBF8F0;
  --violet:#7620A5;
  --magenta:#D51A7A;
  --turquoise:#008A9B;
  --orange:#F28C00;
  --blanc:#FFFFFF;
  --filet:#DFE1E7;
  --el-font:"Poppins",Arial,sans-serif;
}

/* Le CSS du Customizer OceanWP est imprimé APRÈS ce fichier :
   le préfixe body.oceanwp-theme donne la priorité à la charte. */

/* Couleurs OceanWP alignées sur la palette */
body.oceanwp-theme{
  --owp-primary-color:var(--violet);
  --owp-primary-color-hover:var(--bleu-nuit);
  --owp-link-color:var(--violet);
  --owp-link-color-hover:var(--bleu-nuit);
  --owp-button-bg-color:var(--violet);
  --owp-button-bg-color-hover:var(--bleu-nuit);
  --owp-button-text-color:#fff;
  --owp-button-text-color-hover:#fff;
  --owp-input-text-color:var(--bleu-nuit);
  --owp-widget-link-color:var(--violet);
  --owp-widget-link-color-hover:var(--bleu-nuit);
  --owp-focus-outline-color:var(--violet);
  font-family:var(--el-font);font-weight:400;font-size:16px;line-height:1.65;
  color:var(--bleu-nuit);background-color:var(--ivoire);
}
body.oceanwp-theme a{color:var(--violet)}
body.oceanwp-theme a:hover{color:var(--bleu-nuit)}
/* Liens dans les textes : soulignés, pour être repérables autrement que par la couleur (accessibilité). */
body.oceanwp-theme :is(.entry-content,.elementor-widget-text-editor,.el-text) a:not(.elementor-button){text-decoration:underline;text-underline-offset:3px}
body.oceanwp-theme :is(button,input,select,textarea),
body.oceanwp-theme #site-navigation-wrap .dropdown-menu>li>a,
body.oceanwp-theme .dropdown-menu ul li a.menu-link,
body.oceanwp-theme #mobile-dropdown ul li a,
body.oceanwp-theme #site-logo a.site-logo-text{font-family:var(--el-font)}
body.oceanwp-theme #site-logo a.site-logo-text,
body.oceanwp-theme #site-navigation-wrap .dropdown-menu>li>a{color:var(--bleu-nuit);font-weight:600}

/* Titres */
body.oceanwp-theme :is(h1,h2,h3,h4,h5,h6,.theme-heading,.widget-title,.entry-title,.page-header-title){font-family:var(--el-font);font-weight:800;color:var(--bleu-nuit)}
body.oceanwp-theme :is(h1,.page-header .page-header-title){font-size:clamp(30px,3.6vw,44px);line-height:1.15;letter-spacing:0}
body.oceanwp-theme h2{font-size:clamp(24px,2.6vw,32px);line-height:1.2;letter-spacing:0}
body.oceanwp-theme h3{font-size:clamp(19px,1.8vw,22px);line-height:1.3;letter-spacing:0}
body.oceanwp-theme h4{font-size:18px;line-height:1.3}
body.oceanwp-theme :is(strong,b){font-weight:600}

/* ===== En-tête (style "Medium" d'OceanWP) ===== */

/* Logo calé à gauche, sur la même ligne verticale que le menu */
#site-header.medium-header .top-header-inner{position:relative}
#site-header.medium-header .top-col.logo-col{text-align:left;flex:0 0 auto}
#site-header.medium-header :is(.top-col,#site-logo,#site-logo-inner){position:static}

/* Boutons Contact / Adhérer en haut à droite */
.el-header-cta{position:absolute;right:0;top:50%;transform:translateY(-50%);display:flex;gap:12px}
body.oceanwp-theme .el-header-cta a{display:inline-flex;align-items:center;min-height:48px;padding:10px 22px;border:2px solid var(--violet);border-radius:12px;font-family:var(--el-font);font-size:15px;font-weight:600;line-height:1.3;text-decoration:none;color:var(--violet);background:var(--blanc);transition:background-color .15s,color .15s,border-color .15s}
body.oceanwp-theme .el-header-cta a.el-header-cta-plein{background:var(--violet);color:#fff}
body.oceanwp-theme .el-header-cta a:hover{background:var(--bleu-nuit);border-color:var(--bleu-nuit);color:#fff}

/* Barre de menu : blanche, filet au-dessus, libellés en minuscules comme sur la maquette */
#site-header.medium-header #site-navigation-wrap{background-color:var(--blanc)}
#site-header.medium-header #site-navigation-wrap>.container{border-top:1px solid var(--filet)}
body.oceanwp-theme #site-header.medium-header #site-navigation-wrap .dropdown-menu>li>a{font-size:15px;font-weight:600;letter-spacing:0;text-transform:none;color:var(--bleu-nuit)}
body.oceanwp-theme #site-header.medium-header #site-navigation-wrap .dropdown-menu>li>a:hover{color:var(--violet)}

/* Rubrique active : trait violet en haut, de la largeur du libellé */
body.oceanwp-theme #site-header.medium-header #site-navigation-wrap .dropdown-menu>li:is(.current-menu-item,.current-menu-ancestor,.current_page_item,.current-menu-parent)>a{color:var(--violet);background:linear-gradient(var(--violet),var(--violet)) top left/100% 3px no-repeat content-box}

/* Tablette et mobile : les boutons passent sous le logo */
@media (max-width:959px){
  .el-header-cta{position:static;transform:none;margin-top:14px;flex-wrap:wrap}
  body.oceanwp-theme .el-header-cta a{min-height:44px;padding:8px 16px;font-size:14px}
}

/* Bouton Menu mobile à la suite de Contact et Adhérer (même style que Contact).
   L'original d'OceanWP, dans la barre sous le logo, est masqué avec cette barre sur mobile. */
@media (max-width:959px){
  body.oceanwp-theme #site-header.medium-header .bottom-header-wrap{display:none}
  body.oceanwp-theme .el-header-cta .oceanwp-mobile-menu-icon{display:flex;float:none;margin:0;line-height:1.3}
  body.oceanwp-theme .el-header-cta .oceanwp-mobile-menu-icon button.mobile-menu{display:inline-flex;align-items:center;gap:8px;min-height:44px;margin:0;padding:8px 16px;border:2px solid var(--violet);border-radius:12px;background:var(--blanc);color:var(--violet);font-family:var(--el-font);font-size:14px;font-weight:600;line-height:1.3;cursor:pointer;transition:background-color .15s,border-color .15s,color .15s}
  body.oceanwp-theme .el-header-cta .oceanwp-mobile-menu-icon button.mobile-menu:hover{background:var(--bleu-nuit);border-color:var(--bleu-nuit);color:#fff}
  body.oceanwp-theme .el-header-cta .oceanwp-mobile-menu-icon button.mobile-menu i{font-size:15px;line-height:1}
  body.oceanwp-theme .el-header-cta .oceanwp-mobile-menu-icon .oceanwp-text,body.oceanwp-theme .el-header-cta .oceanwp-mobile-menu-icon .oceanwp-close-text{padding-left:0}
}

/* Menu : on annule le décalage d'OceanWP */
body.oceanwp-theme #site-header.medium-header #site-navigation-wrap.left-menu #site-navigation {
  left: 0;
}

/* Le premier libellé démarre pile au bord, aligné sur le logo */
body.oceanwp-theme #site-header.medium-header #site-navigation-wrap.left-menu .dropdown-menu > li:first-child > a {
  padding-left: 0;
}

/* ===== Composants de la charte, à poser dans Elementor (Avancé > Classes CSS) ===== */
/* Repris du thème source « Électron Libre 2026 », adaptés à la charte : pas d'espacement
   de lettres négatif, H1 limité, couleurs uniquement par variables. */

/* Section pleine largeur et contenu centré à 1200 px */
.elementor .e-con.el-section{--padding-top:clamp(40px,6vw,76px);--padding-bottom:clamp(40px,6vw,76px);--padding-left:clamp(16px,5vw,72px);--padding-right:clamp(16px,5vw,72px)}
.elementor .e-con.el-wrap{width:100%;max-width:1200px;margin-inline:auto;--padding-top:0;--padding-bottom:0;--padding-left:0;--padding-right:0;--gap:24px}
.elementor .e-con.el-etroit{max-width:760px}
.elementor .e-con.el-fond-blanc{background-color:var(--blanc)}

/* Surtitre : majuscules espacées, violet */
body.oceanwp-theme .el-eyebrow,body.oceanwp-theme .el-eyebrow p{font-family:var(--el-font);font-size:12px;font-weight:600;line-height:1.5;letter-spacing:.1em;text-transform:uppercase;color:var(--violet);margin:0}

/* Titres posés sur des widgets Titre */
body.oceanwp-theme .el-h1 .elementor-heading-title{font-family:var(--el-font);font-weight:800;font-size:clamp(30px,3.6vw,44px);line-height:1.15;color:var(--bleu-nuit)}
body.oceanwp-theme .el-h2 .elementor-heading-title{font-family:var(--el-font);font-weight:800;font-size:clamp(24px,2.6vw,32px);line-height:1.2;color:var(--bleu-nuit)}
body.oceanwp-theme .el-h3 .elementor-heading-title{font-family:var(--el-font);font-weight:800;font-size:clamp(19px,1.8vw,22px);line-height:1.3;color:var(--bleu-nuit)}

/* Texte courant, ligne limitée pour le confort de lecture */
body.oceanwp-theme .el-text{font-size:16px;line-height:1.65;color:var(--bleu-nuit);max-width:68ch}
body.oceanwp-theme .el-text p:last-child{margin-bottom:0}
body.oceanwp-theme .el-text a{text-decoration:underline}
body.oceanwp-theme .el-petit{font-size:14px;line-height:1.6}

/* Rangée de boutons */
.elementor .e-con.el-actions{flex-direction:row;flex-wrap:wrap;align-items:center;--gap:12px;--padding-top:0;--padding-bottom:0;--padding-left:0;--padding-right:0}
.elementor .el-actions>.elementor-widget{width:auto;max-width:100%}

/* Boutons : plein (el-button) et contour (el-button el-button-secondary) */
body.oceanwp-theme .el-button .elementor-button{display:inline-flex;align-items:center;justify-content:center;min-height:48px;padding:12px 22px;border:2px solid var(--violet);border-radius:12px;background:var(--violet);color:var(--blanc);font-family:var(--el-font);font-size:15px;font-weight:600;line-height:1.3;text-decoration:none;transition:background-color .15s,border-color .15s,color .15s}
body.oceanwp-theme .el-button-secondary .elementor-button{background:var(--blanc);color:var(--violet)}
body.oceanwp-theme .el-button .elementor-button:hover,body.oceanwp-theme .el-button .elementor-button:focus-visible{background:var(--bleu-nuit);border-color:var(--bleu-nuit);color:var(--blanc)}
/* Lien d'action : flèche après le libellé */
body.oceanwp-theme .el-fleche .elementor-button-text::after{content:" →"}

/* Carte : fond blanc, coins arrondis, liseré violet en haut */
.elementor .e-con.el-card{background:var(--blanc);border:1px solid var(--filet);border-top:4px solid var(--violet);border-radius:16px;--padding-top:28px;--padding-bottom:28px;--padding-left:28px;--padding-right:28px;--gap:16px}

/* Bandeau sombre d'appel à l'action */
.elementor .e-con.el-cta{background-color:var(--bleu-nuit);color:var(--ivoire)}
body.oceanwp-theme .el-cta :is(.elementor-heading-title,.el-text,.el-text p){color:var(--ivoire)}
body.oceanwp-theme .el-cta .el-text a{color:var(--ivoire)}
body.oceanwp-theme .el-cta .el-button .elementor-button{background:var(--blanc);border-color:var(--blanc);color:var(--violet)}
body.oceanwp-theme .el-cta .el-button .elementor-button:hover{background:var(--ivoire);border-color:var(--ivoire);color:var(--bleu-nuit)}
body.oceanwp-theme .el-cta :is(a,button):focus-visible{outline-color:var(--ivoire)}

@media (max-width:767px){
  body.oceanwp-theme .el-button .elementor-button{width:100%}
  .elementor .el-actions>.elementor-widget{width:100%}
}

/* ===== Formulaires Contact Form 7 ===== */
/* Champs : fond ivoire, bordure filet de la charte (choix validé par Julian le 8 octobre 2026). */
body.oceanwp-theme .wpcf7{max-width:760px}
body.oceanwp-theme .wpcf7 form>p,body.oceanwp-theme .wpcf7 fieldset>p{margin:0 0 18px}
body.oceanwp-theme .wpcf7 label{display:block;font-weight:600;font-size:15px;line-height:1.3;color:var(--bleu-nuit)}
body.oceanwp-theme .wpcf7 :is(input[type=text],input[type=email],input[type=tel],input[type=date],input[type=number],select,textarea){display:block;width:100%;max-width:100%;min-height:48px;margin-top:6px;padding:10px 14px;border:1px solid var(--filet);border-radius:8px;background:var(--ivoire);color:var(--bleu-nuit);font-family:var(--el-font);font-size:16px;font-weight:400;line-height:1.4}
body.oceanwp-theme .wpcf7 textarea{min-height:96px}
body.oceanwp-theme .wpcf7 :is(input,select,textarea):focus-visible{outline:3px solid var(--violet);outline-offset:2px;border-color:var(--violet)}

/* Blocs numérotés (01, 02), comme sur le bulletin papier */
body.oceanwp-theme .wpcf7 fieldset{border:0;margin:0 0 28px;padding:0;min-width:0}
body.oceanwp-theme .wpcf7 fieldset legend{border:0;display:flex;align-items:center;gap:12px;margin:0 0 16px;padding:0;font-size:clamp(19px,1.8vw,22px);font-weight:800;line-height:1.3;color:var(--violet)}
body.oceanwp-theme .wpcf7 .el-form-num{display:inline-flex;align-items:center;justify-content:center;min-width:44px;min-height:36px;padding:0 10px;border-radius:6px;background:var(--violet);color:var(--blanc);font-size:15px;font-weight:600}
/* Groupes de choix (situation, mode de paiement) : légende au format d'un libellé */
body.oceanwp-theme .wpcf7 fieldset.el-form-choix fieldset,body.oceanwp-theme .wpcf7 .el-form-bloc .el-form-choix{margin-bottom:18px}
body.oceanwp-theme .wpcf7 .el-form-bloc .el-form-choix legend{font-size:15px;font-weight:600;color:var(--bleu-nuit);margin-bottom:6px}
body.oceanwp-theme .wpcf7 .wpcf7-list-item{display:inline-flex;margin:0 24px 0 0}
body.oceanwp-theme .wpcf7 .wpcf7-list-item label{display:inline-flex;align-items:center;gap:10px;min-height:44px;font-weight:400;font-size:16px;cursor:pointer}
body.oceanwp-theme .wpcf7 :is(input[type=radio],input[type=checkbox]){width:20px;height:20px;margin:0;flex:0 0 auto;accent-color:var(--violet)}

/* Note, texte RGPD et case d'acceptation */
body.oceanwp-theme .wpcf7 .el-form-note{font-size:14px;margin:0 0 24px}
body.oceanwp-theme .wpcf7 .el-form-rgpd{margin:0 0 20px;padding:20px 24px;border-radius:0 12px 12px 0;background:var(--ivoire);font-size:12px;line-height:1.55;text-align:justify}
body.oceanwp-theme .wpcf7 .el-form-rgpd p{margin:0 0 10px}
body.oceanwp-theme .wpcf7 .el-form-rgpd p:last-child{margin:0}
body.oceanwp-theme .wpcf7 .wpcf7-acceptance .wpcf7-list-item{display:block;margin:0}
body.oceanwp-theme .wpcf7 .wpcf7-acceptance label{align-items:flex-start;font-size:14px;line-height:1.6}
body.oceanwp-theme .wpcf7 .wpcf7-acceptance input{margin-top:2px}

/* Bouton d'envoi : bouton plein de la charte */
body.oceanwp-theme .wpcf7 .wpcf7-submit{min-height:48px;margin-top:8px;padding:12px 24px;border:2px solid var(--violet);border-radius:12px;background:var(--violet);color:var(--blanc);font-family:var(--el-font);font-size:15px;font-weight:600;line-height:1.3;letter-spacing:0;text-transform:none;cursor:pointer}
body.oceanwp-theme .wpcf7 .wpcf7-submit:hover,body.oceanwp-theme .wpcf7 .wpcf7-submit:focus-visible{background:var(--bleu-nuit);border-color:var(--bleu-nuit)}

/* Erreurs et messages : jamais par la couleur seule (texte explicite + bordure) */
body.oceanwp-theme .wpcf7 .wpcf7-not-valid{border-color:var(--magenta);border-width:2px}
body.oceanwp-theme .wpcf7 .wpcf7-not-valid-tip{margin-top:6px;font-size:14px;font-weight:600;color:var(--magenta)}
body.oceanwp-theme .wpcf7 form .wpcf7-response-output{margin:20px 0 0;padding:14px 18px;border:2px solid var(--violet);border-radius:12px;background:var(--blanc);font-size:15px}
body.oceanwp-theme .wpcf7 form.invalid .wpcf7-response-output,body.oceanwp-theme .wpcf7 form.failed .wpcf7-response-output{border-color:var(--magenta)}

/* ===== Deux colonnes (classe el-colonnes sur un conteneur Elementor) ===== */
/* Préfixe long : doit l'emporter sur le « --display:flex » qu'Elementor écrit pour chaque conteneur. */
body.oceanwp-theme .elementor .e-con.el-colonnes{--display:grid;grid-template-columns:minmax(0,1.5fr) minmax(0,1fr);gap:clamp(32px,5vw,64px);align-items:start}
@media (max-width:959px){
  body.oceanwp-theme .elementor .e-con.el-colonnes{grid-template-columns:minmax(0,1fr)}
}

/* ===== Liste des sections (code court [el_sections_liste]) ===== */
body.oceanwp-theme .el-sections-liste{list-style:none;margin:0;padding:0;border-top:1px solid var(--filet)}
body.oceanwp-theme .el-sections-liste li{margin:0;border-bottom:1px solid var(--filet)}
body.oceanwp-theme .el-section-lien{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;column-gap:12px;min-height:44px;padding:10px 4px;text-decoration:none;color:var(--bleu-nuit)}
body.oceanwp-theme .el-section-nom{font-weight:600;font-size:16px;line-height:1.3}
body.oceanwp-theme .el-section-lieu{grid-column:1;font-size:14px;line-height:1.5}
body.oceanwp-theme .el-section-fleche{grid-column:2;grid-row:1 / span 2;color:var(--violet);font-weight:600}
body.oceanwp-theme a.el-section-lien:hover .el-section-nom{color:var(--violet)}
body.oceanwp-theme a.el-section-lien:hover{color:var(--bleu-nuit)}

/* ===== Carte des sections (code court [el_sections_carte]) ===== */
body.oceanwp-theme .el-carte{position:relative;width:100%;height:clamp(380px,60vh,560px);border:1px solid var(--filet);border-radius:16px;overflow:hidden;background:var(--blanc)}
body.oceanwp-theme .el-carte-attente,body.oceanwp-theme .el-carte-erreur{margin:0;padding:24px;font-size:14px}
/* Points : 22 px visibles, zone cliquable agrandie à 44 px.
   Ne jamais leur donner de « position » : Mapbox les place en position absolue. */
body.oceanwp-theme .el-carte-point{width:22px;height:22px;padding:0;border:3px solid var(--blanc);border-radius:50%;background:var(--violet);box-shadow:0 0 0 1px var(--bleu-nuit);cursor:pointer}
body.oceanwp-theme .el-carte-point::after{content:"";position:absolute;inset:-11px}
body.oceanwp-theme .el-carte-point:hover{background:var(--bleu-nuit)}
body.oceanwp-theme .el-carte-point:focus-visible{outline:3px solid var(--violet);outline-offset:3px}
/* Bulles */
body.oceanwp-theme .el-carte .mapboxgl-popup-content{padding:14px 34px 14px 18px;border-radius:12px;font-family:var(--el-font);color:var(--bleu-nuit);box-shadow:0 6px 18px color-mix(in srgb,var(--bleu-nuit) 18%,transparent)}
body.oceanwp-theme .el-carte .mapboxgl-popup-close-button{width:32px;height:32px;font-size:20px;color:var(--bleu-nuit)}
body.oceanwp-theme .el-carte-bulle p{margin:0}
body.oceanwp-theme .el-carte-bulle-nom{font-weight:600;font-size:16px}
body.oceanwp-theme .el-carte-bulle p.el-carte-bulle-lieu{font-size:14px;margin-bottom:8px}
body.oceanwp-theme .el-carte-bulle a{font-size:14px;font-weight:600;color:var(--violet)}

/* ===== Coordonnées d'une section (code court [el_section_coordonnees]) ===== */
body.oceanwp-theme .el-coordonnees{font-size:16px;line-height:1.6;color:var(--bleu-nuit)}
body.oceanwp-theme .el-coordonnees-bureau{margin:0 0 8px;font-weight:600;font-size:18px;line-height:1.3}
/* Pas d'italique (le navigateur en met par défaut sur <address>) */
body.oceanwp-theme .el-coordonnees address{margin:0 0 12px;font-style:normal}
body.oceanwp-theme .el-coordonnees-liste{margin:0;padding:0;list-style:none}
body.oceanwp-theme .el-coordonnees-liste li{display:flex;flex-wrap:wrap;align-items:center;column-gap:8px;min-height:44px;margin:0;border-top:1px solid var(--filet)}
body.oceanwp-theme .el-coordonnees-libelle{font-size:14px;min-width:9em}
body.oceanwp-theme .el-coordonnees-liste a{font-weight:600;overflow-wrap:anywhere}
