/*
Theme Name: LDB
Theme URI: https://www.lycee-du-bois.com/
Author: Yamina JOUILLE
Author URI: https://www.lycee-du-bois.com/
Description: Thème WordPress léger et 100% blocs (Full Site Editing) pour site vitrine LDB
Version: 1.0
Requires at least: 6.5
Tested up to: 6.5
Requires PHP: 7.4
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ldb
Tags: custom-logo, one-column, block-patterns
*/

/* RESET DE BASE POUR UNE MISE À NIVEAU COHÉRENTE */
html,
body,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
dl,
dd,
ol,
ul,
figure,
hr,
fieldset,
legend,
input,
textarea,
select,
button {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

ul,
ol {
  list-style: none;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Inter Regular */
@font-face {
  font-family: 'Inter';
  src: url('assets/fonts/Inter/Inter-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* Inter SemiBold */
@font-face {
  font-family: 'Inter';
  src: url('assets/fonts/Inter/Inter-SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --color-primary-green: #28AD97;
  --color-primary-brown: #A76A31;
  --color-primary-brown-dark: #71421a;
  --color-orange: #ba4425;
  --color-dark-grey: #313131;
  --color-white: #fff;

  --color-primary-green-light: #3BC5AC;
  --color-primary-green-extra-light: #28ad970a;
  --color-primary-brown-light: #B8875A;
  --color-grey: #8D8D8D;
  --color-light-grey: #BCBCBC;
  --color-extra-light-grey: #bcbcbc29;
  --color-border: #dddddd;
  --color-red: #dc3545;
  --color-light-red: #f8d7da;
  --color-warning: #fb7404;
  --color-light-warning: #f9d5b869;
  --color-green: #198754;
  --color-light-green: #d4edda;
  --bg-soft-gradient: linear-gradient(to right, rgb(184 135 90 / 19%), rgb(184 135 90 / 8%));
  --bg-soft-gradient-reverse: linear-gradient(to left, rgb(184 135 90 / 19%), rgb(184 135 90 / 8%));
  --color-less-gradient: rgb(184 135 90 / 8%);
  --soft-box-shadow: -1px -2px 18px 2px rgba(0, 0, 0, 0.08);
  --badge-bac-pro: var(--color-primary-brown);
  --badge-bts: var(--color-primary-green);
  --badge-licence-pro: var(--color-orange);
}

/* Référence :
   XS : max-width: 480px;
   SM : max-width: 600px;
   MD : max-width: 768px;
   LG : max-width: 992px;
   XL : max-width: 1200px;
*/

html,
body {
  min-height: 100%;
}

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

/* Corps et texte global */
body,
input,
textarea,
select,
button {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.5;
}

body,
body * {
  color: color: var(--color-dark-grey);
}

body *::before,
body *::after {
  color: color: var(--color-dark-grey);
}

/* Titres */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 600;
}

textarea {
  font-family: inherit;
}

/* Gestion de la barre d'administration WordPress */
body.admin-bar .site-header {
  top: 32px;
}

@media screen and (max-width: 768px) {
  body.admin-bar .site-header {
    top: 46px;
  }
}

/* Supprime toute règle de sticky sur #wpadminbar */
#wpadminbar {
  position: fixed !important;
  z-index: 9999;
}

/* le masquer visuellement à l’écran un élement (label, legend, h1...) en le gardant accessible aux lecteurs */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/***** Fil d'ariane ****/
.breadcrumbs-container {
  position: absolute;
  z-index: 10;
  font-size: 0.9rem;
  background: rgba(0, 0, 0, 0.4);
  padding: 6px 15px;
  display: inline-block;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  /* Support Safari */
}

#breadcrumbs {
  display: inline-block;
  color: var(--color-white);
  margin: 0;
}

#breadcrumbs a {
  color: var(--color-white);
  text-decoration: underline;
  display: inline-block;
  transition: transform 0.2s ease;
}

#breadcrumbs a:hover {
  transform: translateX(4px);
}

#breadcrumbs i {
  font-size: 0.8rem;
  margin: 0 6px;
  color: var(--color-white);
}

@media (max-width: 768px) {
  .breadcrumbs-container {
    display: none;
  }
}

/***** Boutons *****/
/* Botoun scrollen haut de la page */
.scroll-top-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: var(--color-primary-brown);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  cursor: pointer;
  border: none;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 9999;
}

.scroll-top-btn.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.scroll-top-btn:hover {
  transform: scale(1.1);
}

/* En mobile le bouton moins opaque */
@media (max-width: 768px) {
  .scroll-top-btn.visible {
    opacity: 0.8;
  }
}

/* Navigation par tabulation */
button:focus,
.btn:focus,
.btn-with-icon:focus,
a:focus,
a.btn:focus {
  outline: 1px solid var(--color-dark-grey);
}

button:focus:not(:focus-visible),
a:focus:not(:focus-visible) {
  outline: none;
}

.btn,
.page-standard-template .wp-block-button__link {
  color: var(--color-white);
  background-color: var(--color-primary-green);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.5rem;
  line-height: 1.1;
  padding: 0.5em 1em;
  border: none;
  font-size: 1rem;
  font-weight: 500;
  border-radius: 999px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.4s cubic-bezier(0.33, 1, 0.68, 1);
  cursor: pointer;
  text-align: center;
  white-space: nowrap;
}

.btn:hover,
.page-standard-template .wp-block-button__link {
  transform: translateX(4px);
}

.btn-with-icon {
  gap: 0.5em;
}

.btn-with-icon i {
  font-size: 1rem;
  vertical-align: middle;
  font-size: 1rem;
}

.btn-with-icon .icon-btn {
  font-size: 1em;
}

.btn-group-center {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: auto;
  /* pousse vers le bas */
  padding-top: 1rem;
  width: 100%;
}

.btn-outline {
  background-color: transparent;
}

/***** Listes ****/

/***** Radio group ****/
.radio-group {
  margin-top: 1rem;
  margin-bottom: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  border: none;
}

.radio-group-title {
  all: unset;
  color: var(--color-dark-grey);
  display: block;
  font-weight: 600;
  text-align: start;
  margin-top: 0.9rem;
  margin-bottom: 0.5rem;
}

.radio-option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
  position: relative;
  cursor: pointer;
}

.radio-option input[type="radio"] {
  appearance: none;
  -webkit-appearance: none;
  width: 17px;
  height: 17px;
  border: 1px solid var(--color-dark-grey);
  border-radius: 50%;
  position: relative;
  cursor: pointer;
  outline: none;
}

.radio-option input[type="radio"]::before {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  width: 7px;
  height: 7px;
  background-color: var(--color-primary-green);
  border-radius: 50%;
  transform: scale(0);
  transition: transform 0.15s ease-in-out;
}

.radio-option input[type="radio"]:checked::before {
  transform: scale(1);
}

/***** checkbox group *****/
.checkbox-group {
  border: none;
  padding: 1rem 0;
}

.checkbox-group-title {
  color: var(--color-dark-grey);
  display: block;
  font-weight: 600;
  text-align: start;
  margin-bottom: 0.8rem;
}

/* Conteneur de chaque case */
.checkbox-option {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.8rem;
  font-size: 1rem;
  position: relative;
  cursor: pointer;
  margin-bottom: 0.8rem;
}

/* Case à cocher personnalisée */
.checkbox-option input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 17px;
  height: 17px;
  border: 1px solid var(--color-dark-grey);
  border-radius: 4px;
  position: relative;
  cursor: pointer;
  outline: none;
  transition: background-color 0.2s ease;
}

/* Icône FA comme encoche */
.checkbox-option input[type="checkbox"]::before {
  content: "\f00c";
  /* Unicode de fa-check */
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-size: 14px;
  color: var(--color-orange);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  transition: transform 0.15s ease-in-out;
  pointer-events: none;
}

/* Affiche l’icône quand checked */
.checkbox-option input[type="checkbox"]:checked::before {
  transform: translate(-50%, -50%) scale(1);
}

/* Par défaut (desktop) : input sur la même ligne */
.checkbox-option input[type="text"] {
  display: inline-block;
  vertical-align: middle;
  margin-left: 0.5rem;
  max-width: 450px;
}

/* Sur mobile/tablette : input revient à la ligne */
@media (max-width: 768px) {
  .checkbox-option input[type="text"] {
    display: block;
    margin-left: 0;
    margin-top: 0.3rem;
    width: 100%;
  }
}

