/* Import des polices */
@import url('https://fonts.googleapis.com/css2?family=Abhaya+Libre:wght@400;500;600;700;800&display=swap');

/* Variables de couleurs */
:root {
  --bleu-fonce: #2E496A;
  --bleu-clair: #74BDEE;
  --mauve: #9dbdff;
  --beige: #F3D9BD;
  --fond-page: #FEFAF4;
  /* Design tokens */
  --space-section-xl: 100px; --space-section-lg: 80px; --space-section-md: 60px; --space-section-sm: 50px;
  --gap-xl: 80px; --gap-lg: 40px; --gap-md: 30px; --gap-sm: 20px;
  --radius-card: 20px; --radius-btn: 12px; --radius-caption: 12px; --radius-input: 8px;
  --shadow-1: 0 10px 20px rgba(46, 73, 106, .12);
  --shadow-2: 0 20px 40px rgba(46, 73, 106, .18);
  --shadow-btn: 0 4px 15px rgba(116, 189, 238, .3);
  --overlay-light: rgba(255, 255, 255, .92); --overlay-dark: rgba(0, 0, 0, .75);
  --border: #ccc;
  --img-lg: 450px; --img-md: 400px; --img-sm: 280px;
}

/* Configuration générale de la page */
body {
  background-color: var(--fond-page);
  font-family: 'Nunito', sans-serif;
  margin: 0;
  padding: 0;
  line-height: 1.6;
}

/* Section Notre Histoire */
.notre-histoire-section {
  padding: 100px 0;
  background-color: var(--fond-page);
}

.notre-histoire-container {
  margin: 0 10%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

/* Contenu texte à gauche */
.notre-histoire-content h1 {
  font-family: 'Abhaya Libre', serif;
  font-weight: 800; /* ExtraBold */
  font-size: 4rem;
  color: var(--bleu-fonce);
  margin: 0 0 40px 0;
  line-height: 1.0;
  letter-spacing: -0.02em;
}

.notre-histoire-content .intro-text {
  font-size: 1.2rem;
  color: var(--bleu-fonce);
  margin-bottom: 30px;
  font-weight: 600;
  line-height: 1.5;
}

.notre-histoire-content .intro-text strong {
  font-weight: 700;
}

.notre-histoire-content .description {
  font-size: 1.1rem;
  color: var(--bleu-fonce);
  margin-bottom: 40px;
  line-height: 1.6;
  opacity: 0.9;
}

.notre-histoire-content .cta-button {
  display: inline-block;
  background: var(--bleu-clair);
  color: white;
  padding: 15px 35px;
  border-radius: var(--radius-btn);
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  box-shadow: var(--shadow-btn);
}

.notre-histoire-content .cta-button:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 25px rgba(116, 189, 238, 0.4);
  background: var(--bleu-clair);
}

/* Image à droite avec opacity gradient */
.notre-histoire-image {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  
}

.notre-histoire-image img {
  width: 100%;
  height: 450px;
  object-fit: cover;
  display: block;
  /* Fade out opacity from 75% downwards */
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 0%, rgba(0,0,0,1) 60%, rgba(0,0,0,0) 100%);
  mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 0%, rgba(0,0,0,1) 60%, rgba(0,0,0,0) 100%);
  border-radius: inherit;
}

/* Placeholder pour l'image */
.image-placeholder {
  width: 100%;
  height: 450px;
  background: linear-gradient(135deg, var(--beige) 0%, var(--mauve) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bleu-fonce);
  font-size: 1.2rem;
  font-weight: 600;
  border-radius: 20px;
}

/* Overlay avec dégradé d'opacité */
.notre-histoire-image::after {
  /* removed previous side overlay */
  display: none;
  position: absolute;
  top: 0;
  right: 0;
  width: 60%;
  height: 100%;
  background: linear-gradient(to left, rgba(46, 73, 106, 0.4) 0%, transparent 100%);
  pointer-events: none;
}

/* Section En toute sincérité */
.sincerite-section {
  padding: 80px 0;
  background-color: var(--fond-page);
}

.sincerite-container {
  margin: 0 10%;
}

.sincerite-header {
  display: flex;
  align-items: center;
  gap: 25px;
  margin-bottom: 30px;
}


