/* ================================
   RESET & ROOT VARIABLES
   ================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #010105;
    --accent-color: #E91E63;
    --secondary-color: #C28C2F;
    --tertiary-color: #451454;
    --light-bg: #ECDCC0;
    --white: #ffffff;
     --ivory: #F9F6F0;
    --text-color: #666666;
}

/* ================================
   BASE STYLES
   ================================ */

body {
    font-family: Helvetica, Arial, sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    background: var(--light-bg);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}


/* Partie desktop */
.navbar {
  width: 100%;
  background: var(--accent-color);
  /*position: relative;
  top: 60px;*/
  position: fixed;
  top: 811px;
  z-index: 100;
}
.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 15px;
  height: 78px;
}
.logo img {
  height: 98px;
  display: block;
}
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  color: #fff;
  cursor: pointer;
}
.nav-menu {
  display: flex;
  gap: 2rem;
  list-style: none;
  margin: 0;
}
.nav-menu li a {
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 2px;
  padding: 0.5rem 1rem;
}

/* Responsive breakpoint */

@media (max-width: 768px) {

  .navbar {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
  }
   
  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--accent-color);
    flex-direction: column;
    gap: 0;
    display: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    z-index: 999;
  }
  .nav-menu.active {
    display: flex;
  }
  .nav-menu li a {
    padding: 1rem;
    font-size: 1.2rem;
    border-bottom: 1px solid #fff2;
  }
  .logo img {
    height: 76px;
  }
   
  .navbar .container {
    padding: 1rem 15px;
  }

  body .page-id-32{
    padding-top: 0 !important;
  }

}



/* ================================
   HEADER HERO
   ================================ */
.header-hero {
    height: 85vh;
    min-height: 600px;
    display: flex;
    flex-direction: column;
    background: var(--light-bg);
    position: relative;
}

.header-image {
    width: 100%;
    height: inherit !important;
    overflow: hidden;
}

.header-image img {
    width: 100%;
    height: 85vh;
    object-fit: cover;
    display: block;
    min-height: 400px;      /* Sécurité desktop */
    max-height: 1000px;     /* Empêche de prendre tout l'écran sur grand écran */
}

/* Spacer du hero quand il n'y a pas d'image : garde la même hauteur que l'accueil */
.header-hero .header-image {
  min-height: 420px;           /* ajuste à la hauteur voulue */
  background: transparent;
}

/* ================================
   SECTIONS
   ================================ */

.home section.avant-menu {
    /*margin-bottom: 20px;*/
    margin-top: -40px; 
}

section.after-menu {
  padding: 4rem 0;
  background: var(--ivory);
}

.wp-singular .avant-menu {
    height: 80vh;
    min-height: 400px;      /* Sécurité desktop */
    max-height: 1000px;     /* Empêche de prendre tout l'écran sur grand écran */
    background-color: var(--light-bg);
    margin-bottom: inherit;
    margin-top: inherit; 
}


.apres-menu {
    background-color: var(--ivory);
    padding-top: 60px;
   padding-bottom: 20px;
}



.wp-block-column {
  background: var(--white);
  padding: 2.5rem 2rem;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;

  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
  width: 450px;
}


/* ================================
   VIDEO SECTION
   ================================ */

.video-section {
    padding: 4rem 0;
    background: var(--light-bg);
    margin-top: 45px;
}

