 :root {
  --primary-blue: #A7C7E7;
  --primary-purple: #F3E6FF;
  --accent-blue: #4A90E2;
  --accent-purple: #9B51E0;
  --text-dark: #2D3748;
  --text-light: #718096;
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
  --nav-height: 80px;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  color: var(--text-dark);
  line-height: 1.6;
  background-color: #f8f9fa;
}

/* Header Styles */
.header {
  background: linear-gradient(to right, #000000, #3533cd);
  color: white;
  padding: 0.75rem 2rem;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  height: var(--nav-height);
  box-shadow: var(--shadow);
}

.header-content {
  width: 100%;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-container img {
  display: block;
  height: auto;
  max-height: var(--nav-height);
  vertical-align: middle;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
  padding: 0;
  margin: 0;
}

.nav-menu a {
  text-decoration: none;
  color: white;
  font-weight: 500;
  transition: var(--transition);
  padding: 0.5rem 1rem;
  border-radius: 4px;
}

.nav-menu a:hover {
  background-color: #f5f5f5;
  color: var(--accent-purple);
}

.dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  box-shadow: var(--shadow);
  border-radius: 8px;
  padding: 0.5rem 0;
  min-width: 200px;
  display: block;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.dropdown:hover .dropdown-menu {
  display: block;
  opacity: 1;
  visibility: visible;
}

.dropdown-menu a {
  padding: 0.5rem 1rem;
  display: block;
  text-decoration: none;
  color: var(--text-dark);
  background-color: transparent;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.dropdown-menu a:hover {
  color: var(--accent-purple);
  background-color: #f5f5f5;
}

.dropdown-trigger {
  cursor: pointer;
  color: white;
}

/* Hero Banner */
.hero-banner {
  background-image: url('../images/accueil.webp');
  background-size: cover;
  background-position: center;
  margin: calc(var(--nav-height) + 2rem) 2rem 2rem 2rem;
  border-radius: 12px;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  position: relative;
  overflow: hidden;
  flex-direction: column;
}

.hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1200px;
  padding: 1rem;
  text-align: center;
}

.hero-content h1 {
  font-size: 3.5rem;
  font-weight: 900;
  margin-bottom: 2rem;
  letter-spacing: -0.5px;
  color: FFFFFF;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.search-container {
  position: relative;
  margin: 2rem auto 0;
  max-width: 600px;
  display: flex;
  justify-content: center;
}

.search-input {
  width: 100%;
  padding: 1rem 3rem;
  border: none;
  border-radius: 24px;
  font-size: 1rem;
  background: white;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  transition: box-shadow 0.3s ease;
}

.search-input:focus {
  outline: none;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
}

.search-container i {
  position: absolute;
  left: 1.2rem;
  top: 50%;
  transform: translateY(-50%);
  color: #9AA0A6;
  font-size: 1.2rem;
  z-index: 2;
}

/* Accès rapide */
.formation-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  padding: 1rem;
  flex-wrap: wrap;
}

.formation-card {
  background: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  text-align: center;
  width: 300px;
  transition: transform 0.3s ease;
}

.formation-card:hover {
  transform: scale(1.05);
  background-color: #FFFFFA;
}

.formation-card:hover,
.formation-card:hover * {
  color: var(--accent-purple);
}

.formation-card a {
  text-decoration: none;
  color: #000000;
}

.formation-card h3 {
  margin: 0;
}
    
.formation-card span {
  font-weight: bold;
}

/* Formation à succès */
.training-sessions h2 {
  font-size: 2.2em;
  margin-bottom: 3rem;
  text-align: center;
}

.training-sessions {
    max-width: 70rem;
    margin: 2rem auto;
    position: relative;
    padding: 0 4rem;
}

.sessions-slider {
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    width: 100%;
}

.sessions-grid {
    display: flex;
    gap: 1.5rem;
    transition: transform 0.4s ease-in-out;
    width: max-content;
}

.session-card {
    position: relative;
    flex: 0 0 calc(33.33% - 1rem);
    max-width: 340px;
    height: 320px;
    border-radius: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.session-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.2rem;
    color: white;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.4) 100%);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    height: 12rem;
    overflow: hidden;
}