/***** Conteneur global *****/
.global-container {
  max-width: 1200px;
  margin: 0 auto;
  padding-bottom: 2rem;
}

/***** Sections *****/
.section {
  background-color: var(--color-extra-light-grey);
  text-align: center;
}

@media (max-width: 768px) {
  .section {
    padding: 0 15px;
  }
}

.section:nth-of-type(even) {
  background-color: var(--color-white);
}

.section h1 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  padding-bottom: 20px;
  color: var(--color-dark);
  border-bottom: 1px solid var(--color-border);
}

.section p {
  max-width: 700px;
  margin: 0 auto;
  font-size: 1.1rem;
  color: var(--color-dark-grey);
}

.section .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2.5rem 0;
}

h3 {
  margin-bottom: 15px;
}

/***** Styles génériques pour tous les formulaires *****/
form {
  position: relative;
}

.form-row {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.form-group {
  flex: 1;
  min-width: 200px;
}

.form-label {
  color: var(--color-dark-grey);
  display: block;
  font-weight: 600;
  text-align: start;
  margin-top: 0.9rem;
  margin-bottom: 0.5rem;
}

.form-input,
textarea,
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"] {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus,
textarea:focus,
input.form-input:focus,
textarea.form-input:focus,
.wpcf7 input:focus,
.wpcf7 textarea:focus {
  border: 1px solid var(--color-primary-green);
  background-color: var(--color-primary-green-extra-light);
  outline: none;
  box-shadow: 0 0 4px var(--color-primary-green-extra-light);
}

.required {
  color: var(--color-red);
}

.btn-submit {
  background-color: var(--color-orange);
  color: var(--color-dark-grey);
  margin-top: 0.3rem;
}

.btn-icon {
  padding: 0;
}

.nota-bene {
  color: var(--color-red);
  font-size: 0.8rem;
  margin: 10px 0;
}

/***** Messages d'alerte réutilisables *****/
.alert {
  padding: 12px 16px;
  border-radius: 4px;
  margin: 0;
  font-size: 1rem;
  font-weight: 500;
  max-width: 600px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.alert.success {
  background-color: var(--color-light-green);
  color: var(--color-green);
  animation: slideIn 0.6s ease-out forwards;
}

.alert.error {
  background-color: var(--color-light-red);
  color: var(--color-red);
  animation: slideIn 0.6s ease-out forwards;
}

/**** Animations ****/
@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideOut {
  from {
    opacity: 1;
    transform: translateX(0);
  }

  to {
    opacity: 0;
    transform: translateX(30px);
  }
}

/* Animation pulse sur bouton */
@keyframes pulse {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.02);
  }
}

p.warning {
  background-color: var(--color-warning);
  color: var(--color-dark-grey);
  border: 1px solid var(--color-warning);
  padding: 0.75rem 1rem;
  border-radius: 4px;
  font-size: 1rem;
  margin-top: 1.5rem;
  line-height: 1.5;

  i {
    color: var(--color-dark-orange);
  }
}

/* Suppressions marges et padding des conteneurs Gutumberg ou Spectra */
.wp-block-uagb-container,
.uagb-container-inner-blocks-wrap {
  padding: 0;
  margin: 0;
}

/* ====================================
   Page standard avec bannière
======================================= */
/* Bannière par défaut (fond couleur) */
.std-banner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 150px;
  text-align: center;
  color: var(--color-white);
}

/* Seulement quand il y a une image */
.std-banner[style*="background-image"] {
  height: 360px;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: var(--bg-x, 50%) var(--bg-y, 65%);
}

.std-banner[style*="background-image"]::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.15);
  z-index: 1;
}

/* Contenu au-dessus de l'overlay */
.std-banner>* {
  position: relative;
  z-index: 2;
}

/* Titre de la bannière */
.std-banner-title {
  font-size: 2.2rem;
  margin: 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Titre plus visible uniquement sur bannière avec image */
.std-banner[style*="background-image"] .std-banner-title {
  font-size: 2.8rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-shadow:
    0 2px 6px rgba(0, 0, 0, 0.45),
    0 0 1px rgba(0, 0, 0, 0.6);
}


/* Contenu principal avec cadre et centrage */
.std-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 30px 25px;
  line-height: 1.7;
}

/* Typographie globale dans le contenu */
.page-standard-template .std-content h2,
.page-standard-template .std-content h3,
.page-standard-template .std-content h4 {
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 600;
  margin: 0.5rem 0;
}

.page-standard-template .std-content h1 {
  font-size: 2rem;
}

.page-standard-template .std-content h2 {
  font-size: 1.6rem;
  color: var(--color-primary-green);
}

.page-standard-template .std-content h3 {
  font-size: 1.3rem;
  color: var(--color-dark-grey);
  font-style: italic;
}

.page-standard-template .std-content h4 {
  font-size: 1.1rem;
  color: var(--color-dark-grey);
}

.page-standard-template .std-content p {
  color: var(--color-dark-grey);
  margin-bottom: 1.5rem;
  font-size: 1rem;
}

.page-standard-template .std-content ul,
.page-standard-template .std-content ol {
  color: var(--color-dark-grey);
  margin: 1rem 0 1.5rem 2rem;
  line-height: 1.6;
}

.page-standard-template .std-content li {
  list-style: none;
  position: relative;
  margin-bottom: 0.5rem;
  padding-left: 1.5rem;
}

.page-standard-template .std-content li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 0.5em;
  height: 0.5em;
  background-color: var(--color-primary-green);
  border-radius: 50%;
}

.page-standard-template .std-content ol li {
  margin-bottom: 0.5rem;
  padding-left: 0.5rem;
}

/* Lien standard excluant boutons et items list */
.page-standard-template a:not(.wp-block-button__link):not(.wp-block-uagb-icon-list-child a):not(.btn) {
  color: var(--color-primary-green);
  text-decoration: none;
  position: relative;
  display: inline-block;
}

.page-standard-template a:not(.wp-block-button__link):not(.wp-block-uagb-icon-list-child a):not(.btn)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 2px;
  width: 100%;
  height: 1px;
  background-color: var(--color-primary-green);
  transform: translateX(0);
  transition: transform 0.25s ease;
}

.page-standard-template a:not(.wp-block-button__link):not(.wp-block-uagb-icon-list-child a):not(.btn):hover::after {
  transform: translateX(4px);
}

.page-standard-template .infos-box {
  background: var(--color-white);
  border-left: 4px solid var(--color-primary-green);
  border-radius: 8px;
  padding: 2rem 2.5rem;
  margin: 2rem 0 !important;
  width: auto !important;
  max-width: 750px;
  box-shadow: var(--soft-box-shadow);
}

/* Bouton retour sur page standard */
.std-footer-return {
  text-align: left;
  margin: 3rem 0 3rem 4rem;
}

.std-footer-return i {
  font-size: 1.5rem;
}

.std-btn-back {
  font-size: 1.5rem;
  background: var(--color-primary-green);
  padding: 20px 50px;
  transition: transform 0.2s ease, background 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 50px;
  color: var(--color-white);
  text-decoration: none;
  font-weight: 600;
}

.std-btn-back:hover {
  transform: translateX(-5px);
}

/* ============================================================
   Galerie spécifique – Page standard
============================================================ */
.page-standard-template-galery.wp-block-gallery {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.page-standard-template-galery.wp-block-gallery>.wp-block-image {
  width: 100% !important;
  margin: 0 !important;
  padding: 0 8px 8px;
  box-sizing: border-box;
  position: relative;
  overflow: hidden;
  height: fit-content;
}

.page-standard-template-galery.wp-block-gallery>.wp-block-image picture {
  display: block;
  width: 100%;
  height: 300px;
  overflow: hidden;
  border-radius: 8px;
}

.page-standard-template-galery.wp-block-gallery>.wp-block-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 8px;
  display: block;
  transition: transform 0.3s ease;
}

.page-standard-template-galery.wp-block-gallery>.wp-block-image img:hover {
  transform: scale(1.03);
}

.page-standard-template-galery.wp-block-gallery>.wp-block-image::before {
  content: none !important;
  background: none !important;
  filter: none !important;
}

