@import url("../fonts/roboto.css");
:root {
  /* Colors used in header */
  --background-color: light-dark(#f5f5f5, #121212);
  --texte-color: light-dark(#3e3e3e, #f5f5f5);
  --text-dark: #1f2937;
  --text-light: #6b7280;
  --white: #ffffff;
  --border-color: #e5e7eb;
  --gray-50: #f9fafb;
  --footbleu: #203058;
  --vertalice: #b3c000;
  --orangealice: #ff9c00;
  --grisactu: #f0f0f0;
  /* Spacing used in header */
  --container-width: 1280px;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 2rem;
  --spacing-12: 0.75rem;
  --margeG: 2em;

  /* Shadows used in header */
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.1);

  /* Transitions used in header */
  --transition-fast: 0.2s;
  --transition-normal: 0.3s;
}

/* Base styles used in header */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
h1,
h3,
h4,
h5,
h6 {
  font-family: "robotobold", sans-serif;
  font-weight: normal;
}
h2 {
  font-family: "robotomedium", sans-serif;
  font-weight: normal;
}
/* Light Mode */
[data-theme="light"] {
  color-scheme: light;
}

/* Dark Mode - forcing this for the example, not advised to do this normally except you want to give your users the option to do so */
[data-theme="dark"] {
  color-scheme: dark;
}
body {
  font-family: "robotoregular", sans-serif;
  color: var(--texte-color);
  background-color: var(--background-color);
}

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

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--spacing-lg);
}

/* Header Styles */
.main-header {
  padding: var(--spacing-sm) 0;
  position: sticky;
  top: var(--spacing-md);
  z-index: 100;
  background: transparent;
  /* Remove full width background */
}
.logo {
  margin-left: var(--margeG);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--spacing-md) var(-Fpacing-lg);
  max-width: var(--container-widthF);
  margin: 0 auto;
  position: relative;
  overflow: visible;
  & ul {
    list-style: none;
  }
}

.nav-toggle {
  position: absolute;
  left: -9999px;
  opacity: 0;
}

.nav-toggle-label {
  display: none;
  cursor: pointer;
  padding: var(--spacing-sm);
  color: var(--text-dark);
}

.nav-toggle-label svg {
  display: block;
}

.nav-toggle-label .icon-close {
  display: none;
}

.main-nav {
  display: flex;
  align-items: center;
  background-color: var(--background-color);
  color: var(--texte-color);
  gap: var(--spacing-lg);
  width: 100%;
  flex: 1;
  opacity: 0.8;
  & a:link,
  a:visited {
    color: var(--texte-color);
  }
  & a:hover,
  a:active {
    color: var(--orangealice);
  }
}

.main-nav > ul {
  display: flex;
  gap: var(--spacing-lg);
  align-items: center;
  margin: 0 auto;
}

.main-nav a {
  text-decoration: none;
  color: var(--texte-color);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color var(--transition-fast);
}

.main-nav a:hover {
  color: var(--orangealice);
}

.header-cta {
  display: block;
}

/* Dropdown Styles */
.has-dropdown {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
}

.dropdown-toggle {
  display: none;
}

.link-wrapper {
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  padding: 10px 0;
  /* Increase hit area */
}

.dropdown-icon {
  display: flex;
  align-items: center;
  cursor: pointer;
  transition: transform var(--transition-fast) ease;
}
.main-nav ul button {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  font-size: 0.8em;
  cursor: pointer;
  background-color: var(--white);
  color: var(--text-dark);
  &:last-child {
    color: var(--texte-color);
    background-color: var(--background-color);
  }
}

/* Desktop Dropdown */
@media (min-width: 901px) {
  .dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--background-color);
    min-width: 220px;
    /* Wider for rich content */

    padding: var(--spacing-md);
    z-index: 100;
    display: none;
    flex-direction: column;
    gap: var(--spacing-sm);

    margin-top: 15px;
    /* Spacing from anchor */
    & a:link,
    a:visited {
      color: var(--texte-color);
    }
  }

  /* Invisible bridge to prevent menu closing when moving mouse */
  .has-dropdown::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 15px;
    /* Matches margin-top */
  }

  .has-dropdown:hover .dropdown-menu {
    display: flex;
  }

  .has-dropdown:hover .dropdown-icon {
    transform: rotate(180deg);
  }

  .dropdown-menu li {
    width: 100%;
  }

  .dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: var(--spacing-12);
    border-radius: var(--radius-10);
    text-decoration: none;
    transition: background-color var(--transition-fast);
  }

  .dropdown-item:hover {
    background-color: var(--gray-50);
  }

  .dropdown-item-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
  }

  .dropdown-item-title {
    font-weight: 600;
    color: var(--texte-color);
    font-size: 0.95rem;
  }
}