.card-overlay h3 {
    font-size: 1.1rem;
    line-height: 1.3;
    max-height: 2.6rem;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.card-overlay p,
.session-meta,
.btn-en-savoir-plus {
    display: none;
    opacity: 0;
    transition: all 0.3s ease;
}

.rating {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 10px;
}

.rating .stars {
    color: #ffd700;
}

.session-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    margin-top: auto;
}

.btn-en-savoir-plus {
    background-color: #4A90E2;
    color: white;
    padding: 0.8rem 1.2rem;
    text-decoration: none;
    border-radius: 8px;
    align-self: start;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: auto;
    transition: background 0.3s ease;
}

.btn-en-savoir-plus:hover {
    background-color: #A7C7E7;
}

.session-card:hover .card-overlay {
    height: 100%;
    background: linear-gradient(to top, rgba(18,20,40,0.95) 0%, rgba(18,20,40,0.8) 100%);
}

.session-card:hover .card-overlay p,
.session-card:hover .session-meta,
.session-card:hover .btn-en-savoir-plus {
    display: block;
    opacity: 1;
    margin-bottom: 12px;
}

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

.slider-prev {
    left: -3rem;
}

.slider-next {
    right: -3rem;
}

/* expertise */
.morringan-expertise {
    background: linear-gradient(135deg, #0d1b2a 0%, #1b263b 100%);
    color: white;
    padding: 80px 20px;
    text-align: center;
}

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

h2 {
    font-size: 2.2em;
    margin-bottom: 3rem;
    font-weight: 600;
}

.intro-text {
    font-size: 1.2em;
    max-width: 700px;
    margin: 0 auto 50px;
    opacity: 0.85;
}

.impact {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.impact-item {
    flex: 1;
    max-width: 320px;
    background: rgba(255, 255, 255, 0.08);
    padding: 25px;
    border-radius: 12px;
    transition: 0.3s;
    text-align: center;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
}

.impact-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
}

.impact-item h3 {
    margin-top: 10px;
    font-size: 1.4em;
}

.impact-item p {
    font-size: 1em;
    opacity: 0.9;
}

.icon {
    font-size: 2.5em;
}

.cta-container {
    margin-top: 5rem;
    text-align: center;
}

.cta-button {
    display: inline-block;
    background: #4A90E2;
    color: white;
    font-size: 1.2em;
    padding: 15px 30px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: 0.3s;
}

.cta-button:hover {
    background: #A7C7E7;
    transform: scale(1.05);
}

/* Cards Grid */
.cards-grid {
    max-width: 1200px;
    margin: 3rem auto;
    text-align: center;
    padding: 0 2rem;
}

.cards-grid h2 {
    font-size: 2.2em;
    margin-bottom: 2rem;
    text-align: center;
}

.cards-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
}

.card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    text-decoration: none;
    color: #333;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 320px;
}

.card img {
    width: 100%;
    max-width: 200px;
    height: auto;
    border-radius: 10px;
    margin-bottom: 1rem;
}

.card h3 {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 0.8rem;
    color: #2c3e50;
}

.card p {
    font-size: 1rem;
    color: #666;
    margin-bottom: 1rem;
}

/* Flèches entre les cartes */
.arrow-icon {
    font-size: 2rem;
    color: #666;
    transition: color 0.3s ease;
}

.arrow-icon:hover {
    color: #e63946;
}

/* Section Coordonnées */
.morringan-contact {
    background: linear-gradient(135deg, #0d1b2a 0%, #1b263b 100%);
    color: white;
    padding: 80px 20px;
}

.morringan-contact .container {

    margin: 0 auto;
}

.morringan-contact h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.morringan-contact .intro-text {
    text-align: center;
    max-width: 1200px;
    margin: 0 auto 3rem;
    font-size: 1.1rem;
    line-height: 1.6;
    opacity: 0.9;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.contact-item {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.contact-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
}

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

.contact-item h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.contact-item p {
    font-size: 1rem;
    line-height: 1.5;
    opacity: 0.9;
}

.contact-item a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: #4A90E2;
}

/* Qualiopi */
.certification-qualiopi {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 80px 20px;
}

.certification-qualiopi .container {
    max-width: 1200px;
    margin: 0 auto;
}

.qualiopi-content {
    display: flex;
    gap: 4rem;
    align-items: flex-start;
}

.qualiopi-text {
    flex: 1;
}

.qualiopi-text h2 {
    font-size: 2.2rem;
    color: #1b263b;
    margin-bottom: 1.5rem;
    font-weight: 600;
    margin-top: 0;
}

.qualiopi-text p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #4a5568;
    margin-bottom: 2rem;
}