.sincerite-header h2 {
  font-family: 'Abhaya Libre', serif;
  font-weight: 700;
  font-size: 3rem;
  color: var(--bleu-fonce);
  margin: 0;
  line-height: 1.0;
  letter-spacing: -0.01em;
}

.sincerite-content {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: flex-start;
}

.sincerite-image {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(46, 73, 106, 0.2);
}

.sincerite-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: inherit;
  transform: none;
  transition: transform 250ms ease;
  transform: scale(1.1);
}

.sincerite-image .image-placeholder {
  height: 400px;
  background: linear-gradient(135deg, var(--bleu-clair) 0%, var(--mauve) 100%);
  border-radius: 20px;
}

.sincerite-image:hover img { transform: scale(1.03); }

.sincerite-text {
  padding-top: 0;
}

.sincerite-text p {
  font-size: 1.1rem;
  color: var(--bleu-fonce);
  line-height: 1.7;
  margin-bottom: 25px;
}

.sincerite-text .highlight {
  font-weight: 700;
  color: var(--bleu-fonce);
}

.sincerite-text .italic-quote {
  font-style: italic;
  color: var(--bleu-fonce);
  font-weight: 600;
}

.image-caption {
  position: absolute;
  bottom: 20px;
  left: 20px;
  right: 20px;
  background: var(--overlay-light);
  padding: 15px;
  border-radius: var(--radius-caption);
  font-style: italic;
  color: var(--bleu-fonce);
  font-size: 0.9rem;
  line-height: 1.4;
}

/* Section Equipe */
.equipe-section {
    padding: 100px 0;
    background-color: var(--fond-page);
}
.equipe-container {
    margin: 0 10%;
    text-align: left;
}
.equipe-section h2 {
    font-family: 'Abhaya Libre', serif;
    font-weight: 700;
    font-size: 3rem;
    color: var(--bleu-fonce);
    margin: 0 0 20px 0;
    text-align: left;
    line-height: 1.0;
}
.equipe-intro {
    font-size: 1.1rem;
    color: var(--bleu-fonce);
    margin-bottom: 60px;
}
.equipe-members {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    text-align: left;
    margin-bottom: 60px;
}
.member {
    text-align: left;
}
.member-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 0 20px 0;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}
.member-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 250ms ease;
}
.member-photo:hover img { transform: scale(1.05); }
.member p {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--bleu-fonce);
    text-align: left;
}
.equipe-conclusion {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--bleu-fonce);
    max-width: 1100px;
    margin: 0;
    text-align: left;
}

/* Section Et ce n'est que le début */
.debut-section {
    padding: 100px 0;
    background-color: rgba(157, 189, 255, 0.5);
}
.debut-container {
    margin: 0 10%;
}
.debut-section h2 {
    font-family: 'Abhaya Libre', serif;
    font-weight: 700;
    font-size: 3rem;
    color: var(--bleu-fonce);
    margin: 0 0 40px 0;
    text-align: left;
    line-height: 1.0;
}
.debut-images {
    display: grid;
    grid-template-columns: repeat(2, minmax(220px, 320px));
    justify-content: center;
    gap: 40px;
    margin-bottom: 40px;
}
.debut-image {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(46, 73, 106, 0.15);
    aspect-ratio: 9 / 16;
}
.debut-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
}
.debut-image-caption {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: var(--overlay-light);
    padding: 10px 15px;
    border-radius: var(--radius-caption);
    font-style: italic;
    color: var(--bleu-fonce);
    font-size: 0.9rem;
    line-height: 1.4;
    max-width: calc(100% - 40px);
    box-sizing: border-box;
}
.debut-text {
    text-align: left;
    color: var(--bleu-fonce);
}
.debut-text p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 15px;
}

/* Section Partager Gellies */
.partager-section {
    padding: 100px 0;
    background-color: var(--fond-page);
    text-align: left;
}
.partager-container {
    margin: 0 auto;
    padding: 0 10%;
}
/* Performance: skip offscreen rendering for heavy sections , a voir si a supprimer ou pas */
.notre-histoire-section,
.sincerite-section,
.innovation-section,
.notre-mission-section,
.changement-section,
.equipe-section,
.debut-section,
.partager-section {
  content-visibility: auto;
  contain-intrinsic-size: 600px;
}
.partager-section h2 {
    font-family: 'Abhaya Libre', serif;
    font-weight: 700;
    font-size: 3rem;
    color: var(--bleu-fonce);
    margin: 0 0 20px 0;
    line-height: 1.0;
}
.partager-section p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--bleu-fonce);
    max-width: 1100px;
}

