@charset "utf-8";
@import url(https://fonts.googleapis.com/css2?family=Oswald:wght@400;500;600;700&display=swap);

*,
::after,
::before {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}
body {
  font-family: Oswald, sans-serif;
  background-color: var(--grey-100);
  color: var(--black);
  font-size: 62.5%;
}

/* ================
NAVBAR
================= */
.navbar .hamburger-lines,
.navbar input[type="checkbox"] {
  display: none;
}
.has-submenus:focus > ul,
.has-submenus:hover > ul,
.logo img {
  display: block;
}
.navbar {
  box-shadow: 0 5px 10px 0 #aaa;
  width: 100%;
  background: var(--white);
  color: var(--black);
  opacity: 1;
  height: 90px;
}
.navbar-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 90px;
}
.menu-items {
  order: 2;
  display: flex;
  flex-flow: row wrap;
  z-index: 100000;
}
.menu-items li {
  list-style: none;
  margin-left: 1rem;
  margin-right: 1rem;
  margin-bottom: 0.5rem;
  font-size: 1rem;
}
.menu-items a:link,
.menu-items a:visited {
  text-decoration: none;
  color: var(--grey-700);
  transition: color var(--ease-slow) ease-in-out;
}
.has-submenus ul a:active,
.has-submenus ul a:hover,
.menu-items a:active,
.menu-items a:hover {
  color: var(--bleu-apsaq-alt);
  transition: color var(--ease-slow) ease-in-out;
}
.logo {
  order: 1;
  font-size: 2.3rem;
  margin: 0.2rem;
}
.logo img {
  width: 100%;
}
.has-submenus {
  position: relative;
  color: var(--black);
  cursor: pointer;
}
.has-submenus:after {
  content: "\025BC";
  color: var(--bleu-apsaq);
}
.has-submenus ul {
  display: none;
  position: absolute;
  padding: 5px 0;
  min-width: 100%;
  border: 1px solid #888;
  line-height: 2;
  white-space: nowrap;
  background-color: var(--white);
  border-radius: 5px;
}

/* ================
AVANTAGES MEMBRES
================= */
.avantages-list {
  list-style: none;
  margin: var(--space-5) auto 1rem;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-3);
  max-width: 1000px;
}

.avantages-list li {
  background: var(--white);
  border-left: 5px solid var(--bleu-apsaq);
  border-radius: var(--radius-md);
  padding: var(--space-3) 1.4rem 1.2rem 3rem; /* espace pour l’icône */
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
  transition: transform var(--ease-fast) ease, box-shadow 0.15s ease;
  font-size: 1.2rem;
  line-height: 1.7;
  color: var(--grey-900);
  position: relative;
}
.avantages-list li:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.1);
}

/* Icônes style pictogramme rond */
.avantages-list li i {
  position: absolute;
  top: 1.2rem;
  left: 0.6rem;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: var(--bleu-apsaq-50); /* bleu clair */
  color: var(--bleu-apsaq); /* bleu APSAQ */
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

/* Accent sur mots clés */
.avantages-list .bleuapsaq {
  font-weight: 700;
}

/* ================
ESPACE MEMBRE LOGIN
================= */

.login-section {
  max-width: 520px;
  margin: var(--space-6) auto;
}

.login-form {
  background: var(--white);
  border: 2px solid var(--bleu-apsaq);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: var(--space-6) var(--space-5);
}

.login-info {
  display: grid;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}

.login-info label {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--grey-900);
}

.login-info input[type="text"],
.login-info input[type="password"] {
  font-size: 1.05rem;
  padding: 0.9rem 1rem;
  border: 1.5px solid var(--grey-300);
  border-radius: var(--radius-md);
  background: var(--white);
  color: var(--grey-900);
  transition: border-color var(--ease), box-shadow var(--ease);
}

/* Focus visible */
.login-info input:focus {
  outline: none;
  border-color: var(--bleu-apsaq);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--bleu-apsaq) 35%, transparent);
}

/* Message d'erreur global */
.login-err {
  margin: 0 0 var(--space-4);
  padding: var(--space-3);
  border-radius: var(--radius-md);
  background: color-mix(in srgb, var(--rouge-apsaq) 12%, white);
  border: 1.5px solid color-mix(in srgb, var(--rouge-apsaq) 40%, transparent);
  color: var(--grey-900);
  box-shadow: var(--shadow-sm);
  font-size: 1.05rem;
}

/* Bouton déjà stylé via .btn ; on centre le conteneur */
.login-btn {
  display: flex;
  justify-content: center;
}

/* Lien “oublié” */
.login-forgot {
  margin-top: var(--space-3);
}
.login-forgot a {
  font-size: 1rem;
  text-decoration: underline;
  color: var(--bleu-apsaq-alt);
  font-weight: 600;
}
.login-forgot a:hover {
  text-decoration: none;
}