.video-wrapper {
    max-width: 900px;
    margin: 0 auto;
    background: var(--light-bg);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.video-wrapper iframe {
    border-radius: 10px;
    width: 100%;
}

.video-wrapper video {
    width: 100%;
    height: auto;
    display: block;
}

/* ================================
   FORMATIONS SECTION
   ================================ */

   .cpf-info {
  margin: 2.5rem auto 3rem;
  max-width: 1100px;
  padding: 1.5rem 2rem;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.cpf-info-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.cpf-logo img {
  max-width: 210px;
  height: auto;
}

.cpf-text strong {
  display: block;
  font-size: 1.1rem;
  color: #e91e63; /* magenta */
  margin-bottom: .4rem;
}

.cpf-text p {
  margin: 0;
  color: #444;
  line-height: 1.5;
}



.formations-section {
    padding: 4rem 0;
    background: var(--light-bg);
}

.formation-duree{
    display: inline-block;
    background: var(--accent-color);
    color: var(--white);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
    width: 100%;
    text-align: center;
}

/* fleche */
.splide__arrow--prev {
  left: -2em !important;
}
.splide__arrow--next {
  right: -2em !important;
}
.splide__arrow {
  background: var(--accent-color) !important;
}
.splide__arrow svg {
  fill: var(--ivory) !important;
  height: 1.2em;
  width: 1.2em;
}
.splide__arrow {
  background: var(--accent-color);
  color: #fff;
  width: 50px; height: 50px;
  font-size: 2.5rem;
  border-radius: 50%;
  top: 50%;
  box-shadow: 0 4px 15px rgba(0,0,0,0.13);
  z-index: 20;
  transition: background 0.3s;
}
.splide__arrow--prev { left: -60px; }
.splide__arrow--next { right: -60px; }
.splide__arrow:hover { background: var(--tertiary-color);}

.slider-container {
  position: relative;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 60px;
}

.splide__slide {
  display: flex;
  justify-content: center;
  align-items: stretch;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

p.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: var(--accent-color);
    margin-bottom: 3rem;
    font-weight: 500;
}
p.section-subtitle {
    position: relative;
    top: -40px;
}
.slider-container {
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 60px;
    top: -70px;
}

.formations-slider {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 2rem 0;
    scrollbar-width: thin;
    scrollbar-color: var(--accent-color) var(--light-bg);
}

.formations-slider::-webkit-scrollbar {
    height: 8px;
}

.formations-slider::-webkit-scrollbar-track {
    background: var(--light-bg);
    border-radius: 10px;
}

.formations-slider::-webkit-scrollbar-thumb {
    background: var(--accent-color);
    border-radius: 10px;
}

.formation-card {
    flex: 0 0 350px;
    background: var(--white);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    width: 400px;
    max-width: 371px; 
}

.formation-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.formation-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, var(--accent-color), var(--tertiary-color));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

/* Thumb/image formation */
.formation-thumb img {
  width: 100%;
  max-height: 170px;
  object-fit: cover;
  border-radius: 1rem;
  border: 3.5px solid var(--accent-color);
  margin-bottom: 1.5rem;
}

.formation-placeholder {
    font-size: 4rem;
}

.formation-card h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 0.8rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
 .formation-card h2 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 0.8rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.formation-card span.dates {
    display: block;
    font-size: 1rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
    font-weight: 600;
}

.formation-card p {
    color: var(--text-color);
    line-height: 1.6;
    margin-bottom: 5rem !important;
    min-height: 60px;
    max-height: 110px !important;
    height: 86px;
}

.duration {
    display: inline-block;
    background: var(--accent-color);
    color: var(--white);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.info-btn, .btn-savoir-plus {
    display: inline-block;
    width: 100%;
    padding: 0.8rem;
    background: transparent;
    color: var(--accent-color);
    border: 2px solid var(--accent-color);
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    margin-top: 0.5rem;
    transition: all 0.3s ease;
}

.info-btn:hover, .btn-savoir-plus:hover {
    background: var(--accent-color);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(233, 30, 99, 0.3);
}

/* Slider Buttons */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: var(--accent-color);
    color: var(--white);
    border: none;
    border-radius: 50%;
    font-size: 2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: background 0.3s ease, transform 0.3s ease;
    z-index: 10;
}

.slider-btn:hover {
    background: var(--tertiary-color);
    transform: translateY(-50%) scale(1.1);
}

.prev-btn {
    left: 0;
}

.next-btn {
    right: 0;
}

/* ================================
   SAGA PAGE
   ================================ */

.saga-header {
    min-height: calc(100vh - 80px);
    display: flex;
    flex-direction: column;
    background: var(--light-bg);
    padding-bottom: 2rem;
}

.header-content-wrapper {
    flex: 1;
    padding: 3rem 2rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.saga-intro {
    text-align: center;
    margin-bottom: 2rem;
}

.saga-intro h1 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.saga-intro .subtitle {
    font-size: 1rem;
    color: var(--accent-color);
    font-weight: 600;
}

/* Timeline */
.timeline-slider-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 60px;
}

.timeline {
    position: relative;
    max-width: 100%;
    margin: 0 auto 2rem;
    padding: 2rem 0;
    overflow-x: auto;
    overflow-y: visible;
    display: flex;
    flex-wrap: nowrap;
    gap: 2rem;
    scroll-behavior: smooth;
    scrollbar-width: none;
}

.timeline::-webkit-scrollbar {
    display: none;
}

.timeline-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    min-width: 240px;
    max-width: 240px;
    flex-shrink: 0;
}

