
/*
Theme Name: bmh theme
Theme URI: http://clower.fr/
Author: Maxime G.Martin - Clower
Author URI: http://clower.fr/
Description: Thème WordPress sur mesure avec header et footer, CSS custom only.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: bmh-theme
*/

/* --- Couleurs mutualisées BMH --- */
:root {
  --primary-red: #E30011;
  --neutral-grey: #707070;
  --accent-green: #AFCA29;
  --accent-blue: #007695;
  --light-grey: #E6E6E6;
  --white: #FFFFFF;
  --dark-grey: #3D3D3D;
  --darker-grey: #3C3C3C;

  /* Couleurs BMH mutualisées */
  --bmh-vert: #AFCA29;
  --bmh-bleu: #007695;
  --bmh-rouge: #E30011;
  --bmh-gris: #707070;

  /* Valeurs de police/texte */
  --font-family-roboto: Roboto, Arial, sans-serif;
  --font-style-normal: normal;
  --font-weight-medium: 500;
  --font-size-xxl: 3.125rem; /* 50px */
  --character-spacing-none: 0rem;
  --line-spacing-xxl: 3.125rem; /* 50px */
}

/* Titres */
h1 {
  font-family: var(--font-family-roboto);
  font-size: 2.8125rem; /* 45px */
  color: var(--primary-red);
  font-weight: bold;
  margin-top: 0;
  margin-bottom: 1.25rem;
  line-height: 1.1;
}

h2 {
  font-family: var(--font-family-roboto);
  font-size: 2rem; /* 32px */
  color: var(--bmh-vert);
  font-weight: bold;
  margin-top: 0;
  margin-bottom: 1rem;
  line-height: 1.15;
}

h3 {
  font-family: var(--font-family-roboto);
  font-size: 1.5rem; /* 24px */
  color: var(--bmh-bleu);
  font-weight: bold;
  margin-top: 0;
  margin-bottom: 0.75rem;
  line-height: 1.2;
}

/* Styles de caractères */
.title-xxl {
  font-family: var(--font-family-roboto);
  font-style: var(--font-style-normal);
  font-weight: var(--font-weight-medium);
  font-size: var(--font-size-xxl);
  line-height: var(--line-spacing-xxl);
  letter-spacing: var(--character-spacing-none);
  color: var(--darker-grey);
}

/* --- Normalisation cross-browser et compatibilité --- */
html {
  -webkit-text-size-adjust: 100%; /* Empêche Safari de zoomer le texte */
  box-sizing: border-box;
}
*, *::before, *::after {
  box-sizing: inherit;
  -webkit-box-sizing: inherit;
  -moz-box-sizing: inherit;
}

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

html, body {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  background: white;
  overflow-x: hidden;
}

body {
  font-family: var(--font-family-roboto);
  margin: 0;
  padding: 1.875rem 4.0625rem; /* 30px 65px */
  background: white;
  color: #222;
  overflow-x: hidden;
  box-sizing: border-box;
}

header {
  background: transparent;
  color: #fff;
  padding: 2rem 1rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  box-sizing: border-box;
  position: relative;
  z-index: 10;
}

header a {
  align-self: flex-start;
  width: fit-content;
  height: fit-content;
}

header img {
  width: auto;
  max-width: 13rem; /* 208px */
  height: auto;
  max-height: 100px;
  object-fit: contain;
  object-position: center;
  display: block;
  -webkit-user-drag: none; /* Empêche le drag sur Safari */
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}

.main-content-inner * {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  font-family: var(--font-family-roboto);
}

.main-content-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  width: 50%;
  max-width: 40.625rem; /* 650px */
  box-sizing: border-box;
  gap: 1rem;
}

p, li {
  font-size: 1.125rem; /* 18px */
  color: var(--bmh-bleu)!important;
}

small {
  font-size: 1rem;
  color: var(--bmh-rouge)!important;
}

footer {
  background: transparent;
  color: #fff;
  text-align: center;
  position: fixed;
  width: 100%;
  bottom: 0;
  z-index: 1000;
  left: 0;
  box-sizing: border-box;
}

.footer-logo-presta {
  position: fixed;
  right: 1.25rem; /* 20px */
  bottom: 1.25rem; /* 20px */
  z-index: 1000;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 0.125rem 0.5rem rgba(0,0,0,0.15); /* 0 2px 8px */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.25rem; /* 4px */
  max-width: 32px;
  max-height: 32px;
}