/* Mobile Navigation adjustments for dropdowns */
@media (max-width: 900px) {
  /* ... existing mobile styles ... */

  .has-dropdown {
    width: 100%;
    flex-direction: column;
  }

  .link-wrapper {
    width: 100%;
    justify-content: space-between;
    padding: 16px var(--spacing-lg);
    border-bottom: 1px solid var(--border-color);
  }

  .link-wrapper a {
    border-bottom: none !important;
    padding: 0 !important;
  }

  .dropdown-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-normal) ease;
    background-color: var(--gray-50);
    /* Slightly darker for contrast */
    width: 100%;
    flex-direction: column;
    display: flex;
    padding: 0;
  }

  .dropdown-menu li {
    width: 100%;
  }

  .dropdown-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-12);
    padding: var(--spacing-12) var(--spacing-lg);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  }

  .dropdown-item-content {
    flex: 1;
    display: flex;
    flex-direction: column;
  }

  .dropdown-item-title {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--texte-color);
  }

  /* Mobile Toggle Logic */
  .dropdown-toggle:checked ~ .dropdown-menu {
    max-height: 1500px;
    /* Increased for rich content */
  }

  .dropdown-toggle:checked ~ .link-wrapper .dropdown-icon {
    transform: rotate(180deg);
  }

  /* Override existing link styles for wrappers */
  .main-nav ul a {
    border-bottom: none;
    /* Handled by wrapper or li */
  }

  .main-nav > ul > li:not(.has-dropdown) > a {
    border-bottom: 1px solid var(--border-color);
  }
}

/* Mobile Navigation */
@media (max-width: 900px) {
  .nav-toggle-label {
    display: block;
    order: 3;
    /* Hamburger on right */
  }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    max-height: 0;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease-in-out;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-radius: 0 0 var(--radius-10) var(--radius-10);
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 1000;
    padding: 0;
  }

  .main-nav ul {
    flex-direction: column;
    width: 100%;
    gap: 0;
    align-items: flex-start;
  }

  .main-nav li {
    width: 100%;
  }

  .main-nav ul a {
    display: block;
    padding: 16px var(--spacing-lg);
    border-bottom: 1px solid var(--border-color);
    width: 100%;
  }

  .header-cta {
    width: 100%;
    padding: var(--spacing-md) var(--spacing-lg);
    text-align: center;
  }

  .header-cta .btn {
    width: 100%;
    justify-content: center;
  }

  /* Toggle Logic */
  .nav-toggle:checked ~ .main-nav {
    max-height: 80vh;
    opacity: 1;
    visibility: visible;
    padding-top: var(--spacing-sm);
  }

  .nav-toggle:checked ~ .nav-toggle-label .icon-menu {
    display: none;
  }

  .nav-toggle:checked ~ .nav-toggle-label .icon-close {
    display: block;
  }
}
/* fin menu  */
/* diapo */
.swiper-container {
  width: 100%;
  height: 26em;
}