.qualiopi-benefits {
    list-style: none;
    padding: 0;
}

.qualiopi-benefits li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 1rem;
    color: #4a5568;
    font-size: 1.05rem;
}

.qualiopi-benefits li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #4A90E2;
    font-weight: bold;
}

.qualiopi-image {
    flex: 0 0 25rem;
    display: flex;
    justify-content: center;
    margin-left: 4rem;
}

.qualiopi-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

.qualiopi-image img:hover {
    transform: scale(1.05);
}

/* Footer */
.footer {
  background: linear-gradient(to right, #000000, #3533cd);
  padding: 2rem;
}

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

.footer-content p {
  flex: 1;
  text-align: center;
  color: white;
  margin-left: 20%;  
}

.footer-links {
  display: flex;
  gap: 2rem;
  justify-content: flex-end;
}

.footer-links a {
  color: white;
  text-decoration: none;
  transition: var(--transition);
}

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

@media screen and (max-width: 768px) {
  .header-content {
    flex-direction: column;
    align-items: center;
    padding: 0.5rem;
  }
  
  .logo-container {
    margin-bottom: 0.5rem;
  }
  
  .nav-menu {
    flex-direction: column;
    width: 100%;
    gap: 0.5rem;
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    background: linear-gradient(to right, #000000, #3533cd);
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    z-index: 1000;
  }
  
  .nav-menu.active {
    display: flex;
    max-height: 500px;
    padding: 10px 0;
  }
  
  .nav-menu a {
    width: 90%;
    margin: 5px auto;
    padding: 12px 15px;
    font-size: 1.1rem;
  }
  
  .hamburger-menu {
    display: block;
    position: absolute;
    top: 1.5rem;
    right: 2rem;
    font-size: 1.5rem;
    color: white;
    cursor: pointer;
    z-index: 1001;
    min-height: 44px;
    min-width: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .dropdown {
    width: 100%;
  }
  
  .dropdown-menu {
    position: static;
    width: 90%;
    margin: 0 auto;
    box-shadow: none;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
  }
  
  .dropdown-menu.mobile-active {
    display: block;
    opacity: 1;
    visibility: visible;
    margin-top: 5px;
    margin-bottom: 5px;
  }
  
  .dropdown-menu a {
    color: white;
    background: transparent;
  }
  
  .dropdown-menu a:hover {
    background-color: rgba(255, 255, 255, 0.2);
  }
  
  .hero-banner {
    margin: calc(var(--nav-height) + 2rem) 2rem 2rem 2rem;
    min-height: 300px;
  }
  
  .hero-content h1 {
    font-size: 2rem;
  }
  
  .search-container {
    max-width: 90%;
  }
  
  .search-input {
    font-size: 16px;
    height: 44px;
  }
  
  .formation-container {
    flex-direction: column;
    gap: 1rem;
  }
  
  .formation-card {
    width: 100%;
    max-width: 100%;
    touch-action: manipulation;
    min-height: 80px;
  }
  
  .training-sessions {
    padding: 0 1rem;
  }
  
  .session-card {
    flex: 0 0 100%;
    max-width: 100%;
    touch-action: manipulation;
  }
  
  .slider-btn {
    width: 44px;
    height: 44px;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .slider-prev {
    left: 0;
  }
  
  .slider-next {
    right: 0;
  }
  
  .sessions-grid {
    transition: transform 0.3s ease-out;
  }
  
  .impact {
    flex-direction: column;
    align-items: center;
  }
  
  .impact-item {
    max-width: 100%;
    margin-bottom: 1.5rem;
    touch-action: manipulation;
  }
  
  .cards-container {
    flex-direction: column;
    align-items: center;
  }
  
  .card {
    max-width: 100%;
    margin-bottom: 1rem;
    touch-action: manipulation;
  }
  
  .arrow-container {
    transform: rotate(90deg);
    margin: 1rem 0;
  }
  
  .qualiopi-content {
    flex-direction: column;
    gap: 2rem;
  }
  
  .qualiopi-image {
    flex: 0 0 100%;
    margin-left: 0;
  }
  
  .contact-info {
    grid-template-columns: 1fr;
  }
  
  .contact-item {
    touch-action: manipulation;
  }
  
  .cta-button,
  .btn-en-savoir-plus {
    min-height: 44px;
    min-width: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    font-size: 1rem;
  }
  
  .footer-content {
    flex-direction: column;
    gap: 1rem;
    align-items: center;
  }
  
  .footer-content p {
    margin-left: 0;
  }
  
  .footer-links {
    justify-content: center;
    gap: 1.5rem;
  }
  
  .footer-links a {
    min-height: 44px;
    min-width: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

@media screen and (min-width: 769px) and (max-width: 1024px) {
  .hero-banner {
    margin: calc(var(--nav-height) + 2rem) 2rem 2rem 2rem;
  }

  .impact {
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .impact-item {
    flex: 0 0 45%;
    margin-bottom: 1.5rem;
  }
  
  .session-card {
    flex: 0 0 calc(50% - 1rem);
    max-width: calc(50% - 1rem);
  }
  
  .cards-container {
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .card {
    flex: 0 0 calc(45% - 1rem);
    margin-bottom: 2rem;
  }
  
  .arrow-container {
    display: none;
  }
  
  .nav-menu {
    gap: 1rem;
  }
  
  .dropdown-menu {
    min-width: 180px;
  }
  
  .slider-btn {
    width: 44px;
    height: 44px;
  }
  
  .slider-prev {
    left: -1.5rem;
  }
  
  .slider-next {
    right: -1.5rem;
  }
}

@media screen and (max-width: 480px) {
  .hero-banner {
    margin: calc(var(--nav-height) + 2rem) 2rem 2rem 2rem;
  }
    
  .hero-content h1 {
    font-size: 1.5rem;
  }
  
  .search-input {
    padding: 0.8rem 1.5rem;
  }
  
  .card-overlay h3 {
    font-size: 1rem;
  }
  
  .cta-button {
    padding: 12px 15px;
    font-size: 0.95rem;
    text-align: center;
    width: 100%;
    max-width: 280px;
  }
  
  .header {
    padding: 0.5rem 1rem;
  }
  
  .logo-container img {
    max-height: 50px;
  }
  
  .impact-item .icon,
  .contact-item .icon {
    font-size: 2rem;
  }
  
  .cookie-banner {
    padding: 10px;
  }
  
  .cookie-buttons {
    width: 100%;
  }
  
  .cookie-accept, 
  .cookie-decline {
    flex: 1;
    font-size: 0.9rem;
  }
}

a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus {
  outline: 2px solid #4A90E2;
  outline-offset: 2px;
}

.card-overlay h3,
.card-overlay p {
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

.rating .score {
  font-weight: bold;
}

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #f8f9fa;
  padding: 15px;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  font-size: 14px;
}

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

.cookie-content p {
  margin: 0;
  padding: 5px 0;
  color: #333;
  flex: 1;
  min-width: 250px;
}

.cookie-buttons {
  display: flex;
  gap: 10px;
}

.cookie-accept, 
.cookie-decline {
  padding: 8px 15px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 500;
  min-height: 44px;
}

.cookie-accept {
  background: #4A90E2;
  color: white;
}

.cookie-decline {
  background: #f1f1f1;
  color: #333;
}

@media (max-width: 768px) {
  .cookie-content {
    flex-direction: column;
    text-align: center;
  }
  
  .cookie-buttons {
    margin-top: 10px;
    justify-content: center;
  }
}

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