@charset "UTF-8";

/* ----------------------------------------------------------------
    Page Conférences
    Feuille autonome (le thème Polo n'est pas chargé sur cette page) :
    valeurs reprises de la maquette Figma validée avec Florian.
------------------------------------------------------------------*/
:root {
  --navy: #213f50;
  --navy-deep: #142d3d;
  --yellow: #f5c04d;
  --off-white: #f5f7f7;
  --slate: #65717a;
  --line: #d5dde0;
  --line-light: #e2e8ea;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 70px;
}

body {
  margin: 0;
  font-family: "Poppins", system-ui, sans-serif;
  background: #ffffff;
  color: var(--navy);
  -webkit-font-smoothing: antialiased;
}

body.cf-menu-open {
  overflow: hidden;
}

h1,
h2,
h3,
p {
  margin: 0;
}

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

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

.cf-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
}

.cf-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

/* Titres de section : graisse et interlignage communs */
.cf-title {
  font-weight: 700;
  line-height: 1.05;
  color: var(--navy);
}

.cf-text {
  font-size: 15px;
  font-weight: 300;
  line-height: 1.8;
  color: var(--slate);
}

.cf-bar {
  width: 48px;
  height: 3px;
  background-color: var(--yellow);
}

/* Boutons */
.cf-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 32px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-align: center;
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease,
    filter 0.2s ease;
}

.cf-btn:active {
  transform: scale(0.98);
}

.cf-btn svg {
  transition: transform 0.3s ease;
}

.cf-btn:hover svg {
  transform: translateX(4px);
}

.cf-btn-yellow {
  background-color: var(--yellow);
  color: var(--navy-deep);
}

.cf-btn-yellow:hover {
  filter: brightness(1.1);
}

.cf-btn-outline {
  border-color: rgba(255, 255, 255, 0.5);
  color: #ffffff;
}

.cf-btn-outline:hover {
  border-color: #ffffff;
  background-color: #ffffff;
  color: var(--navy-deep);
}

.cf-btn-navy {
  padding: 16px 40px;
  background-color: var(--navy);
  color: #ffffff;
}

.cf-btn-navy:hover {
  filter: brightness(1.1);
}

/* Apparition légère au scroll (désactivée sans JS et si l'utilisateur
   réduit les animations) */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(32px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}

.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* ----------------------------------------------------------------
    Navigation
------------------------------------------------------------------*/
.cf-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background-color: var(--navy);
  transition: background-color 0.3s ease;
}

.cf-nav.is-scrolled {
  background-color: var(--navy-deep);
}

.cf-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.cf-logo {
  color: var(--yellow);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.cf-nav-links,
.cf-nav-social {
  display: none;
  margin: 0;
  padding: 0;
  list-style: none;
}

.cf-nav-links a {
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
  color: #ffffff;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  transition: color 0.2s ease;
}

.cf-nav-links a:hover,
.cf-nav-links a[aria-current="page"] {
  color: var(--yellow);
}

.cf-nav-links a[aria-current="page"] {
  border-bottom-color: var(--yellow);
}

/* "Conférences" est une page à part : séparée des rubriques de l'accueil
   par un trait vertical et présentée en bouton (plein sur sa propre page) */
.cf-nav-links .cf-nav-page {
  position: relative;
  margin-left: 12px;
  padding-left: 32px;
}

.cf-nav-links .cf-nav-page::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 1px;
  height: 22px;
  background-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-50%);
}

.cf-nav-page a {
  display: inline-block;
  padding: 8px 16px;
  border: 1px solid var(--yellow);
  border-radius: 6px;
  color: var(--yellow);
  transition:
    background-color 0.2s ease,
    color 0.2s ease;
}

.cf-nav-links .cf-nav-page a[aria-current="page"],
.cf-nav-page a[aria-current="page"],
.cf-nav-page a:hover {
  border-bottom-color: var(--yellow);
  background-color: var(--yellow);
  color: var(--navy-deep);
}

.cf-nav-social a {
  display: block;
  color: #ffffff;
  transition: color 0.2s ease;
}

.cf-nav-social a:hover {
  color: var(--yellow);
}

