/* ==========================================================================
   optimisetavie.com — feuille de style principale
   Couleurs : vert foncé #468046 · vert #50b964 · vert pâle #81a881
              vert lien #568b56 · jaune/orange #f5ae04 · gris titre #8d969f
   Polices  : Lato (texte), Raleway (titres), Oswald (menu)
   ========================================================================== */

/* Polices hébergées sur le site (copie des fichiers de Google Fonts, mêmes graisses qu'avant).
   Oswald et Raleway sont des polices variables : un fichier sert plusieurs graisses. */
@font-face { font-family: 'Lato'; font-style: normal; font-weight: 300; font-display: swap;
  src: url(../fonts/lato-300-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Lato'; font-style: normal; font-weight: 300; font-display: swap;
  src: url(../fonts/lato-300-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Oswald'; font-style: normal; font-weight: 400; font-display: swap;
  src: url(../fonts/oswald-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Oswald'; font-style: normal; font-weight: 400; font-display: swap;
  src: url(../fonts/oswald-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Oswald'; font-style: normal; font-weight: 700; font-display: swap;
  src: url(../fonts/oswald-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Oswald'; font-style: normal; font-weight: 700; font-display: swap;
  src: url(../fonts/oswald-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Raleway'; font-style: normal; font-weight: 400; font-display: swap;
  src: url(../fonts/raleway-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Raleway'; font-style: normal; font-weight: 400; font-display: swap;
  src: url(../fonts/raleway-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --vert-fonce: #468046;
  --vert: #50b964;
  --vert-pale: #81a881;
  --vert-lien: #568b56;
  --vert-survol: #96c560;
  --orange: #f5ae04;
  --jaune: #ffe52b;
  --gris: #8d969f;
  --gris-texte: #8c949d;
  --texte: #363636;
  --texte-p: #333333;
  /* Noms attendus par le bandeau de témoins (temoins.css) : boutons et liens réels du site. */
  --couleur-bouton: var(--orange);
  --couleur-bouton-texte: #fff;
  --couleur-bouton-survol: var(--jaune);
  --rayon-bouton: 0;
  --couleur-lien: var(--vert-lien);
  --couleur-lien-survol: var(--vert-survol);
  --police-texte: 'Lato', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  font-size: 10px;
  -webkit-text-size-adjust: 100%;
}
/* Défilement doux vers les ancres (désactivé si l'appareil demande moins d'animations) */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  font-family: 'Lato', sans-serif;
  font-size: 14px;
  font-weight: 300;
  line-height: 1.625em;
  color: var(--texte);
  background: #fff;
}

img { max-width: 100%; height: auto; vertical-align: middle; border: 0; }

a {
  color: var(--vert-lien);
  font-weight: 400;
  text-decoration: none;
  transition: color .2s;
}
a:hover, a:active, a:focus { color: var(--vert-survol); text-decoration: none; }

h1, h2, h3, h4, h5, h6 { margin: 20px 0 10px; }

h1 {
  font-family: 'Raleway', sans-serif;
  font-size: 2.6em;
  font-weight: 400;
  line-height: 1.3em;
  text-transform: uppercase;
  color: #fff;
}
h2 {
  font-size: 2em;
  font-weight: 400;
  line-height: 1.3em;
  color: rgb(140, 148, 157);
  margin: -.7em 0 15px;
}
h3 {
  font-family: 'Raleway', sans-serif;
  font-size: 2.3em;
  font-weight: 300;
  line-height: 1.1em;
  text-transform: uppercase;
  color: var(--gris);
  padding-bottom: 10px;
}
h4 {
  margin: 0 0 25px;
  font-size: 1.8em;
  font-weight: 400;
  line-height: 2.5em;
  text-transform: uppercase;
  word-spacing: .1em;
  color: var(--vert-pale);
}
h6 {
  margin: 0 0 25px;
  font-size: 1em;
  font-weight: 300;
  line-height: 1.05em;
  color: #000;
}
p {
  margin: 0 0 20px;
  font-size: 19px;
  font-weight: 400;
  line-height: 1.55em;
  color: var(--texte-p);
}
b, strong { font-weight: 900; color: #000; }

ul { margin: 0 2em 2em; padding: 0; list-style: none; }
li { line-height: 30px; padding: 10px 0; color: var(--texte); }

.fa { color: var(--vert-lien); }

@media (min-width: 768px) {
  p { font-size: 20px; }
}
@media (max-width: 800px) {
  h1 { font-size: 2em; }
}
@media (max-width: 480px) {
  h1 { font-size: 1.5em; line-height: 1.5; margin: 0; padding: 0 5px; }
  h3 { font-size: 1.8em; }
}

/* Lien d'évitement (accessibilité) */
.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--vert); color: #fff; padding: 10px 15px; z-index: 100000;
}
.skip-link:focus { left: 10px; color: #fff; }

/* ==========================================================================
   EN-TÊTE ET MENU
   ========================================================================== */
.site-header {
  position: relative;
  display: flow-root;
  background: #fff;
  padding: 0 15px;
  min-height: 91px;
}
.logo {
  display: block;
  width: 270px;
  max-width: 270px;
  margin: 10px 0 0;
  line-height: 0;
}
.logo img { width: 100%; height: auto; }
.logo .logo-hover { display: none; }
.logo:hover .logo-normal { display: none; }
.logo:hover .logo-hover { display: block; }

@media (min-width: 769px) {
  .site-header { min-height: 108px; }
  .logo { margin-top: 20px; }
}
/* Sous 360 px, le logo rétrécit pour ne pas passer sous le bouton du menu */
@media (max-width: 359px) {
  .logo { width: calc(100vw - 90px); }
}

/* Bouton hamburger (mobile / tablette) */
.nav-toggle {
  display: flex;
  position: fixed;
  top: 0; right: 0;
  width: 45px; height: 45px;
  margin: 15px 15px 0 0;
  border: 0; padding: 0;
  border-radius: 50%;
  background: var(--vert);
  align-items: center; justify-content: center;
  cursor: pointer;
  z-index: 10001;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 25px; height: 3px;
  background: #fff;
  border-radius: 4px;
  transition: all .2s ease;
}
.nav-toggle span { position: relative; }
.nav-toggle span::before,
.nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -7px; }
.nav-toggle span::after { top: 7px; }
.menu-open .nav-toggle span { background: transparent; }
.menu-open .nav-toggle span::before { top: 0; transform: rotate(45deg); }
.menu-open .nav-toggle span::after { top: 0; transform: rotate(-45deg); }

.main-nav ul { list-style: none; margin: 0; padding: 0; }
.main-nav li { padding: 0; line-height: normal; }
.main-nav a,
.main-nav .separator {
  font-family: 'Oswald', sans-serif;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #000;
  margin: 0;
  cursor: pointer;
  background: none;
  border: 0;
}
.main-nav .active > a,
.main-nav .active > .separator { color: var(--vert); font-weight: 600; }

/* Le « + » vert à côté de Formations */
.main-nav .separator { position: relative; padding: 0; }
.main-nav .separator::before,
.main-nav .separator::after {
  content: "";
  position: absolute;
  top: 48%;
  width: 10px; height: 2px;
  background: var(--vert);
  transition: transform .2s ease;
}

/* --- Menu plein écran (moins de 1200 px) --- */
@media (max-width: 1199px) {
  .main-nav {
    position: fixed;
    left: 0; top: -100%;
    width: 100%; min-height: 100vh;
    display: flex; align-items: center; justify-content: center;
    background: #fff;
    z-index: 10000;
    transition: top .5s ease;
  }
  .menu-open .main-nav { top: 0; }
  .menu-open { overflow: hidden; }
  .main-nav > ul { text-align: center; }
  .main-nav > ul > li { margin-bottom: 10px; }
  .main-nav > ul > li > a,
  .main-nav > ul > li > .separator { font-size: 25px; font-weight: 400; line-height: 1.5; }
  .main-nav .separator::before,
  .main-nav .separator::after { right: -15px; transform: translateY(48%); }
  .main-nav .separator::before { transform: translateY(48%) rotate(-90deg); }
  .main-nav .has-children.open > .separator { color: var(--vert); font-weight: 600; }
  .main-nav .has-children.open > .separator::before { transform: translateY(48%) rotate(0); }
  .main-nav .sub-menu {
    max-height: 0; overflow: hidden;
    visibility: hidden; opacity: 0;
    transition: all .2s ease-in-out;
  }
  .main-nav .has-children.open .sub-menu { max-height: 400px; visibility: visible; opacity: 1; }
  .main-nav .sub-menu li { line-height: 1.8; }
  .main-nav .sub-menu li:first-child { padding-top: 10px; }
  .main-nav .sub-menu a { font-size: 17px; font-weight: 400; text-transform: none; letter-spacing: 0; }
  .main-nav .sub-menu .active a { color: var(--vert); }
}
@media (min-width: 400px) and (max-width: 1199px) {
  .main-nav > ul > li > a,
  .main-nav > ul > li > .separator { font-size: 17px; }
  .main-nav .sub-menu a { font-size: 20px; }
}
@media (max-width: 375px) {
  .main-nav > ul > li > a,
  .main-nav > ul > li > .separator { font-size: 17px; }
}

/* --- Menu horizontal (1200 px et plus) --- */
@media (min-width: 1200px) {
  .nav-toggle { display: none; }
  .main-nav {
    position: absolute;
    top: 0; right: 20px;
    height: 50px;
    z-index: 1000;
  }
  .main-nav > ul {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 30px;
    padding: 0 60px;
  }
  .main-nav > ul > li { position: relative; padding: 10px 0; }
  .main-nav > ul > li.has-children { padding-right: 10px; }
  .main-nav > ul > li > a,
  .main-nav > ul > li > .separator {
    display: flex; align-items: center;
    font-size: 25px;
    line-height: 30px;
    font-weight: 500;
    padding: 10px 15px;
  }
  .main-nav > ul > li > a:hover,
  .main-nav > ul > li > .separator:hover { color: var(--vert); }
  .main-nav .active > a,
  .main-nav .active > .separator { font-weight: 600; }
  .main-nav .separator::before,
  .main-nav .separator::after { right: -10px; transform: translate(5px, -48%); }
  .main-nav .separator::before { transform: translate(5px, -48%) rotate(-90deg); }
  .main-nav .has-children:hover .separator::before,
  .main-nav .has-children.open .separator::before { transform: translate(5px, -48%) rotate(0); }
  .main-nav .sub-menu {
    position: absolute;
    left: 0; top: 100%;
    min-width: 250px;
    background: #fff;
    padding: 0 10px 10px;
    opacity: 0; visibility: hidden;
    transition: all .3s ease;
    z-index: 10;
  }
  .main-nav .has-children:hover > .sub-menu,
  .main-nav .has-children.open > .sub-menu,
  .main-nav .has-children:focus-within > .sub-menu { opacity: 1; visibility: visible; }
  .main-nav .sub-menu li { padding: 10px 0 0; line-height: 30px; }
  .main-nav .sub-menu li:first-child { padding-top: 10px; }
  .main-nav .sub-menu a {
    display: block;
    font-size: 22px;
    font-weight: 400;
    line-height: 30px;
    text-transform: none;
    letter-spacing: 0;
    color: #132d44;
  }
  .main-nav .sub-menu li:hover a,
  .main-nav .sub-menu .active a { color: var(--vert); }
}

/* ==========================================================================
   ACCUEIL — Image avant / après
   ========================================================================== */
.hero { position: relative; }
.ba-slider {
  position: relative;
  width: 100%;
  margin: 0 auto 85px;
  overflow: hidden;
  user-select: none;
}
.ba-slider > img { display: block; width: 100%; }
.ba-resize {
  position: absolute;
  top: 0; left: 0;
  width: 0; height: 100%;
  overflow: hidden;
  transform: translateZ(0);
  backface-visibility: hidden;
}
.ba-resize img {
  position: absolute; top: 0; left: 0;
  display: block;
  height: 100%; width: auto; max-width: none;
}
.ba-slider.is-visible .ba-resize { width: 50%; animation: ba-bounce-in .7s; }
@keyframes ba-bounce-in { 0% { width: 0; } 60% { width: 55%; } 100% { width: 50%; } }
.ba-handle {
  position: absolute;
  left: 50%; top: 50%;
  width: 44px; height: 44px;
  margin: -22px 0 0 -22px;
  border-radius: 50%;
  background: #91b081 url("../../images/cd-arrows.svg") no-repeat center center;
  box-shadow: 0 0 0 6px rgba(0,0,0,.2), 0 0 10px rgba(0,0,0,.6), inset 0 1px 0 rgba(255,255,255,.3);
  cursor: move;
  opacity: 0;
  transform: scale(0);
  touch-action: none;
  z-index: 3;
}
.ba-slider.is-visible .ba-handle {
  opacity: 1; transform: scale(1);
  transition: transform .3s .7s, opacity 0s .7s;
}
.ba-handle.draggable { background-color: #445b7c; }

.hero-title {
  position: absolute;
  left: 0; width: 100%;
  top: 100%;
  text-align: center;
  z-index: 2;
}
.hero-title-inner {
  margin: 0 auto;
  padding: 10px;
  background: rgb(70, 128, 70);
}
.hero-title p {
  margin: 10px 0;
  font-size: 16px;
  line-height: 1.55em;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #fff;
}
@media (min-width: 700px) {
  .hero-title p { font-size: 23px; }
}
@media (min-width: 767px) {
  .ba-slider { margin-bottom: 0; }
  .hero-title { top: auto; bottom: 0; margin-top: 0; }
  .hero-title-inner { background: rgba(70, 128, 70, .78); }
}
@media (min-width: 1000px) {
  .hero-title-inner { max-width: 65%; padding: 10px 20px; }
  .hero-title p { font-size: 30px; }
}
@media (min-width: 1265px) {
  .hero-title-inner { width: 65%; padding: 20px 30px; }
  .hero-title p { letter-spacing: 9px; }
}

/* ==========================================================================
   ACCUEIL — Trois tuiles des formations
   ========================================================================== */
.tiles { display: flex; flex-wrap: wrap; }
.tile {
  position: relative;
  flex: 0 0 100%;
  max-width: 100%;
  background: #000;
  line-height: 0;
  z-index: 0;
}
.tile img.tile-img { display: block; width: 100%; height: auto; transition: opacity .2s ease-in-out; }
.tile:hover img.tile-img { opacity: .5; }
.tile a { position: relative; margin: 0; z-index: 2; display: block; }
.tile .tile-title {
  position: absolute;
  left: 0; bottom: 20px;
  width: 100%;
  padding: .85em;
  background: rgba(80, 185, 100, .78);
  color: #fff;
  font-size: 23px;
  line-height: 22.75px;
  text-transform: uppercase;
}
.tile .tile-title:hover { color: #fff; }
.tile .tile-link-icon {
  position: absolute;
  top: 50%; left: 50%;
  width: 50px;
  transform: translate(-50%, -50%);
  visibility: hidden; opacity: 0;
  transition: opacity .2s ease-in-out;
  z-index: 3;
}
.tile:hover .tile-link-icon { visibility: visible; opacity: 1; }
@media (min-width: 992px) {
  .tile { flex-basis: 33.3333%; max-width: 33.3333%; }
}

/* ==========================================================================
   ACCUEIL — Présentation du formateur
   ========================================================================== */
.trainer { display: flex; flex-wrap: wrap; padding-top: 23px; }
.trainer-col { flex: 0 0 100%; max-width: 100%; padding: 0 15px; }
@media (min-width: 992px) {
  .trainer-col { flex-basis: 50%; max-width: 50%; }
}
.pad { padding: 20px 10px; }
.pad2 { padding: 2px 10px 0; }
.trainer-photo { display: block; }
@media (min-width: 1200px) {
  .trainer-photo { max-width: 570px; }
}
.trainer-box {
  border: 3px solid #b3bfb8;
  padding: 2em;
}
.trainer-box h4 {
  text-align: center;
  font-size: 25.2px;
  line-height: 63px;
}
.trainer-box p { text-align: center; }
.trainer-box a { margin: 0 10px; }
.trainer-box .fa { font-size: 20px; }

.trainer-heading { display: none; }
.trainer-heading h1 {
  color: #969fa7;
  text-align: center;
  font-size: 29px;
  margin: 22px 0 2em;
}
@media (min-width: 768px) {
  .trainer-desktop .trainer-box { padding: 3em; margin-top: -30px; }
}
@media (min-width: 900px) {
  .trainer-heading { display: block; }
  .trainer-desktop .trainer-box { padding: 1em; }
}
@media (min-width: 1000px) {
  .trainer-heading h1 { font-size: 33px; }
  .trainer-desktop .trainer-box { padding: 3em; }
}
@media (min-width: 1300px) {
  .trainer-desktop .trainer-box {
    padding: 1em;
    margin: -43px auto 1.75em;
    width: 500px;
  }
}

/* Versions mobile / tablette-bureau du bloc photo */
@media (max-width: 480px) { .only-tablet-desktop { display: none; } }
@media (min-width: 481px) { .only-mobile { display: none; } }

/* Bloc « Témoignages » */
.testimonial-block {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 268px;
  margin-bottom: 15px;
  background: url("../../images/block-temoignage.jpg") no-repeat center / cover;
}
.testimonial-block p { margin: 0; }
.testimonial-block a {
  display: table;
  margin: auto;
  padding: 10px 15px;
  border: 2px solid #fff;
  color: #fff;
  text-align: center;
}
.testimonial-block a:hover { color: #fff; opacity: .5; }
.testimonial-block .fa { color: #fff; }
@media (min-width: 768px) {
  .testimonial-block a { font-size: 2em; padding: 20px 30px; border-width: 4px; }
}
.testimonial-desktop { display: none; }
@media (min-width: 1300px) {
  .testimonial-desktop { display: block; }
  .testimonial-mobile { display: none; }
  .testimonial-block { height: 175px; width: 500px; margin: auto; }
  .testimonial-block a { font-size: 1em; padding: 10px 15px; }
}

/* Texte de présentation */
.trainer-text { padding: 0 8px; }
.trainer-text p { font-size: 19px; }
.trainer-closing h4 {
  font-size: 18px;
  font-weight: 900;
  line-height: 28px;
  text-align: center;
}
@media (min-width: 768px) {
  .trainer-text p { font-size: 20px; }
}
@media (min-width: 800px) {
  .trainer-closing h4 { font-size: 27px; line-height: 40px; margin: 1.5em 0; }
}

/* ==========================================================================
   ACCUEIL — Raccourci « Vidéos »
   ========================================================================== */
.video-banner { display: none; margin: -1.5em 0 5em; }
.video-banner a { display: block; position: relative; margin: 0; line-height: 0; overflow: hidden; }
.video-banner img { display: block; width: 100%; }
.video-banner-caption {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: center;
  padding-top: 1.6em;
  background: rgba(71, 130, 71, .89);
  opacity: 0;
  transition: opacity .3s ease;
  line-height: normal;
}
.video-banner a:hover .video-banner-caption,
.video-banner a:focus .video-banner-caption { opacity: 1; }
.video-banner-caption h3 {
  margin: 15px;
  padding: 0;
  font-size: 40px;
  font-weight: 700;
  line-height: normal;
  text-align: center;
  color: #fff;
}
.video-banner-caption p {
  margin: 15px;
  font-size: 16px;
  line-height: normal;
  text-align: center;
  color: #fff;
}
@media (min-width: 375px) { .video-banner { margin-bottom: 4em; } }
@media (min-width: 900px) { .video-banner-caption p { font-size: 30px; } }

.video-shortcut {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 200px;
  margin: 20px 0 50px;
  text-align: center;
  background: url("../../images/raccourci-video-accueil.jpg") no-repeat center / cover;
}
.video-shortcut-frame { background: rgba(80, 185, 100, .8); padding: 12px; }
.video-shortcut-frame:hover { opacity: .5; }
.video-shortcut-frame a { margin: 0; color: #fff; }
.video-shortcut-frame h2 { margin: 0; color: #fff; }
.video-shortcut-frame p { margin: 0; color: #fff; font-size: 16px; }

@media (min-width: 1025px) {
  .video-banner { display: block; margin: 63px 0 80px; }
  .video-shortcut { display: none; }
}

/* ==========================================================================
   PAGES INTÉRIEURES — Bandeau de titre vert
   ========================================================================== */
.page-wrap { padding: 0 15px; max-width: 1800px; margin: 0 auto; }
.page-header {
  margin: 0;
  padding: 20px 0;
  background: var(--vert);
  text-align: center;
  font-family: 'Oswald', sans-serif;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: #fff;
}
.page-header h1 {
  margin: 20px 0 10px;
  font-size: 41.6px;
  line-height: 1.3em;
  letter-spacing: 3px;
}
@media (max-width: 800px) { .page-header h1 { font-size: 28px; } }
@media (max-width: 480px) { .page-header h1 { font-size: 21px; margin: 0; padding: 0 5px; line-height: 1.5; } }

/* ==========================================================================
   FORMATIONS
   ========================================================================== */
.intro-texture {
  padding: 5% 2%;
  background: #fff url("../../images/texture_block.png") no-repeat center;
  text-align: left;
}
.intro-texture h3 {
  margin: 20px 0 10px;
  padding: 2% 0 2% 20px;
  border-left: 5px solid var(--vert-fonce);
  color: var(--vert-fonce);
  font-size: 2em;
  line-height: 1.1em;
  text-transform: uppercase;
}
.intro-texture p { font-size: 19px; margin-top: 2%; }
@media (min-width: 768px) {
  .intro-texture h3 { font-size: 3em; }
  .intro-texture p { font-size: 20px; }
}

.parallax {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}
@supports (-webkit-touch-callout: none) {
  .parallax { background-attachment: scroll; }
}
.parallax-gestion { background-image: url("../../images/gestion-information-paralax.jpg"); }
.parallax-coherence { background-image: url("../../images/coherence-cardiaque-parallax.jpg"); }
.parallax-productivite { background-image: url("../../images/productivite-energie-vital-parallax.jpg"); }
.parallax > div { max-width: 800px; margin: auto; padding: 30px; }
.parallax h2 {
  margin: 20px 0 10px;
  font-family: 'Raleway', sans-serif;
  font-size: 36.4px;
  font-weight: 400;
  line-height: 1.3em;
  text-transform: uppercase;
  color: #fff;
}
@media (max-width: 480px) { .parallax h2 { font-size: 21px; line-height: 1.5; } }
.parallax ul {
  margin: 0 1em 0 4em;
  padding: 0;
  list-style: disc;
  font-size: 12px;
  color: #fff;
}
.parallax li {
  padding: 15px 0;
  font-size: 2em;
  line-height: 30px;
  color: #fff;
}

.cta-block {
  min-height: 600px;
  padding: 50px 0;
  background: #fff;
  text-align: center;
}
.cta-block .cta-icon {
  display: block;
  margin: 4em auto 0;
}
.key-phrase,
.key-phrase2 {
  margin: -17.5px 0 15px;
  font-family: 'Oswald', sans-serif;
  font-size: 25px;
  font-weight: 400;
  line-height: 200%;
  letter-spacing: 1px;
  text-align: center;
  text-transform: uppercase;
}
.key-phrase { color: var(--gris); padding: 40px; }
.key-phrase2 { color: #000; padding: 0 15px 40px; }
@media (max-width: 480px) {
  .key-phrase, .key-phrase2 {
    font-size: 1.7em;
    line-height: 42px;
    margin: 30px 0 34px;
    padding: 0 15px;
  }
}
@media (max-width: 325px) {
  .key-phrase, .key-phrase2 { font-size: 1.5em; }
}
.call-action {
  width: 78%;
  margin: auto auto 15px;
  font-size: 1.5em;
  font-weight: 600;
  line-height: 30px;
  letter-spacing: .01px;
  word-spacing: .05em;
  color: var(--orange);
}
.arrow-down { width: 60px; }

/* ==========================================================================
   FORMULAIRES (contact, formations, confidentialité)
   ========================================================================== */
.form {
  max-width: 800px;
  margin: auto;
  padding: 30px;
}
.form-row { margin: 0 0 44px; }
.form label {
  display: block;
  margin: 20px 0 5px;
  font-size: 28px;
  font-weight: 300;
  line-height: 22.75px;
  color: var(--texte);
}
.form .req { font-weight: 900; color: #000; }
.form input[type="text"],
.form input[type="email"],
.form textarea {
  display: block;
  width: 100%;
  max-width: 95%;
  height: 50px;
  margin: 27px 5px 24px;
  padding: 4px 6px;
  border: 2px solid #000;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  font-family: 'Lato', sans-serif;
  font-size: 21px;
  font-weight: 700;
  line-height: 20px;
  color: #000;
  transition: border .2s linear;
}
.form textarea { resize: vertical; }
.form input:focus,
.form textarea:focus { border-color: var(--orange); outline: 0; }
.btn-submit {
  margin-top: 20px;
  padding: 10px 20px;
  border: 3px solid var(--orange);
  border-radius: 0;
  background: var(--orange);
  color: #fff;
  font-family: 'Lato', sans-serif;
  font-size: 28px;
  font-weight: 300;
  line-height: 22.75px;
  cursor: pointer;
  transition: background .2s, border-color .2s;
}
.btn-submit:hover { background: var(--jaune); border-color: var(--jaune); }
.form-intro h4 { margin: 0 0 25px; font-size: 25.2px; line-height: 63px; }

/* Bouton « Sélectionner une date » (comme l'original) */
.btn-cal {
  margin: -10px 0 0;
  padding: 1px 6px;
  border: 2px outset #000;
  background: #efefef;
  color: var(--texte);
  font-family: 'Lato', sans-serif;
  font-size: 14px;
  font-weight: 300;
  line-height: 22.75px;
  cursor: pointer;
}
.cal-picker { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; border: 0; padding: 0; }
.form-row { position: relative; }

/* Messages d'erreur (affichés par zoho-form-validation.js et zoho-form-config.js) */
.zf-errorMessage {
  display: none;
  margin: -14px 5px 0;
  font-size: 18px;
  font-weight: 700;
  color: #b00020;
}
#captcha_error { margin: 0 0 10px; }

/* Pot de miel : invisible pour les humains, rempli par les robots */
.formulaire__pot-de-miel {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Captcha Turnstile : ses 300px fixes sont réduits par paliers dans une colonne plus étroite */
.cf-turnstile {
  container-type: inline-size;
  margin: 0 5px 20px;
}
@container (max-width: 299px) {
  .cf-turnstile > div { transform: scale(.9); transform-origin: left top; }
}
@container (max-width: 269px) {
  .cf-turnstile > div { transform: scale(.8); }
}
@container (max-width: 239px) {
  .cf-turnstile > div { transform: scale(.75); }
}

/* Page Merci et page d'erreur du portier des formulaires (envoi.php) */
.merci,
.envoi-erreur {
  max-width: 800px;
  margin: 40px auto 60px;
  padding: 0 30px;
  font-size: 20px;
  line-height: 1.5;
  color: var(--texte-p);
}
.envoi-erreur h1 { color: var(--vert); }
.envoi-erreur a:not(.btn-submit) { color: var(--vert-lien); }
.merci .btn-submit,
.envoi-erreur .btn-submit { display: inline-block; text-decoration: none; }

/* Vidéo de fond derrière le formulaire (grand écran seulement) */
.video-bg { display: none; }
@media (min-width: 1025px) {
  .video-bg {
    display: block;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    overflow: hidden;
    z-index: -100;
  }
  .video-bg video {
    position: fixed;
    top: 54%; left: 50%;
    width: 162%; height: auto;
    transform: translate(-50%, -50%);
  }
}

/* ==========================================================================
   CONTACT
   ========================================================================== */
.contact-box {
  max-width: 1200px;
  margin: 20px auto;
  padding: 25px;
  border: 2px solid var(--gris);
}
.contact-box > div { display: flex; flex-direction: column; justify-content: center; }
.contact-box p { line-height: 31px; }
.contact-box .fa { font-size: 40px; vertical-align: middle; }
.contact-box a { margin: 0 10px; }
@media (min-width: 992px) {
  .contact-box > div { flex-direction: row; gap: 30px; }
  .contact-col { width: 50%; }
}

/* ==========================================================================
   TÉMOIGNAGES
   ========================================================================== */
.video-item { max-width: 800px; padding: 10px; }
.video-item h3 { margin: 20px 0 10px; }
.video-responsive {
  position: relative;
  height: 0;
  padding-bottom: 56.25%;
  overflow: hidden;
  margin-bottom: 20px;
}
.video-responsive iframe,
.video-responsive .yt-lite {
  position: absolute; top: 0; left: 0;
  width: 100%; height: 100%;
  border: 0;
}

/* Vignette YouTube cliquable (la vidéo se charge au clic) */
.yt-lite {
  display: block;
  background: #000 center / cover no-repeat;
  cursor: pointer;
  border: 0;
  padding: 0;
}
.yt-lite::after {
  content: "";
  position: absolute; top: 50%; left: 50%;
  width: 68px; height: 48px;
  margin: -24px 0 0 -34px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 68 48'%3E%3Cpath d='M66.5 7.7c-.8-2.9-3-5.2-5.9-6C55.3.3 34 .3 34 .3S12.7.3 7.4 1.7c-2.9.8-5.1 3.1-5.9 6C.1 13 .1 24 .1 24s0 11 1.4 16.3c.8 2.9 3 5.2 5.9 6C12.7 47.7 34 47.7 34 47.7s21.3 0 26.6-1.4c2.9-.8 5.1-3.1 5.9-6C67.9 35 67.9 24 67.9 24s0-11-1.4-16.3z' fill='%23f00'/%3E%3Cpath d='M45 24 27 14v20z' fill='%23fff'/%3E%3C/svg%3E") no-repeat center / contain;
  opacity: .85;
  transition: opacity .2s;
}
.yt-lite:hover::after { opacity: 1; }

/* ==========================================================================
   VIDÉOS
   ========================================================================== */
.videos-wrap { padding: 0 8px; }
.videos-intro {
  position: relative;
  margin: 5px 0 0;
  padding: 10px 25px 10px 10px;
  background: rgba(0, 0, 0, .05);
  border-radius: 5px;
  max-height: 170px;
  overflow: hidden;
}
.videos-intro-text {
  font-size: 20px;
  line-height: 22.75px;
  font-weight: 300;
  color: var(--texte);
}
.videos-intro-close {
  position: absolute; top: 4px; right: 4px;
  width: 20px; height: 20px;
  border: 0; border-radius: 50%;
  padding: 1px 6px;
  background: rgba(0, 0, 0, .1);
  color: var(--texte);
  font-family: 'Lato', sans-serif;
  font-size: 10.7px; line-height: 1;
  cursor: pointer;
}
.video-search { position: relative; width: fit-content; }
.video-search input {
  display: block;
  width: 309px;
  max-width: 100%;
  height: 45px;
  margin: 20px 0;
  padding: 0 25px 0 7px;
  border: 1px solid rgba(0, 0, 0, .27);
  border-bottom: 2px solid var(--vert);
  border-radius: 5px;
  background: transparent;
  font-family: 'Lato', sans-serif;
  font-size: 28px;
  font-weight: 300;
  color: var(--texte);
  -webkit-appearance: none;
  appearance: none;
}
.video-search input::-webkit-search-cancel-button { display: none; }
.video-search input:focus { outline: 0; }
.video-search .fa {
  position: absolute; right: 8px; top: 50%;
  transform: translateY(-50%);
  font-size: 12px; color: #aaa;
}
.playlist { margin-top: 50px; }
/* Comme le module d'origine : autant de colonnes de 196 px que la largeur en permet, espaces répartis */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, 196px);
  justify-content: space-between;
  gap: 30px 0;
  margin-bottom: 30px;
}
.video-card {
  display: block;
  width: 196px;
  margin: 0;
  text-align: left;
  color: rgba(0, 0, 0, .75);
}
.video-card .thumb {
  position: relative;
  display: block;
  height: 110px;
  border-radius: 5px;
  overflow: hidden;
  background: #000;
}
.video-card .thumb img {
  display: block;
  width: 196px; height: 147px;
  max-width: none;
  margin-top: -18.2px;
  transition: opacity .2s;
}
.video-card:hover .thumb img { opacity: .8; }
.video-card .duration {
  position: absolute; right: 5px; bottom: 5px;
  padding: 0 4px;
  background: rgba(0, 0, 0, .7);
  color: #fff;
  font-size: 11px;
  line-height: 14px;
  font-weight: 400;
}
.video-card .title {
  display: block;
  margin: 5px 0 0;
  font-family: 'Lato', sans-serif;
  font-size: 20px;
  line-height: 22.75px;
  font-weight: 700;
  color: var(--vert);
}
.video-card.is-hidden { display: none; }
.btn-more {
  display: block;
  margin: 10px auto;
  padding: 10px 20px;
  border: 3px solid var(--vert);
  border-radius: 0;
  background: #fff;
  font-family: 'Lato', sans-serif;
  font-size: 20px;
  line-height: 22.75px;
  font-weight: 700;
  color: #555;
  cursor: pointer;
}
.btn-more:hover { color: var(--vert); }
.btn-more[hidden] { display: none; }
/* Tablette (415 à 814 px) : aperçu à gauche, titre à droite ; mobile (414 px et moins) : titre dessous */
@media (max-width: 814px) {
  .video-grid { grid-template-columns: 1fr; row-gap: 10px; }
  .video-card { display: flex; align-items: flex-start; width: auto; }
  .video-card .thumb { flex: 0 0 196px; }
  .video-card .title { margin: 0 0 0 9px; }
}
@media (max-width: 414px) {
  .video-card { display: block; }
  .video-card .title { margin: 5px 0 0; }
  .video-card .thumb img { width: 100%; height: auto; position: absolute; top: 50%; left: 0; margin: 0; transform: translateY(-50%); }
}

/* Fenêtre du lecteur vidéo */
.video-modal {
  position: fixed; inset: 0;
  display: none;
  align-items: center; justify-content: center;
  background: rgba(0, 0, 0, .9);
  z-index: 100000;
  padding: 20px;
}
.video-modal.open { display: flex; }
.video-modal-inner { position: relative; width: 100%; max-width: 1000px; }
.video-modal-close {
  position: absolute; top: -40px; right: 0;
  border: 0; background: none;
  color: #fff; font-size: 16px; font-family: 'Lato', sans-serif;
  cursor: pointer;
}

/* ==========================================================================
   CRÉDITS
   ========================================================================== */
.credits-logo { width: 300px; margin: 24px 0 55px; float: left; }
.credits-line { clear: both; margin: 3em 0 2px; }
.credits-line h2 { margin: -19.6px 0 15px; }
.credits-line a { margin: 0 14px; }
.credit-v { float: left; width: 400px; max-width: calc(100% - 20px); margin: 10px; }
.credit-h { float: left; max-width: 800px; margin: 10px; }
.clearfix::after { content: ""; display: table; clear: both; }

/* ==========================================================================
   POLITIQUE DE CONFIDENTIALITÉ
   ========================================================================== */
.policy { padding: 30px; }
.policy h1 {
  margin: 20px 0 10px;
  padding: 40px;
  background: var(--vert);
  text-align: center;
  font-size: 36.4px;
}
@media (max-width: 800px) { .policy h1 { font-size: 28px; } }
@media (max-width: 480px) { .policy h1 { font-size: 21px; padding: 20px; } }
.policy p { font-size: 20px; }
.policy ul { list-style: circle; margin: 0 28px 28px; }
.policy li, .policy a { font-size: 20px; }
.policy li { color: var(--texte); }
.policy a { margin: 0 10px; }
.policy h2 {
  margin: 0 0 25px;
  font-size: 25.2px;
  font-weight: 400;
  line-height: 63px;
  text-transform: uppercase;
  word-spacing: .1em;
  color: var(--vert-pale);
  scroll-margin-top: 20px;
}
@media (max-width: 600px) { .policy h2 { line-height: 1.4; margin-top: 20px; } }
.policy h3 {
  margin: 25px 0 10px;
  padding-bottom: 0;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.3;
}
.policy .btn-submit { display: inline-block; margin: 0; font-size: 28px; color: #fff; text-decoration: none; }

/* ==========================================================================
   PLAN DU SITE
   ========================================================================== */
.sitemap { padding: 0 15px 30px; }
.sitemap h1 { color: #fff; margin: 20px 0 10px; font-size: 36.4px; }
.sitemap-columns { display: flex; flex-wrap: wrap; align-items: flex-start; }
.sitemap-tree {
  width: 254px;
  margin: 0 6px 10px 0;
  padding: 0;
  list-style: none;
  font-size: 12px;
}
.sitemap-tree li { padding: 0 0 0 10px; line-height: 30px; position: relative; color: var(--texte); }
.sitemap-tree > li { padding-left: 0; }
.sitemap-tree ul { list-style: none; margin: 0; padding: 0 0 0 0; }
.sitemap-tree ul li { border-left: 1px solid #ccc; padding: 12px 0 12px 12px; }
.sitemap-tree ul li:last-child { border-left-color: transparent; }
.sitemap-tree ul li::before {
  content: ""; position: absolute; left: -1px; top: 0;
  width: 10px; height: 27px;
  border-left: 1px solid #ccc; border-bottom: 1px solid #ccc;
}
.sitemap-folder {
  display: block;
  margin-left: 12px;
  padding: 5px 10px;
  border: 2px solid #943b00;
  background: #f60;
  color: #fff;
  font-size: 12px;
  line-height: 16px;
  text-align: center;
}
.sitemap-folder.empty { visibility: hidden; height: 0; padding: 0; border: 0; }
.sitemap-tree a,
.sitemap-tree .label {
  display: block;
  margin: 0 0 0 6px;
  padding: 5px 10px;
  border: 2px solid #6e6e6e;
  background: #ebebeb;
  color: #505050;
  font-size: 12px;
  line-height: 16px;
  font-weight: 400;
}
.sitemap-tree a:hover { background: #fff; color: var(--vert-lien); }

/* ==========================================================================
   PIED DE PAGE
   ========================================================================== */
.site-footer {
  position: relative;
  min-height: 110px;
  background: #f7f7f7;
  padding: 15px 0 5px;
  overflow: hidden;
}
.footer-links {
  margin: 0 0 10px;
  text-align: center;
  font-size: 11.2px;
  font-weight: 300;
  line-height: 11.76px;
  color: #000;
}
.footer-links a { margin: 0 5.6px; }
/* « | » devant « Gérer les témoins » : quand le lien passe à la ligne (main.js), il devient un retour à la ligne invisible. */
.footer-sep.coupure { display: block; height: 0; overflow: hidden; }
.footer-copyright {
  clear: both;
  margin: 0 0 0 10px;
  padding-right: 10px;
  font-size: 15px;
  text-align: center;
}
.footer-logo { display: block; width: 116px; margin: 7px auto 0; line-height: 0; }
.footer-logo:hover { opacity: .5; }
@media (max-width: 374px) { .site-footer { min-height: 129px; } }

/* Utilitaires */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap;
}
