.video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  width: 100%;
  height: 100%;
}

.site-footer {
  padding: 1rem 1rem;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

/* Crédits */
.credits {
  margin: 0;
  font-size: 0.95rem;
}

/* Liens */
.footer-links {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

/* Liens orange */
.footer-link{
  color: #ff6a00;
  text-decoration: none;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.5rem; /* espace icône / texte */
}

.footer-links a:visited{
  color: #ff6a00 !important;
}

.footer-links a:hover {
  opacity: 0.8;
  color: #e6007e !important;
  text-decoration: none;
}

/* Responsive */
@media (max-width: 768px) {
  .footer-inner {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .footer-links {
    flex-direction: column;
    gap: 0.8rem;
  }
}
.modern-table table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  font-size: 0.9rem;
}

.modern-table th {
  background: orange;
  color: black;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 1px;
  padding: 10px;
}

.modern-table td {
  padding: 10px;
  border-bottom: 1px solid #222;
}

.modern-table tr:nth-child(even) {
  background: #eee;
}

.modern-table tr:hover {
  background: orange; 
}

.modern-table td:nth-child(2) {
  font-weight: bold;
  color: orange; /* rang genre mis en valeur */
}

.modern-table td:nth-child(2):hover { 
  color: #555;
} 

.results-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.result-card {
  border-radius: 12px;
  background: #111;
  color: #fff;
  border: 1px solid #333;
  transition: transform .2s ease, box-shadow .2s ease;
}

.result-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0,0,0,.4);
}

.result-card .card-header {
  background: orange;
  color: #000;
  text-align: center;
  font-weight: bold;
}

.result-card .card-body {
  font-size: 0.9rem;
  line-height: 1.4;
}

.inscription form {
  max-width: 900px;
  margin: 0 auto;
}

.inscription form .form-field {
  box-sizing: border-box;
}

/* grille */
.inscription form .form-columns {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.inscription form .col-6 {
  flex: 0 0 calc(50% - 0.5rem);
}

.inscription form .col-12 {
  flex: 0 0 100%;
}

/* mobile */
@media (max-width: 768px) {
  .inscription form .col-6 {
    flex: 0 0 100%;
  }
}

/* Liste résultats → boutons */
.results #start ul, .big-page #start ul {
  list-style: none;
  padding-left: 0;
  margin: 2rem 0;
  display: flex;
  gap: 0.75rem;
  flex-direction:column; 
  align-items: center; 
}

.results #start a, .inscription #start a, .rose-link a{
color: #e6007e;
}

.big-page #start ul {
  align-items: flex-start;
  margin-top: 0;
}
/* reset li */
.results #start ul li {
  margin: 0;
  padding: 0;
}

/* le bouton */
.results #start ul li a, .big-page #start a, .inscription .btn{
  display: inline-block;   /* clé */
  width: auto;             /* clé */
  max-width: 100%;

  border-radius: 14px;

  background: #e6007e;
  color: #fff;

  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.02em;

  white-space: nowrap;     /* évite les retours chelous */

  transition: transform 0.08s ease,
              box-shadow 0.08s ease,
              background-color 0.08s ease;
}

.results #start ul li a, 
.big-page #start a, 
.results #start a, 
.inscription #start a{
  padding: 0.65rem 1.1rem;
}
/* hover */
.results #start ul li a:hover,
.big-page #start a:hover,
.inscription .btn:hover {
  background: #ff2a9a;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(230, 0, 126, 0.35);
}

.results #start a, 
.inscription #start a, 
{
 display: block;
}

.results #start a:hover, 
.inscription #start a:hover, 
.rose-link a:hover{
  color:#ff5dab !important;
  text-decoration:none
}

.inscription #start a:focus,
.inscription #start a:active,
.results #start a:focus,
.results #start a:active, 
.rose-link a:active, 
.rose-link a:focus{
  color: #d9117f !important;
}


/* active / focus (accessibilité) */
.results #start ul li a:focus,
.results #start ul li a:active,
.big-page #start a:focus,
.big-page #start a:active,
.inscription .btn:focus,
.inscription .btn:focus {
  outline: none;
  background: #c8006e;
}

.results h1, .big-page h1 {
 text-align: center;
 color : #e6007e;
}

.results h2, .big-page h2 {
 text-align: center;
 color : orange;
}

.big-page #start a, .inscription .btn{
  display: block;
  width: fit-content;
  margin: 2rem auto 0;
}

.modular-gallery img{
  margin: 3px;
}

.hero-title-pink h1 {
  color: fuschia;
}