/* Formulaire dans la section partager */
.form-intro {
    font-size: 1.1rem;
    color: var(--bleu-fonce);
    margin: 40px 0 30px 0;
    font-style: italic;
}
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.form-field {
    text-align: left;
}
.form-field.full-width {
    grid-column: 1 / -1;
}
.form-field label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--bleu-fonce);
    font-size: 0.9rem;
}
.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-input);
  font-family: 'Nunito', sans-serif;
  font-size: 1rem;
  box-sizing: border-box;
  background-color: white;
}
.submit-btn {
    background: var(--bleu-clair);
    color: white;
    border: none;
    padding: 15px 35px;
    border-radius: var(--radius-btn);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    align-self: flex-start;
    margin-top: 20px;
    box-shadow: var(--shadow-btn);
}
.submit-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 25px rgba(116, 189, 238, 0.4);
  background: var(--bleu-clair);
}

/* Responsive Design */
@media (max-width: 768px) {
  .notre-histoire-container {
    grid-template-columns: 1fr;
    gap: 40px;
    margin: 0 10%;
  }
  
  .notre-histoire-content h1 {
    font-size: 3rem;
    text-align: left;
    line-height: 1.0;
  }
  
  .notre-histoire-content {
    text-align: left;
  }
  
  .sincerite-content {
    display: flex;
    flex-direction: column;
    gap: 40px;
  }
  .sincerite-text { order: 1; }
  .sincerite-image { order: 2; }
  
  .sincerite-header {
    justify-content: flex-start;
    text-align: left;
  }
  
  .sincerite-header h2 {
    font-size: 2rem;
    line-height: 1.0;
  }
  
  /* Reorder sections on mobile: text first, images afterwards */
  .notre-mission-container { display: flex; flex-direction: column; }
  .mission-text { order: 2; }
  .mission-images-grid { order: 3; }

  .debut-container { display: flex; flex-direction: column; }
  .debut-text { order: 2; }
  .debut-images { order: 3; }
  
  .notre-histoire-image::after {
    width: 100%;
    background: linear-gradient(to bottom, rgba(46, 73, 106, 0.3) 0%, transparent 50%);
  }

  /* Notre mission responsive (déplacé après les styles de base) */

  .equipe-members {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .debut-images {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }
  
  /* déplacé */
  
  /* Changement section responsive */
  .changement-content {
    display: flex !important;
    flex-direction: column !important;
    gap: 24px;
    grid-template-columns: none !important;
  }
  .changement-text { order: 1; width: 100%; }
  .changement-image { order: 2; width: 100%; }
  .changement-content > .discover-gellies-btn { order: 3; align-self: flex-start; width: auto; }

  /* Remove top margin on mission text for mobile */
  .mission-text { margin-top: 0; }
  
  .changement-image img {
    height: 400px;
  }
  
  .changement-text h2 {
    font-size: 2.2rem;
    line-height: 1.0;
  }
}

/* Prevent CTA wrapping on small screens by reducing size */
@media (max-width: 480px) {
  .discover-gellies-btn {
    font-size: 0.92rem;
    padding: 12px 20px;
  }
}

@media (max-width: 360px) {
  .discover-gellies-btn {
    font-size: 0.88rem;
    padding: 10px 16px;
  }
}

@media (max-width: 480px) {
  .notre-histoire-section,
  .sincerite-section {
    padding: 50px 0;
  }
  
  .notre-histoire-content h1 {
    font-size: 3rem;
    line-height: 1.0;
  }
  
  .sincerite-header h2 {
    font-size: 1.8rem;
    line-height: 1.0;
  }
  
  .image-placeholder {
    height: 300px;
  }
  
  .sincerite-image .image-placeholder {
    height: 250px;
  }
}

/* Section Notre mission */
.notre-mission-section {
  padding: 80px 0;
  background-color: var(--fond-page);
}

.notre-mission-container {
  margin: 0 10%;
}

.notre-mission-section h2 {
  font-family: 'Abhaya Libre', serif;
  font-weight: 700;
  font-size: 3rem;
  color: var(--bleu-fonce);
  margin: 0 0 40px 0;
  letter-spacing: -0.01em;
  text-align: left;
  line-height: 1.0;
}

.mission-images-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 320px));
  justify-content: center;
  gap: 40px;
  margin-bottom: 80px;
}