.footer-logo-presta img {
  height: 100%;
    width: 100%;
    display: flex;
}

.main-content {
  padding: 0rem 1rem 4rem 1rem;
  /* background-color: var(--white); */
  position: relative;
  z-index: 1;
  box-sizing: border-box;
  max-width: 80dvw;
  margin: auto;
}

.main-bg::before {
  content: '';
  position: fixed;
  bottom: 0;
  right: 0;
  width: 100%;
  height: 100%;
  /* max-width: 35rem; 560px */
  /* max-height: 35rem; 560px */
  background: url(/wp-content/themes/bmh-theme/assets/images/main-bg.svg)  no-repeat padding-box bottom right;
  z-index: -10;
}

.ellipse {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  top: -260px;
  left:20vw;
  width: 309px;
  height: 309px;
  background: url(/wp-content/themes/bmh-theme/assets/images/Ellipse.svg) no-repeat center center;
  background-size: contain;
  z-index: 1;
}

.leaf-1 {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    right: -170px;
    width: 309px;
    height: 309px;
    background: url(/wp-content/themes/bmh-theme/assets/images/leaf1.png) no-repeat center center;
    background-size: contain;
    z-index: 1;
}

.reflex {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  top: -277.58099365234375px;
  left: 70vw;
  width: 444px;
  height: 344px;
  background: url(/wp-content/themes/bmh-theme/assets/images/reflex.png) no-repeat center center;
  background-size: contain;
  z-index: 1;
}

.pointilles2 {
  position: fixed;
  top: 45%;
  left: 40vw;
  width: 119px;
  height: 125px;
  background: url(/wp-content/themes/bmh-theme/assets/images/pointilles.svg) no-repeat center center;
  z-index: 1;
}

.pointilles1 {
  position: fixed;
  top: -58px;
  left: 54vw;
  width: 119px;
  height: 125px;
  background: url(/wp-content/themes/bmh-theme/assets/images/pointilles.svg) no-repeat center center;
  z-index: 1;
}

.leaf-2 {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 75%;
    left: 35vw;
    width: 253px;
    height: 283px;
    background: url(/wp-content/themes/bmh-theme/assets/images/leaf2.png) no-repeat center center;
    background-size: contain;
    z-index: 1;
}

/* ----------- Responsive Design ----------- */
/* Voir media-tablette.css et media-mobile.css */

/* --- BMH FORM STYLES --- */
.bmh-form-wrapper {
  max-width: 800px;
  margin: 0 auto;
  font-family: 'Roboto', sans-serif;
  width: 100%;
}
.bmh-step { display: none; }
.bmh-step.bmh-step-1, .bmh-step.active { display: block; }
.bmh-step.bmh-step-2 { display: block; width: 100%; }
.bmh-form-nav { margin-top: 2rem; }
.bmh-form-nav button {
  background: var(--bmh-vert);
  color: #fff;
  border: none;
  padding: 0.8rem 2rem;
  border-radius: 24px;
  font-size: 1.1rem;
  margin-right: 1rem;
  cursor: pointer;
  transition: background 0.2s;
}

.wp-block-button__link.wp-element-button,.bmh-form-nav button.bmh-next {
  text-transform: uppercase;
}