.page-standard-template-galery.wp-block-gallery>.wp-block-image>.wp-element-caption {
  text-align: center;
  background: none;
  font-size: 0.9rem;
  color: var(--color-dark-grey);
  font-style: italic;
  margin-top: 8px;
  line-height: 1.4;
  display: block;
  width: 100%;
  position: relative;
}

/* Lightbox */
.lightbox-image-container img {
  object-fit: contain !important;
}

@media (max-width: 1024px) {
  .page-standard-template-galery.wp-block-gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .page-standard-template-galery.wp-block-gallery {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1024px) {
  .std-banner {
    height: 110px;
  }

  .std-banner[style*="background-image"] {
    height: 260px;
  }

  .std-banner-title {
    font-size: 2rem;
  }

  .std-content {
    padding: 25px 20px;
  }

  .std-footer-return {
    margin: 2rem 0 2rem 2rem;
  }

  .std-btn-back {
    font-size: 1.2rem;
    padding: 15px 35px;
  }

  .std-footer-return i {
    font-size: 1.2rem;
  }
}

@media (max-width: 768px) {
  .std-banner {
    height: 90px;
  }

  .std-banner[style*="background-image"] {
    height: 200px;
    background-position: center 35%;
  }

  .std-banner-title {
    font-size: 1.5rem;
    line-height: 1.2;
    font-weight: 500;
    padding: 0 1rem;
  }

  .std-content {
    padding: 20px 20px;
  }

  .page-standard-template .std-content h2 {
    font-size: 1.5rem;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
  }

  .page-standard-template .std-content h3 {
    font-size: 1.25rem;
    margin-top: 1.25rem;
    margin-bottom: 0.5rem;
  }

  .page-standard-template .std-content h4 {
    font-size: 1.1rem;
  }

  .page-standard-template .std-content p {
    font-size: 1.05rem;
    line-height: 1.65;
    margin-bottom: 1.25rem;
  }

  .page-standard-template .std-content ul,
  .page-standard-template .std-content ol {
    font-size: 1.05rem;
    margin-left: 1.5rem;
    line-height: 1.7;
  }

  .page-standard-template .std-content li {
    padding-left: 1.25rem;
    margin-bottom: 0.6rem;
  }

  .page-standard-template .infos-box {
    padding: 1.5rem 1.25rem;
    margin: 1.5rem 0 !important;
  }

  .std-footer-return {
    margin: 1.5rem 0 1.5rem 1.5rem;
  }

  .std-btn-back {
    font-size: 1rem;
    padding: 10px 25px;
  }

  .std-footer-return i {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .std-banner {
    height: 80px;
  }

  .std-banner[style*="background-image"] {
    height: 180px;
  }

  .std-banner-title {
    font-size: 1.3rem;
    padding: 0 0.75rem;
  }

  .std-content {
    padding: 1.5rem;
  }

  .page-standard-template .std-content h2 {
    font-size: 1.5rem;
  }

  .page-standard-template .std-content h3 {
    font-size: 1.3rem;
  }

  .page-standard-template .std-content p,
  .page-standard-template .std-content ul,
  .page-standard-template .std-content ol {
    font-size: 1.1rem;
  }

  .page-standard-template .infos-box {
    padding: 1.25rem 1rem;
  }

  .std-btn-back {
    font-size: 0.95rem;
    padding: 10px 20px;
  }

  .std-footer-return {
    margin: 1.5rem 0 1.5rem 1rem;
  }

  .std-footer-return i {
    font-size: 0.95rem;
  }
}

/* PDF intégré - Template standard */
.page-pdf-section {
  margin-top: 50px;
  padding: 10px;
}

.page-pdf-section h2.page-pdf-title {
  margin-bottom: 20px;
  color: var(--color-primary-brown);
}

.page-pdf-viewer {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.pdf-viewer {
  width: 100%;
  height: 80vh;
  border: none;
}

.page-pdf-download {
  text-align: center;
  margin-top: 20px;
}

.page-pdf-download a {
  background-color: var(--color-primary-brown);
}

/* ============================================================
   Fin style Page standard avec bannière
============================================================ */

/* ============================================================
   FRONT PAGE : HEADER
============================================================ */
.site-header {
  width: 100%;
  position: sticky;
  top: 0;
  z-index: 1000;
}

/* Top-bar responsive (desktop, tablette, mobile) */
.top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 4rem;
  background: var(--color-white);
}

.top-bar-left {
  flex: 0 0 auto;
}

.top-bar-center {
  flex: 1 1 auto;
  display: flex;
  justify-content: center;
  padding: 0 1rem;
}

.top-bar-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex: 0 0 auto;
}

.search-form {
  display: flex;
  align-items: center;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  overflow: hidden;
  width: 100%;
  max-width: 400px;
  background: var(--color-white);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-form:focus-within {
  border-color: var(--color-primary-green);
  box-shadow: 0 0 0 2px var(--color-primary-green-extra-light);
}

.search-form .search-field {
  flex: 1;
  padding: 0.5rem 0 0.5rem 0.75rem;
  border: none;
  outline: none;
  font-size: 0.9rem;
}

.search-form .search-submit {
  background: none;
  border: none;
  padding: 0.5rem 0.75rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-form .search-submit i {
  color: var(--color-primary-green);
  font-size: 1.1rem;
  transition: color 0.2s ease;
}

/* Boutons top-bar-right */
.btn-contact {
  background-color: var(--color-primary-brown);
  color: var(--color-white);
}

.btn-pronote {
  background-color: var(--color-primary-green);
  color: var(--color-white);
}

.btn-cdi {
  background-color: var(--color-orange);
  color: var(--color-white);
  padding: 0.5em 1.5em;
}

.btn-contact:hover,
.btn-pronote:hover,
.btn-cdi:hover {
  opacity: 0.9;
}

.burger {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  color: var(--color-primary-brown);
}

/* Responsive */
@media (min-width: 769px) and (max-width: 1024px) {
  .top-bar {
    padding: 0.5rem 2rem;
  }

  .top-bar-center {
    padding: 0 0.5rem;
  }

  .search-form {
    max-width: 250px;
  }

  .top-bar-right {
    gap: 0.75rem;
    flex-wrap: wrap;
  }

  .top-bar-right a {
    flex: 1 1 auto;
    min-width: 80px;
    text-align: center;
  }
}

@media (max-width: 768px) {
  .burger {
    display: block;
    position: absolute;
    top: 50%;
    right: 1rem;
    transform: translateY(-50%);
    z-index: 10;
  }

  .top-bar {
    padding: 0.5rem 1rem;
    flex-wrap: nowrap;
    position: relative;
  }

  .top-bar-left,
  .top-bar-center {
    width: auto;
  }

  .top-bar-center {
    flex: 1 1 auto;
    justify-content: center;
    padding: 0;
  }

  .top-bar-right {
    display: none;
  }

  .search-form {
    max-width: 100%;
  }
}

/* ============================================================
NAVIGATION BAR
============================================================ */
.nav-bar {
  background: var(--color-primary-green);
  width: 100%;
  position: relative;
  overflow: visible;
}

.nav-bar .main-menu {
  display: flex;
  align-items: stretch;
  list-style: none;
  margin: 0;
  padding: 0 4rem;
  gap: 0;
}

.nav-bar .main-menu>li {
  display: flex;
  align-items: center;
}

/* Liens principaux */
.nav-bar .main-menu>li>a {
  color: var(--color-white);
  text-decoration: none;
  font-size: 1.1rem;
  text-transform: uppercase;
  font-weight: 500;
  transition: color 0.2s;
  padding: 1.5rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  box-shadow: inset 0 -3px 0 transparent;
}

/* Items avec sous-menu */
.menu-item-has-children {
  position: relative;
}

.menu-item-has-children>a {
  display: flex;
  align-items: center;
}

/* Flèche */
.arrow {
  font-size: 1.2em;
  margin-left: 0;
  line-height: 1;
}

/* ============================================================
   SOUS-MENU DROPDOWN - Desktop
============================================================ */
.submenu-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 250px;
  width: max-content;
  background: var(--color-white);
  border-bottom: 3px solid var(--color-primary-green);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  z-index: 100;
}

.menu-item-has-children:hover>.submenu-dropdown,
.menu-item-has-children:focus-within>.submenu-dropdown {
  display: block;
}

.submenu {
  list-style: none;
  padding: 0;
  margin: 0;
}

.submenu li a {
  position: relative;
  overflow: hidden;
  padding: 0.75rem 1.5rem;
  display: block;
  color: var(--color-dark-grey);
  border-bottom: 1px solid var(--color-border);
  transition: color 0.25s ease;
}

.submenu li:last-child a {
  border-bottom: none;
  padding-bottom: calc(0.75rem + 1px);
}

.submenu li a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--color-primary-green);
  transition: width 0.25s ease;
}