.swiper-slide {
  background-color: var(--background-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 3rem;
  background-size: cover;
}
[data-ordre="1"] {
  background-image: url("../img/slider-visuel-01.webp");
}
[data-ordre="2"] {
  background-image: url("../img/slider-visuel-02.webp");
}
[data-ordre="3"] {
  background-image: url("../img/slider-visuel-03.webp");
}
[data-ordre="4"] {
  background-image: url("../img/slider-visuel-04.webp");
}

.swiper-hero-progress {
  position: absolute;
  left: 0;
  bottom: 20px;
  width: 0;
  height: 3px;
  background: #fff;
  z-index: 5;
  opacity: 0.1;
}
.puzzle {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2em;
  @media (max-aspect-ratio: 4/3) {
    flex-direction: column;
  }
  & img {
    margin-right: 2em;
  }
  & article {
    width: 42%;

    & a.video-link {
      color: var(--orangealice);
      font-size: 110%;
      font-family: robotobold, arial;
    }
  }
}

.actu {
  margin-top: 2em;
  padding-bottom: 3em;
  text-align: center;
  background-color: var(--grisactu);
  & h2 {
    padding-top: 1em;
    font-size: 200%;
  }
  & section {
    display: flex;
    @media (max-aspect-ratio: 4/3) {
      flex-direction: column;
      align-items: center;
    }
    justify-content: center;
    & article {
      margin: 1.5em;
      width: 12.5em;
      text-align: left;
      & time {
        font-size: 0.8em;
      }
    }
  }
  & > a {
    color: var(--texte-color);
    display: inline-block;
    background-color: var(--orangealice);
    padding: 0.5em 1em;
  }
}
.bilan {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2em;
  @media (max-aspect-ratio: 4/3) {
    flex-direction: column;
  }

  & article {
    background-color: var(--vertalice);
    align-items: center;
    width: 42%;
    @media (max-aspect-ratio: 4/3) {
      width: 18.75em;
    }

    height: 12.5em;
    padding-left: 2em;
    & h2 {
      color: var(--texte-color);
      padding: 1em 0;
    }
  }
}
.pied {
  background-color: var(--footbleu);
  color: var(--white);
  margin-top: 2em;
  margin-right: 2em;

  text-align: center;
  display: flex;
  justify-content: center;
  @media (max-aspect-ratio: 4/3) {
    flex-direction: column;
    align-items: center;
  }
  & address {
    padding-top: 2em;
    margin-right: 3em;
    & h3 {
      margin-top: 1em;
      font-size: 1.3em;
      margin-bottom: 1em;
    }
  }
}
.bandeau {
  background-image: url("../img/bandeau.webp");
  background-image: url("../img/var(--bandeau-image)");
  height: 10.75em;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: right;
  & h1 {
    color: var(--texte-color);
    padding: 2em;
  }
  margin-bottom: 5em;
}
.equipe,
.partenaires {
  margin-left: calc(2 * var(--margeG));
  display: flex;
  flex-wrap: wrap;
  & figure {
    width: 14.375em;
    display: inline-block;
  }
  & .cb {
    margin-left: 2em;
    display: inline-block;
    min-width: 50%;
    width: 60%;
  }
  & h2 {
    margin-bottom: 1em;
    font-size: 1.875em;
    color: var(--orangealice);
    font-weight: normal;
    &:nth-of-type(2) {
      margin-top: 2em;
    }
  }
  & p {
    width: 70%;
  }
}
.team {
  margin-top: 2em;
  margin-left: 14.375em;
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: space-between;
  @media (max-aspect-ratio: 4/3) {
    flex-direction: column;
    align-items: center;
  }
  & .team-item {
    width: 15.625em;
  }
}
.expertises {
  margin-left: calc(2 * var(--margeG));
  margin-bottom: 2.5em;
  display: flex;
  flex-wrap: wrap;
  @media (max-aspect-ratio: 4/3) {
    flex-direction: column;
    align-items: center;
  }
  & figure {
    width: 14.375em;
    display: inline-block;
  }
  & .expertise-item {
    margin-left: 5.5em;
    display: inline-block;
    min-width: 50%;
    width: 58%;
    & h2 {
      margin-bottom: 1em;
      font-size: 1.875em;
      color: var(--orangealice);
      font-weight: normal;
    }
  }
}
.bilancompetences {
  margin-left: calc(2 * var(--margeG));
  margin-bottom: 2.5em;
  display: flex;
  flex-wrap: wrap;
  @media (max-aspect-ratio: 4/3) {
    flex-direction: column;
    align-items: center;
  }
  & figure {
    width: 14.375em;
    display: inline-block;
  }
  & .bc {
    margin-left: 5.5em;
    display: inline-block;
    min-width: 50%;
    width: 58%;
    & h2 {
      margin-bottom: 1em;
      font-size: 1.875em;
      color: var(--orangealice);
      font-weight: normal;
      &:not(:first-of-type) {
        margin-top: 2em;
      }
    }
    & ul {
      list-style-type: none;
      -webkit-columns: 2;
      -moz-columns: 2;
      columns: 2;
      list-style-position: inside;
      @media (max-aspect-ratio: 4/3) {
        -webkit-columns: 1;
        -moz-columns: 1;
        columns: 1;
      }
      & li {
        margin-bottom: 0.5em;
        & a:hover {
          text-decoration: underline;
        }
      }
    }
  }
}
.oeno {
  margin-left: calc(2 * var(--margeG));
  margin-bottom: 2.5em;
  display: flex;
  flex-wrap: wrap;
  @media (max-aspect-ratio: 4/3) {
    flex-direction: column;
    align-items: center;
  }
  & figure {
    width: 10em;
  }
  & .oeno-item {
    margin-left: 3.5em;
    min-width: 50%;
    width: 68%;
    & h2 {
      margin-bottom: 1em;
      font-size: 1.875em;
      color: var(--orangealice);
      font-weight: normal;
      &:not(:first-of-type) {
        margin-top: 2em;
      }
    }
  }
}
.coachingrid {
  margin-top: 3em;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  grid-template-rows: 1fr 1fr;
  gap: 3rem;
  grid-template-areas:
    "indiv indiv"
    "orientation process";
  & h2 {
    margin-bottom: 1em;
    font-size: 1.875em;
    color: var(--orangealice);
    font-weight: normal;
  }
}
.indiv {
  grid-area: indiv;
  columns: 2;
  column-gap: 2em;
  & p {
    break-inside: avoid;
  }
}
.orientation {
  grid-area: orientation;
}
.systemique {
  grid-area: systemique;
}
.process {
  grid-area: process;
}
.page-coaching {
  margin-left: calc(2 * var(--margeG));
  margin-bottom: 2.5em;
  display: flex;
  flex-wrap: wrap;
  @media (max-aspect-ratio: 4/3) {
    flex-direction: column;
    align-items: center;
  }
  & figure {
    width: 14.375em;
    display: inline-block;
  }
  & .coachin-pres {
    margin-left: 18em;
    display: inline-block;
    min-width: 50%;
    width: 58%;
    padding-top: 4em;
  }
}
.temoins {
  margin-left: calc(2 * var(--margeG));
  & ul {
    list-style: none;
  }
}
.domaines {
  background-color: var(--grisactu);
  color: var(--text-dark);
  & h2 {
    margin-left: calc(1.5 * var(--margeG));
    padding-top: 2em;
  }
  & article {
    padding-top: 3em;
    margin-left: calc(2 * var(--margeG));
    margin-right: calc(2 * var(--margeG));
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6em;
    & div {
      max-width: 8em;
      text-align: center;
      & h4 {
        font-size: 120%;
      }
      & p {
        font-size: 70%;
      }
    }
    & .videos {
      display: flex;
      flex-wrap: wrap;
      list-style: none;
      gap: 3em;
    }
  }
}
#Calque_1 {
  fill: transparent;
}
.actus {
  display: flex;
  flex-wrap: wrap;
  gap: 5em;
  & li {
    max-width: 300px;
  }
}
.cadre {
  width: 300px;
  height: 200px;
  overflow: hidden;
}
/* video  */
/* Modal vidéo */
.modal-video {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0);
}