.timeline-year {
    flex: none;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--white);
    text-align: center;
    margin-bottom: 1.5rem;
    position: relative;
    background: var(--accent-color);
    padding: 0.8rem 1.5rem;
    border-radius: 30px;
    box-shadow: 0 4px 15px rgba(233, 30, 99, 0.3);
    z-index: 2;
}

.timeline-content {
    flex: none;
    width: 100%;
    background: var(--white);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.timeline-item:hover .timeline-content {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.18);
}

.timeline-content h3 {
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
    font-weight: 700;
}

.timeline-content p {
    color: var(--text-color);
    line-height: 1.6;
    font-size: 0.85rem;
}

/* Values Section */
.saga-section {
    padding: 4rem 0;
    background: var(--white);
}

.saga-values, .wp-block-columns {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.saga-values h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 3rem;
    font-weight: 700;
}

h2.section-subtitle {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    color: var(--primary-color);
}

.values-grid, .wp-block-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.wp-block-columns.cpf .wp-block-column {
    background-color: var(--light-bg) !important;
}


.value-card, .wp-block-column {
    background: var(--white);
    padding: 2.5rem 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.value-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.value-card h3, .wp-block-heading {
    font-size: 1.5rem;
    color: var(--accent-color);
}

.value-card p {
    color: var(--text-color);
    line-height: 1.8;
}

/* ================================
   RECETTES PAGE
   ================================ */ 

.recettes-header {
    height: auto;
    min-height: calc(100vh - 80px);
    display: flex;
    flex-direction: column;
    background: var(--light-bg);
}

.header-slider-wrapper {
    flex: 1;
    padding: 3rem 2rem 2rem;
    overflow-y: visible;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 600px;
}

.recettes-header .section-title {
    margin-bottom: 0.5rem;
}

.recettes-header .section-subtitle {
    margin-bottom: 2rem;
}

.recettes-header .slider-container {
    padding: 0 60px;
    margin-bottom: 3rem;
}

/* ================================
   CONTACT PAGE
   ================================ */

.contact-header {
    min-height: calc(100vh - 80px);
    display: flex;
    flex-direction: column;
    background: var(--light-bg);
    padding-bottom: 2rem;
}

.contact-content-wrapper  {
    flex: 1;
    padding: 3rem 2rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
  top: -50px;
}

.contact-display-container {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 3rem;
    margin-top: 2rem;
    align-items: start;
}

.contact-image-section {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.contact-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.contact-info-section {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.contact-info-card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.contact-icon {
    font-size: 2.5rem;
    margin-bottom: 0.8rem;
}

.contact-info-card h3 {
    font-size: 1.2rem;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.contact-info-card p {
    color: var(--text-color);
    line-height: 1.6;
    font-size: 0.95rem;
}

.contact-bottom-links {
    display: none;
}

/* formulaire de contact */

/** --- CONTACT FORM 7 STYLE CUSTOM --- */
.wpcf7 {
  background: var(--white);
  border-radius: 16px;
  box-shadow: 0 8px 35px rgba(199, 90, 153, 0.09);
  max-width: 520px;
  margin: 0 auto 2.5rem;
  padding: 2.5rem 2.2rem 2rem 2.2rem;
}
.wpcf7 form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.wpcf7 label {
  font-weight: 600;
  color: var(--accent-color);
  font-size: 1.08rem;
  margin-bottom: 0.4rem;
  line-height: 1.3;
  letter-spacing: 0.01em;
  display: block;
}

.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 textarea,
.wpcf7 select {
  width: 100%;
  border: 1.8px solid var(--accent-color);
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 1.09rem;
  transition: border 0.2s;
  margin-top: 0.33rem;
  background: var(--ivory);
  color: var(--primary-color);
  outline: none;
}
.wpcf7 input[type="text"]:focus, 
.wpcf7 input[type="email"]:focus,
.wpcf7 textarea:focus,
.wpcf7 select:focus {
  border: 2px solid var(--tertiary-color);
  background: #fff;
}

.wpcf7 textarea {
  min-height: 90px;
  resize: vertical;
  font-family: inherit;
}

.wpcf7 .wpcf7-submit,
.wpcf7 input[type="submit"] {
  margin-top: 10px;
  background: var(--accent-color);
  color: var(--white);
  font-weight: 700;
  padding: 0.95rem 2.5rem;
  border: none;
  border-radius: 25px;
  font-size: 1.12rem;
  letter-spacing: 0.04em;
  cursor: pointer;
  box-shadow: 0 2px 12px rgba(200, 20, 90, 0.13);
  transition: background 0.17s, color 0.17s, box-shadow 0.18s;
}
.wpcf7 .wpcf7-submit:hover,
.wpcf7 input[type="submit"]:hover {
  background: var(--tertiary-color);
  color: var(--ivory);
  box-shadow: 0 7px 16px rgba(200, 20, 90, 0.23);
}

.wpcf7 select {
  cursor: pointer;
}

.wpcf7 .wpcf7-not-valid {
  border-color: #ea4564 !important;
}
.wpcf7 .wpcf7-response-output {
  margin-top: 12px;
  color: var(--tertiary-color);
  background: #fce4ec;
  border-radius: 7px;
  padding: 0.7rem 1rem;
  border: 1px solid #fad6e8;
  font-size: 1rem;
}

/* Responsive */
@media (max-width: 600px) {
   .wpcf7 {
    padding: 1.1rem 0.6rem 1rem 0.6rem;
    border-radius: 10px;
    padding: 50px;
  }
}

.wpcf7 {
  max-width: 720px; /* Plus large */
}

/* Flex pour la première ligne (nom/prénom) */
.wpcf7 .row {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1rem;
}
.wpcf7 .row .col {
  flex: 1 1 0;
  min-width: 0;
}

@media (max-width: 700px) {
  .wpcf7 .row {
    flex-direction: column;
    gap: 0.5rem;
  }

   .wpcf7 {
    padding: 1.1rem 0.6rem 1rem 0.6rem;
    border-radius: 10px;
    padding: 50px;
  }
}

.wpcf7 select {
  background-color: var(--ivory);
  color: var(--primary-color);
  border: 1.8px solid var(--accent-color);
  border-radius: 10px;
  font-size: 1.09rem;
  padding: 11px 16px;
  min-width: 180px;
  appearance: none;
  outline: none;
  transition: border .2s, box-shadow .2s;
}
.wpcf7 select:focus {
  border-color: var(--tertiary-color);
  background: #fff;
  box-shadow: 0 0 0 1.5px var(--tertiary-color);
}



/* ================================
   FORMATION DETAIL PAGE
   ================================ */

.formation-detail-header {
    min-height: calc(100vh - 80px);
    display: flex;
    flex-direction: column;
    background: var(--light-bg);
    padding-bottom: 2rem;
}

.detail-content-wrapper {
    flex: 1;
    padding: 3rem 2rem 2rem;
    max-width: 1000px;
    margin: 0 auto;
    width: 100%;
    background-color: var(--light-bg);
}

.detail-content {
    background: var(--white);
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    margin: 12px auto;
    width: 63%;
}

.back-link {
    display: inline-block;
    margin-bottom: 2rem;
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
    margin-left: 140px;
    margin-right: 140px;
}

.back-link:hover {
    color: var(--tertiary-color);
}

.detail-hero {
    text-align: center;
    margin-bottom: 3rem;
}

.detail-hero .formation-icon {
    font-size: 5rem;
    margin-bottom: 1rem;
}

.detail-hero h1 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 700;
}

.detail-hero .formation-duration {
    display: inline-block;
    background: var(--accent-color);
    color: var(--white);
    padding: 0.6rem 1.5rem;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
}

.detail-content {
    background: var(--white);
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

#dates {
    font-size: 1rem;
    color: var(--secondary-color);
    margin-bottom: 2rem;
    font-weight: 600;
}

.detail-section {
    margin-bottom: 2.5rem;
}

.detail-section:last-child {
    margin-bottom: 0;
}

.detail-section h2 {
    font-size: 1.8rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
    font-weight: 700;
}

.detail-section p {
    color: var(--text-color);
    line-height: 1.8;
    font-size: 1rem;
    margin-bottom: 1rem;
}

.detail-section ul {
    list-style: none;
    padding: 0;
}

.detail-section ul li {
    color: var(--text-color);
    line-height: 2;
    font-size: 1rem;
    padding-left: 1.5rem;
    position: relative;
}

.detail-section ul li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: 700;
}

.cta-section {
    margin-top: 3rem;
    text-align: center;
}

.cta-btn {
    display: inline-block;
    padding: 1.2rem 3rem;
    background: var(--accent-color);
    color: var(--white);
    text-decoration: none;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 700;
    box-shadow: 0 5px 20px rgba(233, 30, 99, 0.3);
    transition: all 0.3s ease;
}

.cta-btn:hover {
    background: var(--tertiary-color);
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(233, 30, 99, 0.4);
}

/* ================================
   FOOTER
   ================================ */

footer {
    background: var(--white);
    padding: 3rem 0 2rem;
    text-align: center;
    border-top: 1px solid #dddddd;
    margin-top: 90px;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-decoration: none;
    border-radius: 5px;
    font-weight: 700;
    font-size: 1.2rem;
    transition: background 0.3s ease;
}

.social-links a:hover {
    background: var(--accent-color);
}

.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    list-style: none;
}

.footer-links a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.3s ease;
}

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