.submenu li a:hover {
  color: var(--color-primary-green);
}

.submenu li a:hover::after {
  width: 100%;
}

@media (max-width: 1600px) {
  .nav-bar .main-menu>li>a {
    font-size: 1rem;
  }
}

/* ============================================================
   MENU MOBILE
============================================================ */
.mobile-menu {
  display: none !important;
  flex-direction: column;
  padding: 1rem;
  background: var(--color-white);
  position: fixed;
  top: 0;
  right: 0;
  width: 90%;
  max-width: 320px;
  height: 100%;
  z-index: 2000;
  box-shadow: -2px 0 8px rgba(0, 0, 0, 0.2);
  overflow-y: auto;
}

.mobile-menu.open {
  display: flex !important;
}

.menu-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1500;
}

.menu-overlay.open {
  display: block;
}

/* Bouton fermer menu */
.close-menu {
  align-self: flex-end;
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  color: var(--color-primary-brown);
  padding: 0.5rem 0;
  margin-bottom: 1rem;
}

/* Liste menu mobile */
.mobile-main-menu {
  list-style: none;
  padding: 0;
  margin: 0;
  flex: 1;
}

.mobile-menu-item {
  font-size: 1.2rem;
  border-bottom: 1px solid var(--color-border);
}

.mobile-menu-item>a {
  display: block;
  padding: 1rem 0;
  text-decoration: none;
  color: var(--color-dark-grey);
  font-weight: 500;
}

/* Accordéon mobile */
.mobile-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.mobile-menu-header a {
  font-weight: 500;
  flex: 1;
  padding: 1rem 0;
  text-decoration: none;
  color: var(--color-dark-grey);
}

.submenu-toggle {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem 1rem;
  color: var(--color-primary-green);
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.toggle-icon {
  display: inline-block;
  transition: transform 0.3s ease;
}

.mobile-menu-item.open .toggle-icon {
  transform: rotate(45deg);
}

/* Sous-menu mobile */
.mobile-submenu {
  list-style: none;
  padding: 0;
  margin: 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

/* Quand un item mobile avec sous-menu est ouvert */
.mobile-menu-item.open {
  border-bottom: 1px solid var(--color-primary-green);
}

/* Et on peut recolorer le lien lui-même pour cohérence */
.mobile-menu-item.open>.mobile-menu-header a {
  color: var(--color-primary-green);
}

.mobile-menu-item.open .mobile-submenu {
  max-height: 1000px;
  padding: 0.5rem 0;
}

.mobile-submenu li a {
  display: block;
  padding: 0.75rem 1.5rem;
  text-decoration: none;
  color: var(--color-dark-grey);
  font-size: 0.95rem;
}

.mobile-submenu li a:active {
  color: var(--color-primary-green);
  background: rgba(0, 0, 0, 0.05);
}

@media (max-width: 768px) {
  .top-bar {
    padding: 0.5rem 1rem;
  }

  .top-bar-center,
  .top-bar-right {
    display: none !important;
  }

  .burger {
    display: block;
  }

  /* Masquer complètement la nav-bar en mobile */
  .nav-bar {
    display: none !important;
  }

  /* Formulaire de recherche mobile */
  .mobile-menu .search-form {
    min-height: 44px !important;
    margin-bottom: 1.5rem;
    max-width: 100%;
  }

  /* Boutons mobile */
  .mobile-menu .btn-pronote,
  .mobile-menu .btn-contact,
  .mobile-menu .btn-cdi {
    margin-top: 1rem;
  }

}

/* Tablet adjustments */
@media (max-width: 1024px) {
  .top-bar {
    padding: 0.5rem 2rem;
  }

  .nav-bar .main-menu {
    padding: 0 2rem;
  }
}

/* =============================
  FRONT PAGE : HERO SLIDER
============================= */
.hero-slider {
  position: relative;
  width: 100%;
  height: 100vh;
  /* plein écran */
  overflow: hidden;
}

.hero-slider-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

/* texte centré */
.hero-slide-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  max-width: 800px;
  width: 90%;
  color: var(--color-white);
  z-index: 2;
}

.hero-slide::before {
  /* overlay sombre */
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* background: rgba(0, 0, 0, 0.25); */
  background: linear-gradient(rgba(0, 0, 0, 0.25),
      rgba(0, 0, 0, 0.1));
  z-index: 1;
}

.hero-slide::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 30%;
  background: linear-gradient(to top,
      rgba(0, 0, 0, 0.25),
      transparent);
  z-index: 1;
}


.hero-slide-content {
  position: absolute;
  top: 50%;
  left: 10%;
  transform: translateY(-50%);
  text-align: left;
  max-width: 700px;
  width: 90%;
  color: var(--color-white);
  z-index: 2;

  /* AJOUT */
  background: rgba(0, 0, 0, 0.5);
  padding: 32px 36px;
  border-radius: 8px;
  backdrop-filter: blur(2px);
  /* optionnel mais très propre */
}

.hero-slide-content h2 {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.1;
  color: var(--color-white);
  margin-bottom: 1.2rem;
  position: relative;
}

/* petit accent visuel sous le titre */
.hero-slide-content h2::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background: var(--color-primary-green);
  margin-top: 0.8rem;
  border-radius: 2px;
}

.hero-slide-content p {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2rem;
  max-width: 480px;
  line-height: 1.6;
}

/* responsive */
@media (max-width: 768px) {
  .hero-slide-content {
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    padding: 0 20px;
  }

  .hero-slide-content h2 {
    font-size: 2rem;
  }

  .hero-slide-content h2::after {
    margin: 0.8rem auto 0;
  }

  .hero-slide-content p {
    font-size: 1rem;
    margin: 1rem auto 2rem;
  }
}


.hero-slide .btn {
  background: transparent;
  border: 1px solid var(--color-border);
  font-size: 1.2rem;

  margin-top: 0.5rem;
}

.hero-slide .btn:hover {
  background: var(--color-primary-green);
  border: 1px solid var(--color-primary-green);

}

.hero-slide-content h2,
.hero-slide-content p,
.hero-slide-content .btn {
  opacity: 0;
  transform: translateY(20px);
  animation: heroFadeUp 0.8s ease forwards;
}

.hero-slide-content p {
  animation-delay: 0.2s;
}

.hero-slide-content .btn {
  animation-delay: 0.4s;
}

@keyframes heroFadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* contrôles navigation */
.hero-slider-controls {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
  padding: 0 20px;
  z-index: 3;
}

.hero-slider-controls button {
  background: rgba(0, 0, 0, 0.5);
  color: var(--color-white);
  border: none;
  font-size: 2rem;
  width: 50px;
  /* largeur fixe */
  height: 50px;
  /* hauteur fixe */
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 50%;
  /* vrai rond */
  transition: background 0.3s;
}

.hero-slider-controls button:hover {
  background: rgba(0, 0, 0, 0.8);
}

/* responsive */
@media (max-width: 768px) {
  .hero-slide h2 {
    font-size: 2rem;
  }

  .hero-slide p {
    font-size: 1rem;
  }
}

/* ========================================================================
FRONT PAGE : SECTION COMBINÉE (Agenda + Au fil du bois) + Actualités
========================================================================= */
.home-news-agenda {
  padding: 3rem 4rem;
  background: var(--color-extra-light-grey);
}

.home-news-grid {
  display: grid;
  grid-template-columns: 1fr 3fr;
  gap: 2rem;
}

/* Colonne Agenda */
.home-agenda-column {
  background: var(--color-white);
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.home-agenda-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  gap: 1rem;
  flex-wrap: wrap;
}

.home-agenda-header .section-title {
  font-size: 1.75rem;
  margin: 0;
  color: var(--color-dark-grey);
}

.agenda-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.agenda-item {
  display: flex;
  gap: 1rem;
  background: var(--color-extra-light-grey);
  border-radius: 8px;
  padding: 0.75rem;
  transition: transform 0.25s ease;
}

.agenda-item:hover {
  transform: translateX(4px);
}