.bmh-form-nav button.bmh-prev { background: #fff; color: var(--bmh-vert); border: 1px solid var(--bmh-vert); }
.bmh-form-nav button:hover { background: var(--bmh-bleu); }
.bmh-creneau-btn {
  background: #fff;
  color: var(--bmh-bleu);
  border: 2px solid var(--bmh-bleu);
  border-radius: 20px;
  margin: 0.5rem 0.5rem 0.5rem 0;
  padding: 0.5rem 1.2rem;
  cursor: pointer;
  font-weight: bold;
  transition: background 0.2s, color 0.2s;
  width: 100%;  
}

.wp-block-button__link.wp-element-button {
  background: var(--bmh-vert);
  color: #fff;
  border: none;
  padding: 0.8rem 2rem;
  border-radius: 24px;
}

.bmh-creneau-btn.selected, .bmh-creneau-btn:active {
  background: var(--bmh-bleu);
  color: #fff;
}
.bmh-creneau-row { margin-bottom: 1rem; }
.bmh-creneau-date { font-weight: bold; margin-right: 1rem; width: 100%;}
.bmh-person-block { margin-bottom: 1.5rem; }

/* --- INPUT & SELECT SOULIGNAGE BLEU ET CHEVRON BLEU --- */
.bmh-person-block input,
.bmh-person-block select {
  display: block;
  width: 100%;
  margin-bottom: 0.7rem;
  padding: 0.6rem 0.6rem 0.6rem 0.6rem;
  border: none;
  border-bottom: 2px solid var(--bmh-bleu);
  border-radius: 0;
  font-size: 1rem;
  background: #fff;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  box-shadow: none;
  outline: none;
  transition: border-color 0.2s;
}

.bmh-person-block input:focus,
.bmh-person-block select:focus {
  border-bottom: 2.5px solid var(--bmh-bleu);
  outline: none;
}

.bmh-person-block select {
  background-image:
    url("data:image/svg+xml;utf8,<svg fill='none' stroke='%230086a7' stroke-width='2.5' viewBox='0 0 24 24' width='20' height='20' xmlns='http://www.w3.org/2000/svg'><path d='M6 9l6 6 6-6'/></svg>");
  background-repeat: no-repeat;
  background-position: right 0.6em center;
  background-size: 1.2em 1.2em;
  padding-right: 2.2em;
  color: #222;
  cursor: pointer;
}

.bmh-person-block select:focus {
  border-bottom: 2.5px solid var(--bmh-bleu);
}

.bmh-person-block select option {
  color: #222;
}

/* --- FIN INPUT & SELECT SOULIGNAGE BLEU ET CHEVRON BLEU --- */

.bmh-checkbox-2pers { margin: 1rem 0; }
.bmh-checkbox-2pers label { margin-left: 0.5rem; }
.bmh-rgpd-block { margin: 2rem 0 1rem 0; font-size: 0.95rem; }
.bmh-rgpd-block label { margin-left: 0.5rem; }
.bmh-form-error {
  color: var(--bmh-rouge);
  background: #fff0f0;
  border: 1px solid var(--bmh-rouge);
  border-radius: 8px;
  padding: 1rem;
  margin-top: 1rem;
  text-align: center;
}
.bmh-btn-site {
  display: inline-block;
  background: var(--bmh-vert);
  color: #fff;
  padding: 0.8rem 2rem;
  border-radius: 24px;
  text-decoration: none;
  font-weight: bold;
  margin-top: 2rem;
}
/* --- Bloc numéro de contrat stylisé --- */
.bmh-contrat-block {
  display: flex;
  align-items: flex-start;
  gap: 2.5rem;
  margin-bottom: 2.2rem;
  position: relative;
}
.bmh-contrat-field {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.bmh-contrat-field input[type="text"]#bmh-contrat {
  background: #fff;
  border: 2px solid var(--bmh-bleu);
  border-radius: 32px;
  padding: 1rem 2.5rem 1rem 3.5rem;
  font-size: 1.2rem;
  color: #888;
  font-weight: 500;
  outline: none;
  box-shadow: none;
  width: 100%;
}
.bmh-contrat-field input[type="text"]#bmh-contrat::placeholder {
  color: #b2b2b2;
  opacity: 1;
}
.bmh-contrat-field .bmh-l-prefix {
  position: absolute;
  left: 1.3rem;
  top: 1.1rem;
  color: var(--bmh-bleu);
  font-size: 1.5rem;
  font-weight: bold;
  pointer-events: none;
  font-family: 'Roboto', sans-serif;
}
.bmh-contrat-field .bmh-required {
  position: absolute;
  right: 1.5rem;
  top: 1.1rem;
  color: var(--bmh-rouge);
  font-size: 1.3rem;
  font-weight: bold;
  pointer-events: none;
}
.bmh-help-contrat {
  display: block;
  background: none;
  border: none;
  color: #3db6d3;
  font-size: 1rem;
  font-style: italic;
  margin-top: 0.2rem;
  margin-left: 0.2rem;
  cursor: pointer;
  text-decoration: underline;
  padding: 0;
  text-align: left;
}
/* --- Case à cocher stylisée --- */
.bmh-checkbox-2pers {
  display: flex;
  align-items: center;
  margin-top: 0.5rem;
  min-width: 260px;
  margin-left: 0;
}
.bmh-checkbox-2pers input[type="checkbox"],.bmh-rgpd-block input[type="checkbox"]  {
  appearance: none;
  width: 1.5em;
  height: 1.5em;
  border: 2px solid var(--bmh-bleu);
  border-radius: 50%;
  background: #fff;
  margin-right: 0.7em;
  position: relative;
  cursor: pointer;
  transition: border 0.2s;
}
.bmh-checkbox-2pers input[type="checkbox"]:checked::before, .bmh-rgpd-block input[type="checkbox"]:checked::before {
  content: '';
  display: block;
  width: 0.7em;
  height: 0.7em;
  background: var(--bmh-bleu);
  border-radius: 50%;
  position: absolute;
  top: 0.3em;
  left: 0.3em;
}
.bmh-checkbox-2pers label {
  color: var(--bmh-bleu);
  font-weight: bold;
  font-size: 1.15rem;
  cursor: pointer;
  font-family: 'Roboto', sans-serif;
}