.mission-image-card {
  position: relative;
}

.mission-image {
  width: 100%;
  aspect-ratio: 9 / 16;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 15px 30px rgba(46, 73, 106, 0.15);
  position: relative;
}

.mission-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
  border-radius: inherit;
}

.mission-image img:hover {
  transform: scale(1.05);
}

.mission-image-caption {
  position: absolute;
  bottom: 20px;
  left: 20px;
  right: 20px;
  background: var(--overlay-light);
  padding: 15px;
  border-radius: var(--radius-caption);
  font-style: italic;
  color: var(--bleu-fonce);
  font-size: 0.9rem;
  line-height: 1.4;
  margin: 0;
}

.mission-text {
  margin-top: 40px;
  text-align: left;
}

.mission-paragraph {
  font-size: 1.1rem;
  color: var(--bleu-fonce);
  line-height: 1.6;
  margin: 0 0 30px 0;
}

.mission-paragraph:last-of-type {
  margin-bottom: 0;
}

.mission-text strong {
  font-weight: 700;
  color: var(--bleu-fonce);
}

@media (max-width: 768px) {
  /* Notre mission responsive (après base) */
  .mission-text { margin-top: 0; }
  .mission-images-grid {
    grid-template-columns: 1fr;
    gap: 30px;
    margin-bottom: 60px;
  }
  .mission-image {
    height: auto;
    margin-top:50px ;
  }
  .notre-mission-section h2 {
    font-size: 2.5rem;
    line-height: 1.0;
  }
}

/* Section Ce que ça change pour vous */
.changement-section {
  padding: 100px 0;
  background: rgba(116, 189, 238, 0.2);
}

.changement-container {
  margin: 0 10%;
}

.changement-content {
  display: grid;
  grid-template-columns: minmax(300px, 400px) 1fr;
  column-gap: 80px;
  row-gap: 16px;
  align-items: center;
}

/* Place CTA under the text column on desktop */
.changement-content > .discover-gellies-btn {
  grid-column: 2;
  justify-self: start;
}

@media (max-width: 1024px) {
  .changement-content {
    grid-template-columns: 1fr;
    gap: 50px;
  }
}

.changement-image {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(46, 73, 106, 0.2);
}

.changement-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  display: block;
  border-radius: inherit;
  transition: transform 250ms ease;
}

.changement-image:hover img { transform: scale(1.03); }

.changement-text h2 {
  font-family: 'Abhaya Libre', serif;
  font-weight: 700;
  font-size: 2.8rem;
  color: var(--bleu-fonce);
  margin: 0 0 40px 0;
  line-height: 1.0;
  letter-spacing: -0.01em;
  text-align: left;
}

.changement-benefits {
  margin-bottom: 16px;
}

.changement-benefits p {
  font-size: 1.1rem;
  color: var(--bleu-fonce);
  line-height: 1.7;
  margin-bottom: 25px;
  text-align: left;
}

.changement-benefits p:last-of-type {
  margin-bottom: 0;
}

.changement-benefits strong {
  font-weight: 700;
  color: var(--bleu-fonce);
}

.discover-gellies-btn {
  background: var(--bleu-clair);
  color: white;
  border: none;
  padding: 15px 35px;
  border-radius: var(--radius-btn);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-btn);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  line-height: 1;
  letter-spacing: -0.01em;
}

.discover-gellies-btn:link,
.discover-gellies-btn:visited,
.discover-gellies-btn:hover,
.discover-gellies-btn:focus,
.discover-gellies-btn:active {
  text-decoration: none;
}

.discover-gellies-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 25px rgba(116, 189, 238, 0.4);
  background: var(--bleu-clair);
}

/* Section Innovation - On ne s'est pas contentés */
.innovation-section {
  background: var(--bleu-fonce);
  padding: 100px 0;
  color: white;
}

.innovation-container {
  margin: 0 10%;
}

.innovation-section h2 {
  font-family: 'Abhaya Libre', serif;
  font-weight: 700;
  font-size: 3rem;
  color: white;
  margin: 0 0 40px 0;
  line-height: 1.0;
  letter-spacing: -0.01em;
}

.innovation-intro {
  margin-bottom: 40px;
}

.innovation-intro p {
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 25px;
  color: white;
}