.agenda-badge {
  background: var(--color-orange);
  color: var(--color-white);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
}

.agenda-badge .badge-day {
  font-size: 1.3rem;
  line-height: 1;
}

.agenda-badge .badge-month {
  font-size: 0.75rem;
  text-transform: uppercase;
  opacity: 0.9;
}

.agenda-content {
  flex: 1;
}

.agenda-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-dark-grey);
  margin: 0 0 0.5rem;
}

.agenda-lieu {
  font-size: 0.85rem;
  color: var(--color-orange);
  margin: 0 0 0.5rem;
}

.agenda-horaire {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--color-orange);
}

.agenda-content .btn-see-event {
  background: var(--color-orange);
  color: var(--color-white);
  padding: 0.4rem 1rem;
  font-size: 0.8rem;
  white-space: nowrap;
}

.see-all-events {
  border: 1px solid var(--color-orange);
  color: var(--color-orange);
}

/* Encart Au fil du bois */
.afdb-home-wrapper {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border);
}

.afdb-home-card {
  background: var(--color-extra-light-grey);
  border-radius: 8px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: transform 0.3s ease;
}

.afdb-home-card:hover {
  transform: translateX(4px);
}

.afdb-home-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--color-dark-grey);
  text-decoration: none;
}

.afdb-home-link:hover {
  color: var(--color-orange);
}

.afdb-icon {
  font-size: 2rem;
  color: var(--color-orange);
  flex-shrink: 0;
}

.afdb-home-title {
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.4;
}

.see-all-afdb {
  border: 1px solid var(--color-orange);
  color: var(--color-orange);
  align-self: flex-end;
}

/* Colonne Actualités */
.home-actus-column {
  background: var(--color-white);
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  padding: 1.5rem;
}

.home-actualites-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  gap: 1rem;
  flex-wrap: wrap;
}

.home-actualites-header .section-title {
  font-size: 1.75rem;
  margin: 0;
  color: var(--color-dark-grey);
}

.see-all-actus {
  border: 1px solid var(--color-orange);
  color: var(--color-orange);
}

.actus-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  padding-top: 20px;
}

.actu-item {
  background: var(--color-white);
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.25s ease;
  position: relative;
  padding-top: 180px;
  overflow: visible;
}

.actu-item:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.actu-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.actu-thumb-wrapper {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 280px;
  height: 200px;
}

.actu-thumb-wrapper img,
.actu-thumb-wrapper picture {
  width: 100%;
  height: 100%;
  display: block;
}

.actu-thumb-wrapper img {
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease;
}

.actu-thumb-wrapper picture img {
  object-fit: cover;
  border-radius: 8px;
}

.actu-thumb-wrapper:hover img {
  transform: scale(1.05);
}

.actu-body {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  height: 100%;
  /* Important : occuper tout l’espace du conteneur */
}

.actu-date {
  font-size: 0.85rem;
  color: var(--color-grey);
}

.actu-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0;
  color: var(--color-dark-grey);
}

.actu-excerpt {
  font-size: 0.95rem;
  color: var(--color-dark-grey);
  line-height: 1.5;
  flex-grow: 1;
}

.actu-body .btn-more {
  background: var(--color-orange);
  color: var(--color-white);
  align-self: flex-start;
  margin-top: auto;
  /* pousse le bouton vers le bas */
}

/* Responsive */
@media (min-width: 1201px) {
  .actu-thumb-wrapper {
    width: 280px;
    height: 200px;
  }
}

/* Desktop moyen 769px à 1200px */
@media (min-width: 769px) and (max-width: 1200px) {
  .actu-thumb-wrapper {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 280px;
    aspect-ratio: 280 / 200;
    display: flex;
    /* centrer le contenu */
    justify-content: center;
    /* horizontal */
    align-items: center;
    /* vertical */
  }

  .actu-thumb-wrapper img,
  .actu-thumb-wrapper picture img {
    width: 95%;
  }


  .actus-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile < 768px */
@media (max-width: 768px) {
  .home-news-agenda {
    padding: 1.5rem;
  }

  .home-news-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .home-agenda-column,
  .home-actus-column {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
  }

  .home-agenda-header,
  .home-actualites-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .home-agenda-header .section-title,
  .home-actualites-header .section-title {
    font-size: 1.5rem;
  }

  .actus-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .actu-item {
    max-width: 400px;
    margin: 0 auto;
    width: 100%;
  }

  .agenda-horaire {
    flex-wrap: wrap;
  }

  .agenda-content .btn-see-event {
    padding: 0.3rem 0.8rem;
  }

  .actu-thumb-wrapper {
    width: 90%;
    max-width: 280px;
    height: 180px;
    /* fixe la hauteur sur mobile */
  }

  .actu-body .btn-more {
    margin-top: 0;
    /* désactive la marge auto sur mobile */
  }
}


@media (max-width: 480px) {
  .actu-thumb-wrapper {
    width: 95%;
    height: 160px;
  }

  .actu-item {
    padding-top: 160px;
  }

  .afdb-icon {
    font-size: 1.75rem;
  }

  .afdb-home-title {
    font-size: 0.9rem;
  }
}

/* ============================================================
FRONT PAGE : SECTION FORMATIONS
============================================================= */

.home-formations-section {
  background: var(--color-white);
  padding: 3rem 4rem;
}

.home-formations-section .home-formations-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.home-formations-section .home-formations-header .section-title {
  font-size: 1.75rem;
  margin: 0;
  color: var(--color-dark-grey);
}

.home-formations-section .home-formations-header .see-all-formations {
  border: 1px solid var(--color-primary-brown);
  color: var(--color-primary-brown);
}

.home-formations-section .formations-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 2rem;
}

.home-formations-section .formation-card {
  background: var(--color-white);
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--color-border);
  box-shadow: var(--soft-box-shadow);
  transition: box-shadow 0.3s ease;
  position: relative;
}

.home-formations-section .formation-card:hover {
  box-shadow: -1px -4px 18px 2px rgba(0, 0, 0, 0.12);
}

.home-formations-section .formation-link {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.home-formations-section .formation-thumb {
  width: 100%;
  height: 180px;
  overflow: hidden;
  display: block;
}

.home-formations-section .formation-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.home-formations-section .formation-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2rem;
  flex: 1;
}

.home-formations-section .formation-title {
  font-size: 1.1rem;
  margin: 0;
  color: var(--color-primary-brown-dark);
  font-weight: 600;
  line-height: 1.3;
  min-height: 2.6rem;
}

/* Métadonnées (niveau, durée) */
.home-formations-section .formation-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--color-grey);
}

.home-formations-section .formation-meta span {
  display: flex;
  align-items: center;
  gap: 5px;
  background: var(--color-extra-light-grey);
  padding: 4px 10px;
  border-radius: 12px;
}

.home-formations-section .formation-meta i {
  color: var(--color-primary-brown);
}

.home-formations-section .no-formations {
  text-align: center;
  color: var(--color-grey);
  padding: 2rem;
  font-style: italic;
}

@media (max-width: 1024px) {
  .home-formations-section .formations-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }
}

@media (max-width: 768px) {
  .home-formations-section {
    padding: 1.5rem;
  }

  .home-formations-section .home-formations-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .home-formations-section .formations-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .home-formations-section .formation-thumb {
    height: 120px;
  }
}


@media (max-width: 480px) {
  .home-formations-section .formations-grid {
    grid-template-columns: 1fr;
  }

  .home-formations-section .formation-title {
    font-size: 1.05rem;
  }

  .home-formations-section .formation-thumb {
    height: 110px;
  }
}


/* Page Taxe apprentissage */
.btn-soltea {
  display: inline-block;
  margin-bottom: 1rem;
  animation: solteaPulse 2s ease-in-out infinite;
  /* lent et doux */
}

@keyframes solteaPulse {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.015);
  }

  /* 1.5% — quasi invisible mais vivant */
  100% {
    transform: scale(1);
  }
}

/* ==========================================================================
   PAGINATION COMMUNE POUR TOUTES LES ARCHIVES ET PAGE RESULTATS DE RECHERCHE
   ======================================================================== */
.archive-pagination {
  margin: 3rem auto 2rem;
  text-align: center;
}