.cf-nav-toggle {
  padding: 8px;
  border: 0;
  background: none;
  cursor: pointer;
}

.cf-nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: #ffffff;
  transition:
    transform 0.3s ease,
    opacity 0.3s ease;
}

.cf-nav-toggle span + span {
  margin-top: 5px;
}

.cf-nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.cf-nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.cf-nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.cf-nav-mobile {
  max-height: 0;
  overflow: hidden;
  background-color: var(--navy-deep);
  transition: max-height 0.3s ease;
}

.cf-nav-mobile.is-open {
  max-height: 420px;
}

.cf-nav-mobile ul {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 0;
  padding: 8px 32px 24px;
  list-style: none;
}

.cf-nav-mobile a {
  display: block;
  color: #ffffff;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.1em;
}

.cf-nav-mobile .cf-nav-page {
  margin-top: 4px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.cf-nav-mobile .cf-nav-page a {
  display: inline-block;
}

/* ----------------------------------------------------------------
    01 — Hero
------------------------------------------------------------------*/
.cf-hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  width: 100%;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
}

.cf-hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 65% center;
}

.cf-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    100deg,
    rgba(20, 45, 61, 0.93) 0%,
    rgba(20, 45, 61, 0.72) 45%,
    rgba(20, 45, 61, 0.15) 70%,
    transparent 100%
  );
}

.cf-hero .cf-container {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-top: 128px;
  padding-bottom: 80px;
}

.cf-hero-content {
  max-width: 580px;
}

.cf-hero h1 {
  margin-bottom: 24px;
  color: #ffffff;
  font-size: clamp(44px, 6.5vw, 76px);
  font-weight: 700;
  line-height: 1.05;
}

.cf-hero-subtitle {
  margin-bottom: 16px;
  color: var(--yellow);
  font-size: 18px;
  font-style: italic;
  font-weight: 300;
  line-height: 1.55;
}

.cf-hero-text {
  max-width: 460px;
  margin-bottom: 40px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 15px;
  font-weight: 300;
  line-height: 1.625;
}

.cf-hero-actions {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ----------------------------------------------------------------
    02 — Du sport de haut niveau à l'entreprise
------------------------------------------------------------------*/
.cf-sport {
  padding: 96px 0;
  background: #ffffff;
}

.cf-sport-grid {
  display: grid;
  gap: 32px;
  align-items: center;
}

.cf-sport h2 {
  margin-bottom: 24px;
  font-size: clamp(34px, 4vw, 56px);
  line-height: 1;
  letter-spacing: -0.01em;
}

.cf-sport .cf-bar {
  margin-bottom: 32px;
}

.cf-sport .cf-text + .cf-text {
  margin-top: 24px;
}

.cf-sport-visual {
  position: relative;
  padding-bottom: 48px;
}

.cf-sport-main {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 12px;
}

.cf-sport-main img,
.cf-sport-secondary img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cf-sport-main img {
  object-position: 40% center;
}

.cf-sport-secondary {
  position: absolute;
  bottom: 0;
  left: -16px;
  width: 38%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border: 4px solid #ffffff;
  border-radius: 12px;
  box-shadow:
    0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0 8px 10px -6px rgba(0, 0, 0, 0.1);
}

.cf-sport-secondary img {
  object-position: top;
}

.cf-sport-accent {
  position: absolute;
  top: 0;
  right: 0;
  width: 4px;
  height: 80px;
  background-color: var(--yellow);
}

/* ----------------------------------------------------------------
    03 — Les conférences (grille bento)
------------------------------------------------------------------*/
.cf-themes {
  padding: 96px 0;
  background-color: var(--navy-deep);
}

.cf-section-head {
  display: grid;
  gap: 32px;
  margin-bottom: 48px;
}

.cf-themes h2 {
  color: #ffffff;
  font-size: clamp(32px, 4vw, 52px);
}

.cf-themes .cf-section-head p {
  color: rgba(255, 255, 255, 0.5);
}

.cf-bento {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cf-bento-item {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 300px;
  padding: 32px;
  overflow: hidden;
  border-radius: 12px;
  background-color: var(--navy);
}

.cf-bento-item img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.cf-bento-item:hover img {
  transform: scale(1.05);
}

/* Les textes définitifs sont plus longs que dans la maquette : le dégradé
   remonte un peu plus haut pour qu'ils restent lisibles sur la photo. */
.cf-bento-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(20, 45, 61, 0.95) 0%,
    rgba(20, 45, 61, 0.8) 50%,
    rgba(20, 45, 61, 0.3) 80%,
    transparent 100%
  );
}