.innovation-process {
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 40px;
  color: white;
}

/* Features grid */
.innovation-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-bottom: 60px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 20px;
  background: rgba(116, 189, 238, 0.22);
  padding: 30px;
  border-radius: 18px;
  height: 140px;
  transition: transform 0.3s ease;
}

.feature-item:hover {
  transform: scale(1.05);
}

.feature-icon {
  font-size: 2.2rem;
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 50%;
}

.feature-text {
  font-size: 1.05rem;
  line-height: 1.6;
  color: white;
  text-align: left;
}

/* Carousel section */
.innovation-carousel {
  margin: 80px 0;
}

/* Innovation carousel (ic-*) - intrinsic image sizing, no cropping */
.ic-slider {
  position: relative;
  content-visibility: auto;
  contain-intrinsic-size: 400px 600px;
}

.ic-viewport {
  overflow: hidden;
  width: 100%;
}

.ic-track {
  display: flex;
  transition: transform 400ms ease;
  will-change: transform;
}

.ic-slide {
  flex: 0 0 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.ic-slide img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 70vh; /* keep native aspect, avoid cropping */
  object-fit: contain;
  image-rendering: auto;
}

.ic-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: saturate(120%);
}

.ic-prev { left: 10px; }
.ic-next { right: 10px; }

.ic-nav:hover { background: rgba(255, 255, 255, 0.28); }

.ic-dots {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 14px;
}

.ic-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  border: none;
  cursor: pointer;
}

.ic-dot.is-active { background: #fff; }


@media (max-width: 768px) {
  .ic-slide img {
    max-height: 50vh;
  }
  .ic-nav {
    width: 38px;
    height: 38px;
  }
}

.carousel-container {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  height: 400px;
  background: linear-gradient(135deg, var(--bleu-clair) 0%, var(--mauve) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--overlay-dark);
  color: white;
  padding: 20px 40px;
  border-radius: 15px;
  text-align: center;
  z-index: 10;
}

.carousel-overlay h3 {
  font-family: 'Abhaya Libre', serif;
  font-weight: 700;
  font-size: 2rem;
  margin: 0;
  letter-spacing: 2px;
}

.carousel-placeholder {
  display: flex;
  width: 100%;
  height: 100%;
}

.carousel-item {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border-right: 2px solid rgba(255, 255, 255, 0.2);
  color: white;
  font-weight: 600;
  font-size: 1.2rem;
}

.carousel-item:last-child {
  border-right: none;
}

/* Bottom content */
.innovation-bottom {
  margin-top: 60px;
}

.innovation-bottom p {
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 25px;
  color: white;
}

.innovation-bottom em {
  font-style: italic;
  opacity: 0.9;
}

/* Responsive pour la section innovation */
@media (max-width: 768px) {
  .innovation-section {
    padding: 60px 0;
  }
  
  .innovation-container {
    margin: 0 10%;
  }
  
  .innovation-section h2 {
    font-size: 2.2rem;
    text-align: left;
  }
  
  .innovation-features {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .feature-item {
    padding: 20px;
    flex-direction: row;
    text-align: left;
    align-items: center;
  }
  
  .carousel-container {
    height: 300px;
  }
  
  .carousel-overlay h3 {
    font-size: 1.5rem;
  }
  
  .carousel-placeholder {
    flex-direction: column;
  }
  
  .carousel-item {
    border-right: none;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
  }
  
  .carousel-item:last-child {
    border-bottom: none;
  }
}

@media (max-width: 480px) {
  .innovation-section h2 {
    font-size: 1.8rem;
  }
  
  .feature-item {
    padding: 15px;
  }
  
  .carousel-container {
    height: 250px;
  }
  
  .carousel-overlay {
    padding: 15px 25px;
  }
}

/* Innovation carousel (ic-*) */
.ic-slider {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  height: 420px;
  background: linear-gradient(135deg, var(--bleu-clair) 0%, var(--mauve) 100%);
  box-shadow: var(--shadow-2, 0 10px 30px rgba(0, 0, 0, 0.12));
}
.ic-viewport {
  width: 100%;
  height: 100%;
  overflow: hidden;
}
.ic-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 600ms ease;
  will-change: transform;
}
.ic-slide {
  min-width: 100%;
  height: 100%;
  position: relative;
}
.ic-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.ic-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  border: none;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
  transition: background 0.2s ease, transform 0.2s ease;
}
.ic-prev { left: 12px; }
.ic-next { right: 12px; }
.ic-nav:hover { background: rgba(0, 0, 0, 0.5); transform: translateY(-50%) scale(1.05); }