.archive-pagination ul {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.2rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.archive-pagination li {
  margin: 0;
  list-style: none;
}

.archive-pagination ul li a::before,
.archive-pagination ul li a::after {
  content: none;
  display: none;
}

.archive-pagination ul li::before {
  content: none;
  display: none;
}

/* Styles de base des éléments de pagination */
.archive-pagination a,
.archive-pagination span {
  position: static;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1rem;
  min-width: 45px;
  color: var(--color-dark-grey) !important;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.archive-pagination a:hover {
  color: var(--color-orange) !important;
}

.archive-pagination .current {
  color: var(--color-orange) !important;
  font-weight: 700;
}

.archive-pagination .prev a,
.archive-pagination .next a {
  color: var(--color-orange) !important;
  font-size: 0.9rem;
}

.archive-pagination .prev span,
.archive-pagination .next span {
  color: var(--color-light-grey);
  font-size: 0.9rem;
  cursor: not-allowed;
}

/* Neutraliser les styles des icônes FontAwesome */
.archive-pagination i {
  margin: 0;
  padding: 0;
}

.archive-pagination i::before {
  margin: 0;
  padding: 0;
}

@media (max-width: 768px) {
  .archive-pagination ul {
    flex-wrap: wrap;
  }

  .archive-pagination a,
  .archive-pagination span {
    padding: 0.5rem 0.8rem;
    font-size: 0.9rem;
    min-width: 40px;
  }
}

.no-post {
  text-align: center;
  font-size: 1.2rem;
  color: var(--color-dark-grey);
  padding: 3rem 0;
}

/* ===========================================
  SINGLE ACTUALITE
  =========================================== */
.actualite-banner {
  background: var(--color-orange);
  color: var(--color-white);
}

.actualite-meta {
  margin: 1.5rem 0 2rem;
  color: var(--color-dark-grey);
}

.actualite-meta .actualite-date {
  font-weight: 600;
  color: var(--color-orange);
  margin-bottom: 0.5rem;
}

.actualite-meta .actualite-resume {
  font-style: italic;
  line-height: 1.5;
}


/* CONTENU LIBRE (Spectra / Gutenberg) */

.actualite-content h2,
.actualite-content h3,
.actualite-content h4 {
  color: var(--color-orange);
  font-weight: 600;
  margin: 2.5rem 0 1.2rem;
  line-height: 1.3;
}

.actualite-content p {
  margin-bottom: 1.5rem;
  color: var(--color-dark-grey);
  text-align: justify;

}

.actualite-content a {
  color: var(--color-orange);
  text-decoration: underline;
}

.actualite-content img,
.actualite-content video {
  display: block;
  max-width: 100%;
  margin: 2rem auto;
  border-radius: 4px;
}

/* --- Listes --- */
.actualite-content ul,
.actualite-content ol {
  margin: 1.2rem 0 1.5rem 1.5rem;
  padding: 0;
}

.actualite-content li {
  margin-bottom: 0.5rem;
}

/* NAVIGATION (Précédent / Suivant) - alignement vertical robuste */
.post-navigation {
  display: flex;
  justify-content: space-between;
  align-items: center;
  /* garantit que les enfants (nav-previous/nav-next) sont centrés */
  border-top: 1px solid var(--color-border);
  margin-top: 2rem;
  padding-top: 2rem;
}

/* rendre chaque cellule un flex container pour centrer le lien verticalement */
.post-navigation .nav-previous,
.post-navigation .nav-next {
  display: flex;
  align-items: center;
  /* centre verticalement le lien à l'intérieur */
  min-height: 44px;
  /* hauteur suffisante pour le clic / alignement; ajuste si nécessaire */
  flex: 1;
}

/* align left / right */
.post-navigation .nav-previous {
  justify-content: flex-start;
  text-align: left;
}

.post-navigation .nav-next {
  justify-content: flex-end;
  text-align: right;
}

/* lien : centrage vertical + icône + animation */
.post-navigation a {
  color: var(--color-dark-grey);
  font-weight: 500;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: color 0.25s ease, transform 0.25s ease;
  /* évite que le lien occupe toute la zone (flex child centré dans son conteneur) */
  align-self: center;
}

/* icône : forcer display et line-height pour éviter décalage */
.post-navigation a i {
  display: inline-block;
  line-height: 1;
  font-size: 0.95rem;
  vertical-align: middle;
}

/* Hover / Touch effect pour navigation (desktop + mobile) */
.post-navigation .nav-previous a:hover,
.post-navigation .nav-previous a:active,
.post-navigation .nav-previous a:focus {
  color: var(--color-orange);
  transform: translateX(-5px);
}

.post-navigation .nav-next a:hover,
.post-navigation .nav-next a:active,
.post-navigation .nav-next a:focus {
  color: var(--color-orange);
  transform: translateX(5px);
}

/* Small screens : empilement (on garde aussi l'alignement correct) */
@media (max-width: 768px) {
  .post-navigation {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .post-navigation .nav-previous,
  .post-navigation .nav-next {
    justify-content: center;
    text-align: center;
    min-height: 0;
  }

  /* tronquer uniquement le texte */
  .post-navigation .nav-title {
    display: inline-block;
    max-width: 70vw;
    /* limite la largeur du texte */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: middle;
  }

  /* icône alignée avec le texte */
  .post-navigation a i {
    display: inline-block;
    vertical-align: middle;
  }

  .post-navigation .nav-previous a:active,
  .post-navigation .nav-next a:active {
    transition: transform 0.15s ease, color 0.15s ease;
  }
}

/* Archive Actualités */
.archive-actualites .std-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

.actus-archive-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 3rem;
  padding-top: 20px;
}

/* Réutilisation des styles des cartes de la front-page */
.archive-actualites .actu-item {
  background: var(--color-white);
  border-radius: 8px;
  box-shadow: var(--soft-box-shadow);
  transition: box-shadow 0.25s ease;
  position: relative;
  overflow: visible;
  padding-top: 190px;
}

.archive-actualites .actu-item:hover {
  box-shadow: -1px -4px 18px 2px rgba(0, 0, 0, 0.12);
}

/* Responsive */
@media (max-width: 992px) {
  .actus-archive-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .actus-archive-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* ============================================================
  SECTION CHIFFRES CLES - Page d'accueil
============================================================ */
.chiffres-cles {
  background-color: var(--color-primary-green);
  color: var(--color-white);
  padding: 1rem;
  text-align: center;
}

.chiffres-cles .chiffres-title {
  margin-bottom: 1.5rem;
  font-size: 1.75rem;
  font-weight: 500;
}

.chiffres-cles .chiffres-container {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 1.5rem;
}

/* Chaque chiffre */
.chiffres-cles .chiffre {
  flex: 1 1 150px;
  min-width: 150px;
  max-width: 220px;
}

.chiffres-cles .icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  display: block;
}

.chiffres-cles .number {
  font-size: 2rem;
  margin-bottom: 0.25rem;
}

.chiffres-cles .label {
  font-size: 1.1rem;
  font-weight: 500;
}

/* Responsive */
@media (max-width: 768px) {
  .chiffres-cles .chiffres-title {
    font-size: 1.5rem;
  }

  .chiffres-cles .chiffres-container {
    flex-direction: column;
    align-items: center;
  }

  .chiffres-cles .chiffre {
    max-width: 100%;
  }
}


/* =========================================================================
   Single Formation
=========================================================================== */
.single-formation {
  .formation-banner {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    align-items: stretch;
    background: var(--color-primary-brown-dark);
    color: var(--color-white);
    position: relative;
    overflow: hidden;
    height: 350px;
  }

  /* 3 traits fins parallèles style "coups de griffe" */
  .formation-banner::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
      linear-gradient(130deg,
        transparent 0%,
        transparent 25%,
        rgba(255, 255, 255, 0.04) 25%,
        rgba(255, 255, 255, 0.04) 25.08%,
        transparent 25.08%,
        transparent 55%),
      linear-gradient(130deg,
        transparent 30%,
        rgba(255, 255, 255, 0.045) 30%,
        rgba(255, 255, 255, 0.045) 30.09%,
        transparent 30.09%,
        transparent 62%),
      linear-gradient(130deg,
        transparent 36%,
        rgba(255, 255, 255, 0.038) 36%,
        rgba(255, 255, 255, 0.038) 36.07%,
        transparent 36.07%,
        transparent 68%);
    z-index: 1;
    pointer-events: none;
  }

  .formation-banner-inner {
    padding: 3rem 3rem 3rem 3.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1.5rem;
  }

  .formation-diplome-badge {
    background: var(--badge-color, var(--color-primary-brown));
    color: var(--color-white);
    padding: 0.5rem 1rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    display: inline-block;
    align-self: flex-start;
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
  }

  /* Effet de brillance sur le badge */
  .formation-diplome-badge::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
  }

  .formation-diplome-badge:hover::before {
    left: 100%;
  }

  .formation-libelle {
    font-size: clamp(1.5rem, 3vw, 2rem);
    line-height: 1.5;
    margin: 0;
    color: var(--color-white);
    font-weight: 700;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  }

  .formation-subinfos {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 0.15rem;
    font-size: 1rem;
    opacity: 0.92;
  }

  .formation-subinfos .info-item {
    display: inline-flex;
    align-items: center;
    color: var(--color-white);
  }

  .formation-subinfos .info-item i {
    width: 14px;
    height: 14px;
    display: inline-block;
    font-size: 0.85rem;
    color: var(--color-primary-brown-light);
    opacity: 1;
    margin-right: 0.4rem;
  }

  .formation-subinfos .info-item strong {
    font-weight: 600;
    margin-right: 0.2rem;
  }

  .formation-banner-img {
    z-index: 2;
    height: 100%;
    overflow: hidden;
    display: block;
    position: relative;
  }

  .formation-banner-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 70% 26%;
  }

  /* Placeholder si pas d'image */
  .formation-banner-img--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--color-white);
    background: var(--color-extra-light-grey);
    padding: 1rem;
    font-weight: 600;
  }

  @media (max-width:900px) {
    .formation-banner {
      grid-template-columns: 1fr;
      height: auto;
    }

    .formation-banner-inner {
      padding: 2rem 1.6rem;
      text-align: center;
    }

    .formation-diplome-badge {
      align-self: center;
    }

    .formation-subinfos {
      justify-content: center;
      gap: 1rem;
    }

    .formation-banner-img {
      height: 250px;
      margin-top: 0;
    }
  }

  @media (max-width: 480px) {
    .formation-libelle {
      font-size: 1.6rem;
      line-height: 1.2;
    }
  }

  /* LAYOUT contenu global sous bannière */
  .formation-layout {
    display: grid;
    grid-template-columns: 1fr 330px;
    gap: 2.5rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 2.5rem 2rem;
    align-items: start;
  }

  @media (max-width: 1000px) {
    .formation-layout {
      grid-template-columns: 1fr;
    }
  }

  /* SIDEBAR */
  .formation-sidebar {
    background: var(--color-white);
    border-radius: 8px;
    padding: 2rem 1.5rem;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.05);
  }

  /* SECTIONS */
  .sidebar-section {
    padding-bottom: 1.6rem;
    margin-bottom: 1.6rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  }

  .sidebar-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
  }

  .sidebar-section .btn-contact {
    margin-bottom: 0.5rem;
  }

  .sidebar-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-dark-grey);
    margin-bottom: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
  }

  .sidebar-title i {
    font-size: 1.05rem;
    color: var(--color-primary-brown);
    opacity: 0.8;
  }

  /* ATOUTS */
  .formation-atouts {
    list-style: none;
    padding: 0;
    margin: 0;
  }

  .formation-atouts li {
    margin-bottom: 1.1rem;
  }

  .formation-atouts li:last-child {
    margin-bottom: 0;
  }

  .formation-atouts a {
    color: var(--color-dark-grey);
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.75rem 1rem;
    background: var(--bg-soft-gradient);
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.25s ease;
    border-left: 4px solid transparent;
  }

  .formation-atouts a:hover {
    border-left-color: var(--color-primary-brown);
    transform: translateX(3px);
  }

  .formation-atouts a i {
    font-size: 1rem;
    color: var(--color-primary-brown);
    opacity: 0.9;
    flex-shrink: 0;
  }

  /* CONTENU INTERNE - SECTIONS AVEC ENCARTS */
  .formation-content>section {
    padding: 2rem 2.5rem;
    margin-bottom: 2.5rem;
    border-left: 4px solid var(--color-primary-brown);
    background: var(--bg-soft-gradient);
    box-shadow: var(--soft-box-shadow);
    border-radius: 8px;
  }

  .formation-content h2 {
    margin-top: 0;
    margin-bottom: 1.2rem;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--color-primary-brown-dark);
    display: flex;
    align-items: center;
    gap: 0.8rem;
  }

  .formation-content h2 i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background: var(--color-primary-brown);
    color: var(--color-white);
    border-radius: 8px;
    font-size: 1.4rem;
    flex-shrink: 0;
  }

  .formation-content h3 {
    margin-top: 1.8rem;
    margin-bottom: 1rem;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-primary-brown-dark);
    display: flex;
    align-items: center;
    gap: 0.6rem;
  }

  .formation-content h3::before {
    content: "";
    width: 6px;
    height: 24px;
    background: var(--color-primary-brown);
    border-radius: 3px;
    display: inline-block;
  }

  .formation-content p {
    line-height: 1.7;
    color: var(--color-dark-grey);
    margin-bottom: 1rem;
  }

  .formation-content ul {
    padding-left: 0;
    list-style: none;
  }

  .formation-content li {
    margin-bottom: 0.8rem;
    line-height: 1.6;
    padding-left: 2rem;
    position: relative;
    color: var(--color-dark-grey);
  }

  .formation-content li::before {
    content: "\f00c";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--color-primary-brown);
    font-size: 0.9rem;
  }

  .formation-video {
    margin-bottom: 2.5rem;
  }

  .formation-video video {
    width: 100%;
    border-radius: 8px;
  }

  /* Style specifique pour programme, admission et rythme */
  /* Empêcher les <i> + <a> d’être en block */
  .formation-programme>p i,
  .formation-admission>p i,
  .formation-rythme>p i,
  .formation-programme>p a,
  .formation-admission>p a,
  .formation-rythme>p a {
    display: inline;
    vertical-align: middle;
  }

  .formation-programme>p i,
  .formation-admission>p i,
  .formation-rythme>p i {
    color: var(--color-primary-brown-dark);
    margin: 0 6px;
    /* font-size: 1rem; */
  }

  .formation-programme>p a,
  .formation-admission>p a,
  .formation-rythme>p a {
    color: var(--color-primary-brown-dark);
    position: relative;
  }

  /* Trait sous les liens */
  .formation-programme>p a::after,
  .formation-admission>p a::after,
  .formation-rythme>p a::after {
    content: "";
    position: absolute;
    height: 1px;
    background: var(--color-primary-brown-dark);
    left: 0;
    bottom: 0;
    width: 100%;
  }

  /* Responsive */
  @media (max-width: 768px) {
    .formation-content>section {
      padding: 1.5rem 1.2rem;
    }

    .formation-content h2 {
      font-size: 1.5rem;
      gap: 0.6rem;
    }
  }
}