.tagline {
    color: var(--accent-color);
    font-size: 0.9rem;
    font-weight: 600;
    margin-top: 1rem;
}

/* ================================
   RESPONSIVE DESIGN
   ================================ */

   @media (max-width: 768px) {
  .nav-menu {
    display: none;
    flex-direction: column;
  }

  .nav-menu.active {
    display: flex;
  }
}

@media (max-width: 768px) {
  .cpf-info-inner {
    flex-direction: column;
    text-align: center;
  }

  .cpf-logo img {
    max-width: 90px;
  }
}


@media (max-width: 768px) {
    body {
        padding-top: 0;
    }
   
    .logo {
        font-size: 1.5rem;
    }

    .logo img {
        height: 76px;
        border-radius: 20px !important;
    }

    .menu-toggle {
        display: block;
        position: relative;
        left: -10px;
    }

    #main-nav .menu-item {
        height: 50px;
    }

    
    .nav-menu.active {
        display: flex;
    }

    /* sections */

    .header-image img {
        height: 32vh;
    }

    .video-section {
        margin-top: -337px;
    }

    /* saga page */
    .timeline-slider-container {
        position: relative;
        top: 80px;
    }
    
    .wp-singular .avant-menu {
        width: 100% !important ;
        height: 98vh !important;
        min-height: 300px !important ;
        max-height: 982px !important;
    }

    .avant-menu > .saga-intro {
        position: relative !important;
        top: 112px !important;
    }

      .avant-menu > .saga-intro {
        top: 95px !important;
    }

    p.section-subtitle {
        position: relative;
        top: -14px !important;
        }

    .formation-card {
        flex: 0 0 200px;
        margin-top: 50px;
    }

    /* Formations */
    .formations-section {
        padding: 3rem 0;
    }

    .header-slider-wrapper {
        padding: 1rem 1rem 1rem;
        min-height: 350px;
    }

    .splide__slide {
        display: flex;
        justify-content: center;
        /*align-items: stretch; */
    }


    .slider-container {
        margin-top: 51px;
    }
    .splide__arrow {
 
    font-size: 1.5rem !important;

    }

    .formations-slider {
        padding: 1.5rem 0;
        gap: 1.5rem;
    }

    /*.formation-card {
        flex: 0 0 280px;
        padding: 1.5rem;
    }*/

    .formation-card {
        width: 95%;
        max-width: 320px; /* clé du rendu comme image de droite */
        margin: 0 auto;
        padding: 1.2rem;
        border-radius: 18px;
    }


    .formation-image {
        height: 160px;
    }

    .formation-placeholder {
        font-size: 3rem;
    }

    .slider-btn {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }

    .detail-content {
        width: 90%;
    }
    .cta-btn {
        margin: auto 120px;
    }

    .breadcrumb {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-bottom: 2rem;
    margin-left: 0 !important;
    margin-right: 0 !important;
    text-align: center;
  }
  .breadcrumb .back-link {
    margin: 0 !important;
    width: auto;
    text-align: center;
    display: inline-block;
  }

  .video-wrapper > iframe {
    width: 100% !important;
  }

  .contact-info-section {
    width: 100% !important ;
    margin-left: 20px !important;
    }   

  .contact-display-container {
    grid-template-columns: 1fr 1fr;
    }

   .contact-image-section {
        display: none;
        visibility: hidden;
    }

    /* changer id si changement page */
    .page-id-204 .apres-menu {
        margin-top: 220px;
    }

    .contact-info-card {
        padding: 0.5rem !important;
        width: 170px;
        font-size: 1.1em !important;
    }

     .wpcf7 {
        padding: 1.1rem 0.6rem 1rem 0.6rem;
        border-radius: 10px;
        padding: 50px;
    }

  footer {
    /*margin-top: 50px !important; */
    }

    


   
}