.cf-bento-body {
  text-shadow: 0 1px 12px rgba(20, 45, 61, 0.6);
}

.cf-bento-body {
  position: relative;
  z-index: 1;
}

.cf-bento-item h3 {
  color: #ffffff;
  font-size: clamp(20px, 2vw, 26px);
  font-weight: 700;
  line-height: 1.1;
}

.cf-bento-item p {
  max-width: 420px;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
  font-weight: 300;
  line-height: 1.7;
}

.cf-bento-resilience img {
  object-position: 50% 60%;
}

.cf-bento-resilience h3 {
  font-size: clamp(24px, 2.8vw, 34px);
}

.cf-bento-depassement img {
  object-position: 50% 15%;
}

.cf-bento-depassement h3 {
  font-size: clamp(22px, 2.2vw, 28px);
}

.cf-bento-collectif img {
  object-position: 50% 30%;
}

.cf-bento-adversite img {
  object-position: 50% 20%;
}

/* ----------------------------------------------------------------
    04 — Formats d'intervention
------------------------------------------------------------------*/
.cf-formats {
  display: grid;
  overflow: hidden;
  background: #ffffff;
}

.cf-formats-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 64px 40px;
}

.cf-formats h2 {
  margin-bottom: 20px;
  font-size: clamp(26px, 3vw, 44px);
}

.cf-formats h2 span {
  color: var(--yellow);
}

.cf-formats .cf-text {
  margin-bottom: 24px;
}

.cf-formats .cf-bar {
  width: 40px;
  margin-bottom: 40px;
}

.cf-formats-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: 32px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.cf-formats-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  border-top: 1px solid var(--line-light);
  color: var(--navy);
  font-size: 15px;
  font-weight: 600;
  transition: color 0.2s ease;
}

.cf-formats-list li:nth-child(-n + 2) a {
  border-top: 0;
}

.cf-formats-list a:hover {
  color: var(--yellow);
}

.cf-formats-list svg {
  flex-shrink: 0;
  margin-left: 8px;
  color: var(--yellow);
  transition: transform 0.2s ease;
}

.cf-formats-list a:hover svg {
  transform: translateX(4px);
}

.cf-formats-visual {
  position: relative;
  min-height: 320px;
  overflow: hidden;
}

.cf-formats-visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 40% center;
}

.cf-formats-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(20, 45, 61, 0.25);
}

/* ----------------------------------------------------------------
    05 — Palmarès
------------------------------------------------------------------*/
.cf-stats {
  padding: 80px 0;
  background-color: var(--navy);
}

.cf-stats-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  margin: 0;
  padding: 0;
  list-style: none;
}

.cf-stats-list li {
  padding: 40px 16px;
  text-align: center;
}

/* Mobile (2 x 2) : séparateurs entre colonnes et entre lignes */
.cf-stats-list li:nth-child(odd) {
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.cf-stats-list li:nth-child(-n + 2) {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.cf-stats-number {
  display: block;
  margin-bottom: 12px;
  color: var(--yellow);
  font-size: clamp(54px, 7vw, 96px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
}

.cf-stats-label {
  display: block;
  color: rgba(255, 255, 255, 0.55);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

/* ----------------------------------------------------------------
    06 — Grande section photographique
------------------------------------------------------------------*/
.cf-photo {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  min-height: 75vh;
  padding: 0 32px 80px;
  overflow: hidden;
}

.cf-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 55% 100%;
}

.cf-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to top,
    rgba(20, 45, 61, 0.9) 0%,
    rgba(20, 45, 61, 0.45) 45%,
    rgba(20, 45, 61, 0.15) 100%
  );
}

.cf-photo-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  text-align: center;
}

.cf-photo h2 {
  margin-bottom: 24px;
  color: #ffffff;
  font-size: clamp(36px, 5vw, 64px);
}