.ic-dots {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 12px;
  display: flex;
  gap: 8px;
  z-index: 5;
}
.ic-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}
.ic-dot.is-active { background: #fff; transform: scale(1.25); }

@media (max-width: 768px) { .ic-slider { height: 320px; } }
@media (max-width: 480px) { .ic-slider { height: 260px; } }

/* Utilities */
.hidden { display: none !important; }

/* Form success */
.form-success {
  text-align: center;
  background: linear-gradient(135deg, white 0%, #f8fbff 100%);
  padding: 50px 40px;
  border-radius: 24px;
  max-width: 600px;
  margin: 40px auto;
  box-shadow: 0 20px 60px rgba(116, 189, 238, 0.15), 0 8px 30px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(116, 189, 238, 0.1);
  position: relative;
  overflow: hidden;
  animation: successEntrance 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
}

.form-success::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--bleu-clair), transparent);
  animation: successSweep 1.2s ease-out 0.3s both;
}

.form-success h3 {
  margin: 0 0 16px;
  font-family: 'Abhaya Libre', serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--bleu-fonce);
  animation: successTextSlide 0.8s ease-out 0.4s both;
}

.form-success p {
  margin: 0;
  font-size: 1.1rem;
  color: var(--bleu-fonce);
  opacity: 0.8;
  line-height: 1.6;
  animation: successTextSlide 0.8s ease-out 0.6s both;
}

.success-illustration {
  font-size: 3.5rem;
  margin-bottom: 20px;
  display: block;
  animation: successBounce 1s ease-out 0.2s both;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

@keyframes successEntrance {
  from {
    transform: scale(0.8) translateY(20px);
    opacity: 0;
  }
  to {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
}

@keyframes successBounce {
  0% {
    transform: scale(0) rotate(-180deg);
    opacity: 0;
  }
  50% {
    transform: scale(1.2) rotate(0deg);
  }
  100% {
    transform: scale(1) rotate(0deg);
    opacity: 1;
  }
}

@keyframes successTextSlide {
  from {
    transform: translateY(15px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes successSweep {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}

/* Confetti - Enhanced version */
.confetti {
  position: fixed;
  top: -10vh;
  width: 10px;
  height: 10px;
  border-radius: 3px;
  pointer-events: none;
  z-index: 1000;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.confetti:nth-child(odd) {
  animation: confettiFallLeft 3s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.confetti:nth-child(even) {
  animation: confettiFallRight 3s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.confetti:nth-child(3n) {
  animation: confettiFallStraight 2.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
  width: 12px;
  height: 6px;
  border-radius: 6px;
}

@keyframes confettiFallLeft {
  0% {
    transform: translateY(-10vh) translateX(0) rotate(0deg) scale(1);
    opacity: 1;
  }
  15% {
    transform: translateY(15vh) translateX(-30px) rotate(180deg) scale(1.1);
  }
  85% {
    opacity: 0.8;
  }
  100% {
    transform: translateY(110vh) translateX(-80px) rotate(720deg) scale(0.3);
    opacity: 0;
  }
}

@keyframes confettiFallRight {
  0% {
    transform: translateY(-10vh) translateX(0) rotate(0deg) scale(1);
    opacity: 1;
  }
  15% {
    transform: translateY(15vh) translateX(30px) rotate(-180deg) scale(1.1);
  }
  85% {
    opacity: 0.8;
  }
  100% {
    transform: translateY(110vh) translateX(80px) rotate(-720deg) scale(0.3);
    opacity: 0;
  }
}

@keyframes confettiFallStraight {
  0% {
    transform: translateY(-10vh) rotate(0deg) scale(1);
    opacity: 1;
  }
  20% {
    transform: translateY(20vh) rotate(90deg) scale(1.2);
  }
  80% {
    opacity: 0.9;
  }
  100% {
    transform: translateY(110vh) rotate(450deg) scale(0.2);
    opacity: 0;
  }
}

/* Reveal animations */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in-view { opacity: 1; transform: translateY(0); }
.reduced-motion .reveal { opacity: 1; transform: none; transition: none; }