/* =====================
   MEDIA QUERIES MOBILE
   ===================== */
/* Voir media-mobile.css */

/* =====================
   MEDIA QUERIES TABLETTE
   ===================== */
/* Voir media-tablette.css */

/* =====================
   MEDIA QUERIES DESKTOP LARGE
   ===================== */
/* Voir media-desktop-large.css */

/* --- AJOUTS/ADAPTATIONS POUR STYLE IMAGE FOURNIE --- */
.bmh-creneaux {
  display: flex;
  flex-direction: column;
  gap: .8rem !important;
  margin-bottom: 2rem;
}
.bmh-creneau-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  align-items: self-end;
}
.bmh-creneau-slots {
    display: flex;
    gap: .8rem !important;
    width: 100%;
}

.bmh-creneau-date {
  min-width: 180px;
  font-size: 1.1rem;
  font-weight: bold;
  color: var(--bmh-bleu);
  background: #fff;
  border: 2px solid var(--bmh-bleu);
  border-radius: 24px;
  padding: 0.5rem 1.2rem;
  margin-right: 1.2rem;
  text-align: center;
  transition: background 0.2s, color 0.2s;
}
.bmh-creneau-date.selected {
  background: var(--bmh-bleu);
  color: #fff;
}
.bmh-creneau-btn {
  min-width: 120px;
  margin-right: 1.2rem;
  margin-bottom: 0;
  font-size: 1.1rem;
  border-radius: 24px;
  border-width: 2px;
  background: #fff;
  color: var(--bmh-bleu);
  border: 2px solid var(--bmh-bleu);
  font-weight: bold;
  transition: background 0.2s, color 0.2s;
}
.bmh-creneau-btn.selected, .bmh-creneau-btn:active {
  background: var(--bmh-bleu);
  color: #fff;
}
.bmh-creneau-btn:focus {
  outline: 2px solid var(--bmh-bleu);
}

/* BOUTON PRINCIPAL ROUGE */


.bmh-form-nav .bmh-prev {
  order: 1;
  background: none !important;
  color: var(--bmh-vert) !important;
  border: none !important;
  font-weight: bold;
  font-size: 1.15rem;
  text-decoration: underline;
  line-height: 1;
  padding: 1rem 1.5rem 1rem 0;
  margin-right: 0;
  transition: color 0.2s;
  cursor: pointer;
}
.bmh-form-nav .bmh-next {
  order: 2;
  background: var(--bmh-rouge) !important;
  color: #fff !important;
  font-weight: 300;
  border-radius: 32px;
  font-size: 1.3rem;
  padding: 1.1rem 3rem;
  margin-right: 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  border: none;
  transition: background 0.2s;
}
/* .bmh-form-nav .bmh-next:hover {
  background: #b8000a !important;
} */

/* RGPD */
.bmh-rgpd-block {
  margin: 2rem 0 1rem 0;
  font-size: 1rem;
  color: #3db6d3;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.7rem;
}


/* RGPD texte couleur et taille */
.bmh-rgpd-block label {
  color: #3db6d3;
  font-size: 1.05rem;
  font-weight: normal;
  margin: 0;
  line-height: 1.4;
}

/* TEXTE INFO CRÉNEAU */
.bmh-info-creneau {
  color: #0086a7;
  font-size: 1rem;
  margin-bottom: 1.2rem;
  margin-top: 0.5rem;
  font-style: normal;
}

/* Ajustement responsive */
/* Voir media-responsive.css */ 