.cf-photo h2 span {
  color: var(--yellow);
}

.cf-photo p {
  color: rgba(255, 255, 255, 0.75);
  text-shadow: 0 1px 12px rgba(20, 45, 61, 0.7);
  font-size: 16px;
  font-weight: 300;
  line-height: 1.8;
}

/* ----------------------------------------------------------------
    07 — Pourquoi faire intervenir Florian ?
------------------------------------------------------------------*/
.cf-why {
  padding: 96px 0;
  overflow: hidden;
  background-color: var(--off-white);
}

.cf-why-grid {
  display: grid;
  max-width: 1280px;
  margin: 0 auto;
}

.cf-why-visual {
  padding: 0 32px;
}

.cf-why-visual img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  border-radius: 12px;
  object-fit: cover;
  object-position: 100% 30%;
}

.cf-why-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 32px;
}

.cf-why h2 {
  margin-bottom: 48px;
  font-size: clamp(28px, 3.5vw, 48px);
}

.cf-why-list {
  margin: 0;
  padding: 0;
  border-bottom: 1px solid var(--line);
  list-style: none;
}

.cf-why-list li {
  padding: 32px 0;
  border-top: 1px solid var(--line);
}

.cf-why-list h3 {
  margin-bottom: 12px;
  color: var(--navy);
  font-size: 20px;
  font-weight: 600;
}

.cf-why-list p {
  color: var(--slate);
  font-size: 14px;
  font-weight: 300;
  line-height: 1.8;
}

/* ----------------------------------------------------------------
    08 — Témoignages
------------------------------------------------------------------*/
.cf-testimonials {
  padding: 96px 0;
  overflow: hidden;
  background: #ffffff;
}

.cf-testimonials h2 {
  margin-bottom: 64px;
  font-size: clamp(28px, 3.5vw, 48px);
}

.cf-testimonials-grid {
  display: grid;
  gap: 32px;
}

.cf-quote-main {
  position: relative;
  margin: 0;
  padding: 40px;
  border-radius: 12px;
  background-color: var(--navy);
}

.cf-quote-main::before {
  content: '"';
  position: absolute;
  top: 16px;
  left: 40px;
  color: var(--yellow);
  font-size: 80px;
  font-weight: 700;
  line-height: 1;
  opacity: 0.25;
}

.cf-quote-main p {
  margin: 24px 0 32px;
  color: #ffffff;
  font-size: 18px;
  font-style: italic;
  font-weight: 300;
  line-height: 1.75;
}

.cf-quote-side {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.cf-quote {
  margin: 0;
  padding: 32px;
  border-radius: 12px;
  background-color: var(--off-white);
}

.cf-quote p {
  margin-bottom: 24px;
  color: var(--slate);
  font-size: 14px;
  font-style: italic;
  font-weight: 300;
  line-height: 1.75;
}

.cf-quote-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cf-avatar {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background-color: rgba(33, 63, 80, 0.125);
  color: var(--navy);
  font-size: 11px;
  font-weight: 700;
}

.cf-quote-main .cf-avatar {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background-color: var(--yellow);
  color: var(--navy-deep);
  font-size: 14px;
}

.cf-quote-name {
  display: block;
  color: var(--navy);
  font-size: 13px;
  font-style: normal;
  font-weight: 600;
}

.cf-quote-role {
  display: block;
  color: var(--slate);
  font-size: 11px;
}

/* ----------------------------------------------------------------
    09 — Appel à l'action
------------------------------------------------------------------*/
.cf-cta {
  display: grid;
  overflow: hidden;
  background-color: var(--navy-deep);
}

.cf-cta-visual {
  position: relative;
  min-height: 320px;
  overflow: hidden;
}

.cf-cta-visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60% 20%;
}

.cf-cta-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to right, transparent 50%, rgba(20, 45, 61, 0.6) 100%);
}

.cf-cta-visual::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  width: 3px;
  background-color: var(--yellow);
}

.cf-cta-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 64px 40px;
}

.cf-cta h2 {
  margin-bottom: 24px;
  color: #ffffff;
  font-size: clamp(28px, 3.2vw, 48px);
  line-height: 1.08;
}