@media (max-width: 480px) {
    body {
        padding-top: 0;
    }

     body.admin-bar .navbar {
       /* margin-top: 44px; */ /* hauteur admin bar mobile */
        top: 44px;
     }

     
    body:not(.admin-bar) .navbar {
        top: 0;
    }

    .navbar {
        position: fixed !important;
        width: 100% !important;
        top: 0 !important;
        left: 0 !important;
  }

    .navbar .container {
    padding: 1rem 15px;
    width: 100%;
  }

    .navbar .container {
        padding: 0.8rem 15px;
    }

    .logo {
        font-size: 1.3rem;
        letter-spacing: 2px;
    }

    .logo img {
        height: 76px;
        border-radius: 20px !important;
    }

    .nav-menu {
        top: 100%;
        padding: 0.8rem;
    }

    .nav-menu a {
        font-size: 0.85rem;
        padding: 0.5rem 0;
    }

    .menu-toggle {
        display: block;
        position: relative;
        left: -10px;
    }

     .avant-menu > .saga-intro {
        position: relative !important;
        top: 52px !important;
    }

    p.section-subtitle {
        position: relative;
        top: -106px !important;
    }

    .detail-content {
        width: 100% !important;
    }

    video-wrapper > iframe {
    width: 90% !important;
  }
  .contact-display-container {
        position: relative;
        left: -22px;
    }

  .contact-content-wrapper {
    padding: 3rem 1.5rem 2rem;
    }

  .contact-content-wrapper p.section-subtitle {
    top: -20px !important;
  }

  .contact-image-section {
    display: none;
    visibility: hidden;
    }

    .contact-info-card {
        /*padding: 3.5rem; */
        padding: .5rem !important;
    }

    /* changer id si changement page */
    .page-id-204 .apres-menu {
        margin-top: 220px;
    }

    footer {
       /* margin-top: 200px !important; */
    }


    
}

@media (max-width: 360px) {
    .navbar {
        position: fixed !important;
        width: 90% !important;
        top: 0 !important;
        left: 0 !important;
  }

  .navbar .container {
    padding: 1rem 15px;
    width: 100%;
  }

  .contact-display-container {
    position: relative;
    left: -22px;
    }

  .contact-content-wrapper p.section-subtitle {
    top: -10px !important;
  }

  .contact-info-card {
       /* padding: 2.5rem !important; */
    }


  /* changer id si changement page */
    .page-id-204 .apres-menu {
        margin-top: 100px;
    }

    .contact-page .saga-intro h1 {
        position: relative;
        top: 10px !important;
    }
    .contact-content-wrapper {
    padding: 3rem 1.2rem 1.5rem;
    }
   
}