/* ================
FOOTER
================= */
.footer {
  gap: var(--space-5);
  justify-content: center;
  align-items: center;
  height: 85px;
  width: 100%;
  color: var(--white);
  background: var(--grey-800);
  padding: 0.5rem;
  margin-bottom: var(--space-2);
}
.footer img {
  display: inline;
  height: 20px;
}

/* ================
INDEX
================= */
.home,
.footer {
  display: flex;
}

.home,
.home p {
  border-radius: var(--radius-md);
}

.home {
  height: 80vh;
  background: linear-gradient(
        rgba(240, 240, 240, 0.144),
        rgba(255, 255, 255, 0.336)
      )
      center/cover no-repeat,
    url("../images/fond_accueil_3.jpg") center/cover no-repeat;
  align-items: center;
  justify-content: center;
  margin: 1rem auto !important;
}
.home p {
  color: var(--black);
  font-size: 3rem;
  font-weight: 700;
  padding: 20px;
  background-color: rgba(255, 255, 255, 0.5);
}

/* ================
MEMBRE PLAN
================= */

/* Grille 3 colonnes par défaut (desktop large) */
.membre-plan {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
  align-items: start;
  justify-items: center;
}

.membre-plan-box {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-5) 1.6rem;
  text-align: center;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
  transition: transform var(--ease), box-shadow 0.2s;
  max-width: 320px;
  width: 100%;
  border: 2px solid var(--bleu-apsaq);
}

.membre-plan-box:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.1);
}

/* Badge “membre agréé” sur la carte correspondante */
.membre-plan-agree {
  position: relative;
  border: 2px solid var(--jaune-apsaq);
  background-color: #fffce5;
  overflow: hidden;
}

.membre-plan-agree::after {
  content: "Populaire";
  position: absolute;
  top: 27px;
  right: -39px;
  transform: rotate(45deg);
  background: var(--jaune-apsaq);
  color: var(--white); /* contraste sur fond bleu */
  font-weight: 700;
  padding: 0.4rem 3.2rem;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  font-size: 0.8rem;
  border-radius: var(--radius-sm);
}

/* Prix */
.plan-price {
  font-size: 2rem;
  font-weight: 700;
  color: var(--bleu-apsaq);
  margin-bottom: 0.8rem;
}

/* Nom d’abonnement */
.plan-name {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

/* Icône */
.plan-icon i {
  font-size: 1.2rem;
  color: var(--bleu-apsaq);
}

/* Description / par personne */
.plan-person {
  font-size: 1.1rem;
  color: var(--grey-700);
}

/* ================
NOTRE CONSEIL
================= */

.notreconseil {
  display: grid;
  grid-template-columns: repeat(
    auto-fit,
    minmax(500px, 1fr)
  ); /* 2 colonnes max */
  gap: var(--space-5);
  justify-content: center;
}

.ca-box {
  display: flex;
  flex-direction: column;
  text-align: center;
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: var(--space-5);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
  transition: transform var(--ease), box-shadow 0.2s;
}

.ca-box:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.1);
}

/* Photo (on cible l’img directement, pas de classe dédiée) */
.ca-box img {
  height: 400px; /* fixe pour garder l’alignement visuel */
  width: auto;
  border-radius: 0.5rem;
  display: block;
  margin: 0 auto;
  object-fit: cover; /* sécurité si l’image est trop large/haute */
}

.ca-nom {
  font-size: 1.6rem;
  font-weight: 700;
  margin-top: 1rem;
  margin-bottom: 0.4rem;
  color: var(--bleu-apsaq-alt); /* bleu APSAQ */
}

.ca-text,
.ca-poste {
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--grey-700);
  margin-bottom: 0.8rem;
}

.ca-bio {
  font-size: 1.1rem;
  color: var(--grey-900);
  line-height: 1.6;
  margin-top: 1rem;
  text-align: justify;
}

/* Focus visibles pour accessibilité (tab navigation) */
.ca-box:focus-within {
  outline: 3px solid rgba(32, 191, 220, 0.35);
  outline-offset: 2px;
}

/* ================
NOTRE MISSION
================= */
.notremission {
  padding: 3.2rem 2rem;
  background: linear-gradient(to bottom, var(--white), #f4f9fb);
  border-radius: var(--radius-lg);
  margin: 1rem auto !important; /* reste contenu par .container */
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
}
.notremission-text {
  font-size: 1.4rem;
  line-height: 1.8;
  color: var(--grey-900);
  padding: 1rem 0;
  max-width: 950px;
  margin: 0 auto;
}
.notremission ul {
  display: grid;
  grid-template-columns: 1fr 1fr; /* 2 colonnes desktop */
  gap: 1.6rem;
  margin: var(--space-5) auto;
  max-width: 950px;
  list-style: none;
  padding: 0;
}
.notremission ul li {
  background: var(--white);
  border-left: 4px solid var(--bleu-apsaq-alt);
  padding: 1rem 1.2rem;
  font-size: 1.2rem;
  color: #444;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: transform var(--ease), background-color 0.2s;
}
.notremission ul li:hover {
  background-color: #e6faff;
  transform: translateY(-3px);
}

/* ================
ON PARLE DE NOUS
================= */
.audio {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
  margin-top: var(--space-5);
}

.audio figure {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  transition: transform var(--ease), box-shadow 0.2s;
  display: flex;
  flex-direction: column;
  text-align: center;
}
.audio figure:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
}