.cf-cta p {
  margin-bottom: 40px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 15px;
  font-weight: 300;
  line-height: 1.85;
}

.cf-cta .cf-btn-yellow:hover {
  background-color: #ffffff;
  filter: none;
}

/* ----------------------------------------------------------------
    10 — Formulaire
------------------------------------------------------------------*/
.cf-contact {
  padding: 96px 0;
  background-color: var(--off-white);
}

.cf-contact .cf-section-head {
  gap: 48px;
  margin-bottom: 64px;
}

.cf-contact h2 {
  font-size: clamp(28px, 3.5vw, 48px);
}

.cf-form-grid {
  display: grid;
  gap: 24px;
  margin-bottom: 24px;
}

.cf-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cf-field label {
  color: var(--navy);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.cf-field label span {
  color: var(--yellow);
}

.cf-field input,
.cf-field select,
.cf-field textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background-color: #ffffff;
  color: var(--navy);
  font-family: inherit;
  font-size: 14px;
  transition: border-color 0.2s ease;
}

.cf-field input,
.cf-field select {
  height: 52px;
}

.cf-field select {
  padding-right: 44px;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%23213F50' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 18px center;
  cursor: pointer;
}

.cf-field textarea {
  resize: none;
}

.cf-field input::placeholder,
.cf-field textarea::placeholder {
  color: #9aa4ab;
}

.cf-field input:focus,
.cf-field select:focus,
.cf-field textarea:focus {
  border-color: var(--navy);
  outline: none;
}

/* Classe ajoutée par js/email.js sur un champ requis vide ou invalide */
.cf-field .field-error {
  border-color: #ce3838;
}

.cf-form-message {
  margin-bottom: 32px;
}

.cf-form-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.cf-form-footer p {
  color: var(--slate);
  font-size: 12px;
}

.cf-form-footer p span {
  color: var(--yellow);
}

/* Messages de retour injectés par js/email.js */
.cf-contact .form-error,
.cf-contact .form-success {
  margin-top: 24px;
  padding: 16px 20px;
  border-radius: 8px;
  background-color: var(--navy);
  color: #ffffff;
  font-size: 14px;
}

.cf-contact .form-error {
  background-color: #ce3838;
}

/* ----------------------------------------------------------------
    Pied de page
------------------------------------------------------------------*/
.cf-footer {
  background-color: var(--navy-deep);
}

.cf-footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 48px;
  padding-bottom: 48px;
}

.cf-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.cf-footer-links a {
  color: rgba(255, 255, 255, 0.5);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color 0.2s ease;
}

.cf-footer-links a:hover {
  color: var(--yellow);
}

/* Même séparation que dans le menu : la page Conférences à part */
@media (min-width: 768px) {
  .cf-footer-links .cf-footer-page {
    padding-left: 24px;
    border-left: 1px solid rgba(255, 255, 255, 0.2);
  }
}

.cf-footer-links .cf-footer-page a {
  color: var(--yellow);
}

.cf-footer-legal {
  color: rgba(255, 255, 255, 0.3);
  font-size: 11px;
}

.cf-footer-legal a:hover {
  color: var(--yellow);
}

/* ----------------------------------------------------------------
    Responsive
------------------------------------------------------------------*/
@media (max-width: 639px) {
  /* Sur téléphone, le titre s'enroule librement : évite un « & » seul
     sur sa ligne */
  .cf-hero h1 {
    font-size: clamp(32px, 10vw, 44px);
  }

  .cf-hero h1 br {
    display: none;
  }
}

@media (max-width: 479px) {
  .cf-formats-list {
    grid-template-columns: 1fr;
  }

  .cf-formats-list li:nth-child(2) a {
    border-top: 1px solid var(--line-light);
  }
}

@media (max-width: 767px) {
  /* Cases empilées : on garde une bonne part de photo au-dessus du texte */
  .cf-bento-item {
    min-height: 440px;
  }
}

@media (min-width: 640px) {
  .cf-hero-actions {
    flex-direction: row;
  }
}