.hero-title-orange h1 {
  color: orange;
}

.hero-title-low h1 {
  text-wrap: balance;
}

.hero-title-low h1 {
  white-space: normal;      /* autorise le retour */
  word-break: keep-all;     /* interdit la casse des mots */
  overflow-wrap: normal;    /* pas de wrap sauvage */
  text-wrap: balance;       /* équilibre les lignes */
}

.hero-title-low > .container.grid-lg {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10%;          /* % du hero, pas vh -> stable */
  max-width: none;
  margin: 0;
  padding: 0;
  text-align: center;
}

.modular-hero.hero-title-low {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 0;
  height: auto;

  //background-repeat: no-repeat;
  background-position: center;
  background-size: contain; /* image entière visible (pas de crop) */
}

/* Fallback si aspect-ratio n'est pas pris (anciens navigateurs) */
@supports not (aspect-ratio: 16 / 9) {
  .modular-hero.hero-title-low {
    height: 0;
    padding-top: 56.25%; /* 9/16 */
  }
}

.treemenu li a.active,
.dropmenu ul li a.active,
.treemenu li a,
.dropmenu ul li a {
  color: orange !important;
}

/* États interactifs */
.treemenu li a:hover,
.treemenu li a:focus,
.dropmenu ul li a:hover,
.dropmenu ul li a:focus {
  color: fuchsia !important;
}

/* Burger (état normal) */
.mobile-menu .button_container span.top,
.mobile-menu .button_container span.middle,
.mobile-menu .button_container span.bottom {
  background-color: orange;
}

/* Hover / focus */
.mobile-menu .button_container span.top:hover,
.mobile-menu .button_container span.middle:hover,
.mobile-menu .button_container span.bottom:hover {
  background-color: fuchsia;
}

/* Base */
.modular-text.img-25 .columns > .column,
.modular-text.img-35 .columns > .column,
.modular-text.img-50 .columns > .column {
  flex: 0 0 auto;
}

/* On détecte quelle colonne contient l'image */
.modular-text[class*="img-"] .columns > .column:has(img) {
  width: var(--imgw, 35%);
}
.modular-text[class*="img-"] .columns > .column:not(:has(img)) {
  width: calc(100% - var(--imgw, 35%));
}

/* Ratios */
.modular-text.img-25 { --imgw: 25%; }
.modular-text.img-35 { --imgw: 35%; }
.modular-text.img-50 { --imgw: 50%; }

/* Mobile */
@media (max-width: 768px){
  .modular-text[class*="img-"] .columns > .column {
    width: 100% !important;
  }
}

.modular-text.bg-light {
  background: #f4f5f3 !important;
}

.modular-text.bg-gray {
  background: #dadcdd !important;
}

.modular-text.bg-night {
  background: #313131 !important;
  color: #f4f5f3 !important;
}

.modular-text.bg-night h3{
  color:bisque !important; 
  margin-top:0px;
}


.modular-text.bg-night h1, .modular-text.bg-night h2 {
  color:#c0c0c0
}

.modular-text.no-top h2 {
  margin-top: 0px !important;
}

/* === TEXT  IMAGE MODULAIRE === */

/* bloc image centrée */
.modular-text.image-center .columns {
  flex-direction: column;
  align-items: center;
  align-content: center;
  text-align: center;

}

.modular-text.image-center .columns .column {

  width:100% !important;
}

.modular-text.image-center.title-pink .column h1 {
  color: fuchsia;
} 

/* ===== Text + 2 Images (stack) ===== */

.t2is-grid{
  display: grid;
  grid-template-columns: var(--txtw, 60%) var(--imgw, 40%);
  gap: 2.5rem;
  align-items: start;
}

/* Images empilées */
.t2is-images{
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

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

/* Inversion texte/images sur desktop */
.t2is-right .t2is-grid{
  grid-template-columns: var(--imgw, 40%) var(--txtw, 60%);
}

.t2is-right .t2is-text{ order: 2; }
.t2is-right .t2is-images{ order: 1; }

/* Mobile : images au-dessus du texte */
@media (max-width: 768px){
  .t2is-grid{
    grid-template-columns: 1fr;
  }
  .t2is-images{ order: 1; }
  .t2is-text{ order: 2; }
}

.t2is-images {
  margin-top:2rem !important;
}

.modular-gallery {
  margin-top:1rem;
  margin-bottom: 1rem;
}

.modular-gallery .column a,
.modular-gallery .column img {
  display: block;
  width: 100%; 
}