/* Header visuel (onde sonore par défaut) */
.audio-header {
  position: relative;
  height: 120px;
  background: url("../images/header-audio.png") center/cover no-repeat;
}

/* Icône micro en surimpression */
.audio-header .audio-icon {
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--white);
  border-radius: 50%;
  width: 60px;
  height: 60px;
  display: grid;
  place-items: center;
  font-size: 1.6rem;
  color: var(--bleu-apsaq);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

/* Texte */
.audio figcaption {
  font-size: 1.2rem;
  font-weight: 600;
  margin: 2.5rem 0 0.8rem 0; /* espace pour l’icône */
  color: #222;
  padding: 0 1rem;
}

/* Lecteur audio */
.audio audio {
  width: 90%;
  margin: 0 auto 1.2rem auto;
  display: block;
  border-radius: var(--radius-sm);
}

/* ================
WEBINAIRES
================= */

.formation-text {
  margin-top: var(--space-5);
}

/* Grille générique (à venir & passés) */
.past-webinaires-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-5);
  margin: var(--space-4) 0 var(--space-6);
  overflow: visible; /* important */
  position: relative; /* base de z-index */
  z-index: 0;
}

/* Carte */
.past-webinaire-card {
  position: relative;
  background: var(--white);
  border: 2px solid var(--bleu-apsaq);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  box-shadow: var(--shadow-md);
  transition: transform var(--ease), box-shadow var(--ease);
  position: relative;
  z-index: 0;
}
.past-webinaire-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  z-index: 20;
}

/* Date & titre */
.past-date {
  display: inline-block;
  font-weight: 700;
  color: var(--bleu-apsaq);
  margin-bottom: var(--space-2);
}
.past-title {
  font-size: 1.1rem;
  color: var(--grey-900);
  line-height: 1.5;
}

/* Tooltip (contenu optionnel “description”) */
.tooltip {
  position: relative;
}
.tooltiptext {
  position: absolute;
  top: 70%;
  left: calc(100% - 25px);
  transform: translateY(-20%);
  z-index: 30; /* plus haut que la carte */
  pointer-events: auto; /* pour laisser la souris dessus si besoin */

  display: none;
  width: 360px;
  padding: var(--space-3);
  background: var(--grey-900);
  color: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  text-align: left;
  font-size: 0.95rem;
  line-height: 1.5;
  white-space: normal;
}
.tooltip:hover .tooltiptext {
  display: block;
}

/* Affichage clavier + souris */
.tooltip:hover .tooltiptext,
.tooltip:focus-within .tooltiptext {
  display: block;
}

/* Paragraphe d’info */
.formation-paragraph {
  color: var(--grey-700);
  margin: 0 0 var(--space-2) 0;
}

/* Section “À venir” : léger accent */
.formation-text h3 {
  margin-top: var(--space-6);
  margin-bottom: var(--space-2);
}

/* ================
WEBINAIRES - FORMATIONS
================= */
.formations-apsaq {
  margin-top: var(--space-6);
  text-align: left;
}

/* 1 panneau par ligne (pleine largeur) — change à repeat(2,1fr) si tu veux 2 par ligne sur desktop */
.formations-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
  margin-top: var(--space-5);
}

/* Carte panneau: icône à gauche | contenu à droite */
.formation-card {
  display: grid;
  grid-template-columns: 72px 1fr;
  align-items: center;
  column-gap: var(--space-4);

  width: 100%;
  max-width: none;
  text-decoration: none;

  background: var(--white);
  color: var(--grey-900);
  border: 2px solid var(--bleu-apsaq);
  border-radius: var(--radius-lg);
  padding: var(--space-4) var(--space-5);
  box-shadow: var(--shadow-md);
  transition: transform var(--ease), box-shadow var(--ease);
}
.formation-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

/* Icône (pictogramme rond) */
.formation-icon {
  width: 72px;
  height: 72px;
  min-width: 72px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--bleu-apsaq-50);
  color: var(--bleu-apsaq);
  font-size: 1.8rem;
}

/* Titres & textes */
.formation-card h3 {
  margin: 0 0 var(--space-2) 0;
  color: var(--bleu-apsaq-alt);
  font-size: 1.4rem;
  font-weight: 700;
}
.formation-card p {
  margin: 0;
  color: var(--grey-700);
  line-height: 1.6;
}