/* Bouton vert générique (étape suivante, retour, site BMH) */
.bmh-form-nav .bmh-next {
  background: var(--bmh-vert) !important;
  color: #fff !important;
  font-weight: 300;
  border-radius: 32px;
  font-size: 1.15rem;
  padding: 1rem 2.5rem;
  margin-right: 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  border: none;
  transition: background 0.2s;
}

/* Bouton vert générique (étape suivante, retour, site BMH) */
.bmh-form-nav .bmh-next {
  background: var(--bmh-vert) !important;
  color: #fff !important;
  font-weight: 300;
  border-radius: 32px;
  font-size: 1.15rem;
  padding: 1rem 2.5rem;
  margin-right: 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  border: none;
  transition: background 0.2s;
}
.bmh-form-nav .bmh-next.bmh-final {
  background: var(--bmh-rouge) !important;
  color: #fff !important;
  font-size: 1.2rem;
  padding: 1.1rem 3rem;
}
.bmh-form-nav .bmh-prev {
    display: flex;
    flex-direction: column;
  background: none !important;
  color: var(--bmh-vert) !important;
  border: none !important;
  font-weight: bold;
  font-size: 1.15rem;
  padding: 1rem 2.5rem;
  margin-left: 1.5rem;
  margin-right: 0;
  transition: color 0.2s;
  text-decoration: none;
  order: 2;
}

.bmh-form-nav .bmh-prev::after {
    content: "";
    margin-right: 0.5rem;
    width: 100%;
    height: 2px;
    background: var(--bmh-vert);
    margin-top: .5rem;
}

.bmh-form-nav {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    gap: 0.5rem;
    margin-top: 2rem;
    width: 100%;
    flex-wrap: wrap;
}
.bmh-btn-site {
  display: block;
  background: var(--bmh-vert);
  color: #fff;
  padding: 1.1rem 3rem;
  border-radius: 32px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.2rem;
  margin: 2rem auto 0 auto;
  text-align: center;
  width: fit-content;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: background 0.2s;
}
.bmh-btn-site:hover {
  background: #7fa32a;
} 
  /* 
  @import url("media-mobile.css");
  @import url("media-tablette.css");
  @import url("media-desktop-large.css");
  @import url("media-responsive.css"); */

.bmh-circle {
  position: fixed;
  top: 20dvh;
  left: 50dvw;
  margin: auto;
  display: flex;
  border-radius: 50%;
  padding: 30px 40px;
  color: #fff;
  text-align: center;
  font-size: 1.2em;
  margin: 20px 0;
  min-width: 16rem;
  min-height: 16rem;
  height: 16rem;
  width: 16rem;
  flex-direction: column;
  justify-content: center;
  transform: rotate(10deg);
  z-index: -1;
}
.bmh-blue {
    background:var(--bmh-bleu); /* Remplace par ta couleur bmh-blue si besoin */
}
.bmh-green {
    background: var(--bmh-vert); /* Remplace par ta couleur bmh-green si besoin */
}

.bmh-accueil-highlight {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin: auto 0;
  font-family: inherit;
  font-size: 1.8rem;
}

.bmh-accueil-surtitre {
  color: #00819b; /* ou var(--bmh-bleu) */
  font-size: 1.1em;
  font-weight: 400;
  letter-spacing: 0.05em;
  margin-bottom: 0.2em;
  text-transform: uppercase;
}

.bmh-accueil-nb {
  color: #8dc63f; /* ou var(--bmh-vert) */
  font-size: 4em;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 0.1em;
}

.bmh-accueil-exposant {
  font-size: 0.4em;
  vertical-align: super;
  font-weight: 700;
}

.bmh-accueil-titre {
  color: #00819b; /* ou var(--bmh-bleu) */
  font-size: 2em;
  font-weight: 700;
  line-height: 1.1;
  margin-top: 0.1em;
  text-transform: uppercase;
}

.bmh-form-wrapper, .main-content-inner, .main-content, header, footer {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}

.bmh-form-nav button, .bmh-creneau-btn, .wp-block-button__link.wp-element-button {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  outline: none;
}

.bmh-person-block input, .bmh-person-block select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  outline: none;
  background-clip: padding-box;
}

.bmh-person-block input[type="text"], .bmh-person-block select {
  min-height: 44px; /* Pour accessibilité mobile et uniformité */
}