/* -------------------------------
   DOCUMENTS RESSOURCES - STYLE
----------------------------------*/
.documents-ressources .std-banner {
  background-color: var(--color-primary-brown);
}

.documents-ressources .docs-container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.doc-category-block {
  background-color: #f9f9f9;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.doc-category-title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #003366;
  /* couleur lycée */
  border-bottom: 2px solid #003366;
  padding-bottom: 0.3rem;
}

.doc-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.doc-item {
  margin-bottom: 1rem;
  padding: 0.5rem 0;
  border-bottom: 1px dashed #ccc;
}

.doc-link {
  font-weight: 600;
  color: #004080;
  text-decoration: none;
  transition: color 0.3s;
}

.doc-link:hover {
  color: #ff6600;
  /* accent color */
}

.doc-desc {
  font-size: 0.9rem;
  color: #555;
  margin: 0.2rem 0 0 1.5rem;
}

.doc-annee {
  display: inline-block;
  font-size: 0.8rem;
  color: #999;
  margin-left: 1.5rem;
}

.doc-empty {
  font-style: italic;
  color: #777;
}

/* Mobile */
@media(max-width:768px) {

  .doc-desc,
  .doc-annee {
    margin-left: 0;
  }
}

/* === Styles généraux === */
.page-internat-dexcellence {
  font-family: sans-serif;
  line-height: 1.5;
  color: #222;
}

.page-internat-dexcellence h2 {
  font-size: 1.5rem;
  margin-bottom: 0.5em;
}