.modal-video.active {
  display: flex;
  justify-content: center;
  align-items: center;
}

.modal-content {
  position: relative;
  width: 90%;
  max-width: 90vw;
  border-radius: 8px;
  overflow: hidden;
}

.modal-content video {
  width: 100%;
  display: block;
}

.modal-title {
  padding: 12px 20px;
  font-size: 1.1rem;
  margin: 0;
}

.modal-close {
  position: absolute;
  top: -45px;
  right: 0;
  background: none;
  border: none;
  font-size: 2.5rem;
  cursor: pointer;
  line-height: 1;
}

.modal-close:hover {
  color: var(--vertalice);
}

/* Cartes vidéo cliquables */
.videos li {
  cursor: pointer;
  transition:
    transform 0.3s,
    box-shadow 0.3s;
}

.videos li:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.video-thumbnail {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.video-thumbnail img {
  display: block;
  width: 200px;
  height: 200px;
  object-fit: cover;
}

/* Bouton play sur la vignette */
.video-thumbnail::after {
  content: "▶";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 70px;
  height: 70px;
  background: var(--background-color);
  color: var(--texte-color);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.8rem;
  padding-left: 6px;
  transition:
    background 0.3s,
    transform 0.3s;
}

.videos li:hover .video-thumbnail::after {
  background: var(--vertalice);
  transform: translate(-50%, -50%) scale(1.1);
}
/* fin de video */

/* Style pour la modal des mentions légales */
.modal-mentions {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: var(--background-color);
  backdrop-filter: blur(4px);
  align-items: center;
  justify-content: center;
}

.modal-mentions.active {
  display: flex;
}

.modal-mentions-content {
  background: var(--background-color);
  border-radius: 12px;
  max-width: 500px;
  width: 90%;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal-mentions-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid #e5e5e5;
}

.modal-mentions-header h2 {
  margin: 0;
  font-size: 1.25rem;
  color: var(--texte-color);
}

.modal-mentions-header .modal-close {
  background: none;
  border: none;
  font-size: 1.75rem;
  cursor: pointer;
  color: var(--texte-color);
  line-height: 1;
  padding: 0;
  transition: color 0.2s;
}

.modal-mentions-header .modal-close:hover {
  color: var(--texte-color);
}

.modal-mentions-body {
  padding: 1.5rem;
}

.modal-mentions-body p {
  margin: 0 0 0.75rem 0;
  color: #555;
  line-height: 1.6;
}

.modal-mentions-body p:last-child {
  margin-bottom: 0;
}

.modal-mentions-body a {
  color: var(--vertalice);
  text-decoration: none;
}

.modal-mentions-body a:hover {
  text-decoration: underline;
}

/* Style du lien mentions légales dans le footer */
#openMentionsLink {
  color: inherit;
  text-decoration: underline;
  cursor: pointer;
  font-size: 0.9em;
}

#openMentionsLink:hover {
  opacity: 0.8;
}