@media (min-width: 768px) {
  /* Tablette : 2 colonnes, les colonnes de la maquette seraient trop
     étroites pour les textes */
  .cf-bento {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: minmax(360px, auto);
    gap: 10px;
  }

  .cf-bento-resilience,
  .cf-bento-adversite {
    grid-column: 1 / 3;
  }

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

  .cf-footer-inner {
    flex-direction: row;
  }
}

@media (min-width: 1024px) {
  .cf-container {
    padding: 0 64px;
  }

  .cf-nav-inner {
    height: 70px;
  }

  .cf-logo {
    font-size: 24px;
  }

  .cf-hero {
    align-items: center;
  }

  .cf-hero .cf-container {
    padding-top: 0;
    padding-bottom: 0;
  }

  .cf-hero-subtitle {
    font-size: 20px;
    line-height: 1.4;
  }

  .cf-sport,
  .cf-themes,
  .cf-why,
  .cf-testimonials,
  .cf-contact {
    padding: 144px 0;
  }

  .cf-stats {
    padding: 96px 0;
  }

  .cf-sport-grid,
  .cf-section-head,
  .cf-testimonials-grid {
    grid-template-columns: repeat(12, 1fr);
  }

  .cf-sport-grid {
    gap: 48px;
  }

  .cf-sport-text {
    grid-column: span 5;
  }

  .cf-sport-visual {
    grid-column: span 7;
    padding-bottom: 40px;
  }

  .cf-sport-main {
    margin-left: 32px;
  }

  .cf-section-head h2 {
    grid-column: span 5;
  }

  .cf-section-head p {
    display: flex;
    align-items: flex-end;
    grid-column: 8 / span 5;
  }

  .cf-formats,
  .cf-cta {
    grid-template-columns: repeat(2, 1fr);
    min-height: 520px;
  }

  .cf-formats-content,
  .cf-cta-content {
    padding: 80px 64px;
  }

  .cf-formats-visual,
  .cf-cta-visual {
    min-height: 100%;
  }

  .cf-stats-list {
    grid-template-columns: repeat(4, 1fr);
  }

  .cf-stats-list li,
  .cf-stats-list li:nth-child(-n + 2) {
    border-bottom: 0;
  }

  .cf-stats-list li:not(:last-child) {
    border-right: 1px solid rgba(255, 255, 255, 0.1);
  }

  .cf-photo {
    padding: 0 64px 112px;
  }

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

  /* Desktop : photo calée sur le bord droit de sa colonne, comme la maquette */
  .cf-why-visual {
    padding: 0 0 0 64px;
  }

  .cf-why-content {
    padding: 0 64px;
  }

  .cf-testimonials-grid .cf-quote-main {
    grid-column: span 7;
    padding: 48px;
  }

  .cf-quote-main p {
    font-size: 20px;
  }

  .cf-quote-side {
    grid-column: span 5;
  }
}

/* Menu complet seulement quand il tient sans se serrer contre le logo
   et les réseaux sociaux */
@media (min-width: 1200px) {
  .cf-nav-links {
    display: flex;
    align-items: center;
    gap: 20px;
  }

  .cf-nav-social {
    display: flex;
    align-items: center;
    gap: 16px;
  }

  .cf-nav-toggle,
  .cf-nav-mobile {
    display: none;
  }
}

@media (min-width: 1280px) {
  .cf-nav-links {
    gap: 32px;
  }

  /* Grille bento de la maquette : 3 colonnes, 2 lignes */
  .cf-bento {
    grid-template-columns: repeat(3, 1fr);
    /* 2e ligne plus haute que la maquette (300px) : les textes définitifs
       sont plus longs que le Lorem Ipsum. minmax laisse les cases grandir
       si besoin. */
    grid-template-rows: minmax(320px, auto) minmax(380px, auto);
    grid-auto-rows: auto;
  }

  .cf-bento-resilience {
    grid-column: 1 / 3;
    grid-row: 1;
  }

  .cf-bento-depassement {
    grid-column: 3;
    grid-row: 1 / 3;
  }

  .cf-bento-collectif {
    grid-column: 1;
    grid-row: 2;
  }

  .cf-bento-adversite {
    grid-column: 2;
    grid-row: 2;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .js [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .cf-bento-item img,
  .cf-btn,
  .cf-btn svg {
    transition: none;
  }
}