/* === Présentation === */
.internat-presentation-row {
  display: flex;
  flex-direction: column;
  margin-bottom: 2rem;
}

.internat-presentation-row.is-reverse {
  flex-direction: column;
}

.internat-presentation-image img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  margin-bottom: 1rem;
}

.internat-presentation-text {
  font-size: 1rem;
}

/* === Vidéo pleine largeur === */
.internat-presentation-video {
  margin: 2rem 0;
}

.internat-presentation-video iframe {
  width: 100%;
  height: 200px;
}

/* === Galerie === */
.internat-presentation-gallery {
  display: flex;
  overflow-x: auto;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.internat-presentation-gallery img {
  width: 120px;
  height: auto;
  border-radius: 4px;
}

/* === Informations (brochure, tarifs, divers) === */
.internat-informations .info-item {
  margin-bottom: 1.5rem;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 1rem;
}

.internat-informations .info-item h3 {
  cursor: pointer;
  margin: 0;
}

.internat-informations .info-content {
  display: none;
  margin-top: 0.5rem;
}

/* === Activités du mois === */
.internat-activities img {
  width: 100%;
  height: auto;
  margin-top: 1rem;
}

/* === Événements à venir === */
.internat-event-list {
  list-style: none;
  padding: 0;
}

.internat-event-item {
  margin-bottom: 2rem;
  padding: 1rem;
  border: 1px solid #ddd;
  border-radius: 6px;
}

/* === Formulaire === */
.internat-form input,
.internat-form textarea,
.internat-form select,
.internat-form button {
  width: 100%;
  margin-bottom: 1rem;
  padding: 0.5rem;
  font-size: 1rem;
}

.internat-form button:disabled {
  background-color: #ccc;
  cursor: not-allowed;
}

/* === Desktop === */
@media(min-width: 768px) {
  .internat-presentation-row {
    flex-direction: row;
    align-items: center;
    gap: 2rem;
  }

  .internat-presentation-row.is-reverse {
    flex-direction: row-reverse;
  }

  .internat-presentation-video iframe {
    height: 400px;
  }

  .internat-presentation-gallery img {
    width: 180px;
  }
}

/* ===================================================================
   BANNIÈRE PAGE AVEC IMAGE – GÉNÉRIQUE
   =================================================================== */
.std-image-banner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: var(--color-primary-brown-dark);
  height: clamp(16rem, 30vw, 30rem);
}

/* Wrapper image */
.std-image-banner .banner-image-wrapper {
  position: absolute;
  inset: 0;
  z-index: 1;
}

/* picture */
.std-image-banner .banner-image-wrapper picture {
  display: block;
  width: 100%;
  height: 100%;
}

/* img direct ou dans picture */
.std-image-banner .banner-image-wrapper img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 60%;
}

/* Overlay sombre pour lisibilité */
.std-image-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
      rgba(0, 0, 0, 0.6) 0%,
      rgba(0, 0, 0, 0.3) 40%,
      rgba(0, 0, 0, 0.6) 100%);
  z-index: 2;
}

/* Contenu au-dessus de l'image */
.std-image-banner .banner-content {
  position: relative;
  z-index: 3;
  text-align: start;
  color: var(--color-white);
  max-width: 60rem;
  padding: 0 2rem;
  transform: translateY(20%);
}

.std-image-banner .std-banner-title {
  font-size: 2.8rem;
  margin: 0 0 1rem;
  font-weight: 800;
  text-transform: uppercase;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
  letter-spacing: 1px;
  line-height: 1.2;
}

.std-image-banner .archive-description {
  font-size: 1.3rem;
  line-height: 1.6;
  font-weight: 500;
  color: #fff;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

/* ===================== Responsive ===================== */

/* Tablettes grandes / petits laptops */
@media (max-width: 1024px) {
  .std-image-banner {
    height: clamp(14rem, 28vw, 25rem);
  }

  .std-image-banner .std-banner-title {
    font-size: 2.2rem;
  }

  .std-image-banner .archive-description {
    font-size: 1.15rem;
  }
}

/* Tablettes / grands mobiles */
@media (max-width: 768px) {
  .std-image-banner {
    height: clamp(12rem, 25vw, 18rem);
  }

  .std-image-banner .banner-content {
    padding: 0 1.5rem;
    transform: translateY(15%);
  }

  .std-image-banner .std-banner-title {
    font-size: 1.9rem;
  }

  .std-image-banner .archive-description {
    font-size: 1rem;
  }
}

/* Mobiles */
@media (max-width: 480px) {
  .std-image-banner {
    height: clamp(10rem, 22vw, 14rem);
  }

  .std-image-banner .banner-content {
    transform: translateY(10%);
  }

  .std-image-banner .std-banner-title {
    font-size: 1.5rem;
  }

  .std-image-banner .archive-description {
    font-size: 0.95rem;
  }
}

/* ============================================================
  Formulaire de contact
============================================================ */
.wpcf7-form {
  border: 1px solid var(--color-border);
  border-radius: 4px;
  padding: 0 30px 20px 30px;
}

@media (max-width: 768px) {
  .wpcf7-form {
    border: none;
    border-radius: 0;
    padding: 0;
  }
}

.wpcf7-form br {
  display: none;
}

.wpcf7-form p:has(.wpcf7-submit) {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.wpcf7-form .wpcf7-spinner {
  margin: 0;
}

.wpcf7-form input.btn-submit {
  background-color: var(--color-primary-brown);
  color: var(--color-white);
  border: none;
  display: block;
  margin-left: auto;
}

/* Custom messages : succès, alertes, erreurs */
.wpcf7 form .wpcf7-response-output {
  padding: 12px 16px;
  border-radius: 4px;
  margin: 0;
  font-size: 1rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  border: none;
}

/* Erreur de validation (champs invalides) */
.wpcf7 form.invalid .wpcf7-response-output {
  background-color: var(--color-light-warning);
  color: var(--color-warning);
  animation: slideIn 0.6s ease-out forwards;
  border: none;
}

/* Erreur serveur */
.wpcf7 form.failed .wpcf7-response-output {
  background-color: var(--color-light-red);
  color: var(--color-red);
  animation: slideIn 0.6s ease-out forwards;
  border: none;
}

/* Succès */
.wpcf7 form.sent .wpcf7-response-output {
  background-color: var(--color-light-green);
  color: var(--color-green);
  animation: slideIn 0.6s ease-out forwards;
  border: none;
}

/* Spam */
.wpcf7 form.spam .wpcf7-response-output {
  background-color: var(--color-light-red);
  color: var(--color-red);
  animation: slideIn 0.6s ease-out forwards;
  border: none;
}

/* ==================
 PAGE EN CONSTRUCTION 
 ================== */
.page-construction {
  display: flex;
  justify-content: center;
  padding: 80px 20px;
}

.construction-box {
  max-width: 700px;
  width: 100%;
  padding: 50px 40px;
  border: 1px solid var(--color-primary-green);
  border-radius: 8px;
  text-align: center;
  background: var(--color-white);
}

.construction-icon {
  font-size: 90px;
  margin-bottom: 25px;
}

.page-construction h1 {
  color: var(--color-dark-grey);
  font-size: 2.2rem;
  margin-bottom: 20px;
  font-weight: 600;
}

.page-construction p {
  color: var(--color-dark-grey);
  font-size: 1.2rem;
  line-height: 1.6;
  margin: 0;
}

/* Responsive */

@media (max-width: 768px) {
  .construction-box {
    padding: 40px 25px;
  }

  .construction-icon {
    font-size: 70px;
  }

  .page-construction h1 {
    font-size: 1.8rem;
  }

  .page-construction p {
    font-size: 1.05rem;
  }
}

/* To do Style page UNSS à sortir du style global */
/* Wrapper vidéo responsive */
/* Full width pour toutes les vidéos YouTube Gutenberg */
/* Full width YouTube avec angles arrondis */
.wp-block-embed.wp-block-embed-youtube {
  width: 100% !important;
  max-width: 100% !important;
}

.wp-block-embed__wrapper {
  position: relative;
  padding-bottom: 56.25%;
  /* ratio 16:9 */
  height: 0;
  overflow: hidden;
  border-radius: 8px;
  /* angles arrondis */
}

.wp-block-embed__wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100% !important;
  height: 100% !important;
  border-radius: 8px;
  /* angles arrondis */
}