/* ================================================================
   SUNROC — POLISH CSS
   À charger APRÈS style.css : <link rel="stylesheet" href="style-polish.css">
   ================================================================ */

/* --- 1. VARIABLES AFFINÉES : ombres plus douces, courbes plus naturelles --- */
:root {
  /* Ombres : plus subtiles, plus diffuses, plus "premium" */
  --shadow-sm: 0 1px 2px rgba(62, 90, 58, 0.04), 0 2px 8px rgba(62, 90, 58, 0.03);
  --shadow-md: 0 2px 4px rgba(62, 90, 58, 0.04), 0 8px 24px rgba(62, 90, 58, 0.06);
  --shadow-hover: 0 4px 8px rgba(62, 90, 58, 0.06), 0 16px 40px rgba(62, 90, 58, 0.10);
  --shadow-press: 0 1px 2px rgba(62, 90, 58, 0.06);

  /* Easing natural — comme un objet physique, pas un robot */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --transition: all 0.4s var(--ease-out);
  --transition-fast: all 0.2s var(--ease-out);

  /* Espacements rythmés */
  --space-section: clamp(3rem, 8vw, 6rem);

  /* Couleur d'accent rappelant le logo Sunroc (#AAC829) */
  --vert-logo: #AAC829;
  --vert-logo-hover: #8FA821; /* version assombrie ~12% pour les hovers */
}

/* --- 2. TYPOGRAPHIE : ligatures, espacement, kerning, fluidité --- */
html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
body {
  font-feature-settings: "kern" 1, "liga" 1, "calt" 1;
  letter-spacing: -0.005em;
  line-height: 1.6;
}
h1, h2, h3, .hero-content h1, .about-text h2, .value-card h3, .produit-info h3 {
  font-feature-settings: "kern" 1, "liga" 1, "dlig" 1;
  letter-spacing: -0.02em;
  line-height: 1.15;
  text-wrap: balance; /* moderne : évite les veuves de titre */
}
.hero-content h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 500;
  letter-spacing: -0.025em;
}
.hero-content p {
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  letter-spacing: -0.005em;
  max-width: 38ch; /* lisibilité : pas plus de 38 caractères par ligne sur les leads */
  margin-left: auto;
  margin-right: auto;
}
.about-text blockquote {
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  line-height: 1.4;
  text-wrap: balance;
}
p, .blog-card p, .blog-card-content p {
  text-wrap: pretty; /* évite les veuves dans les paragraphes */
}

/* --- 3. HEADER : transition plus aérienne, séparateur subtil --- */
.site-header {
  border-bottom: 1px solid transparent;
  transition: padding 0.4s var(--ease-out),
              background-color 0.3s var(--ease-out),
              border-color 0.3s var(--ease-out),
              transform 0.4s var(--ease-out);
}
.site-header.scrolled {
  border-bottom-color: rgba(229, 217, 198, 0.6);
  box-shadow: none; /* l'ombre disparaît au profit de la bordure, plus discret */
}
.logo-wrapper {
  border-bottom: 1px solid rgba(229, 217, 198, 0.5);
}

/* --- 4. NAVIGATION : underline plus précis, hover plus vivant --- */
.main-nav a {
  font-size: 0.92rem;
  letter-spacing: 0.01em;
  transition: color 0.25s var(--ease-out);
}
.main-nav a::after {
  height: 1.5px;
  bottom: -2px;
  background: var(--vert-logo);
  transition: width 0.35s var(--ease-out);
}
.main-nav a:hover::after,
.main-nav a.active::after {
  height: 1.5px;
  background: var(--vert-fonce);
}
.main-nav a:hover,
.main-nav a.active {
  font-weight: 500; /* on enlève le 600, ça alourdit. Le underline suffit. */
}

/* --- 5. BOUTONS : sensation tactile, micro-décollage, ombre couleur --- */
.btn,
button.btn {
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  padding: 0.85rem 1.8rem;
  background: white;
  color: var(--vert-logo);
  border: 1.5px solid var(--vert-logo);
  box-shadow: 0 1px 2px rgba(62, 90, 58, 0.04);
  position: relative;
  transition: var(--transition);
}
.btn:hover {
  background: var(--vert-logo);
  color: white;
  border-color: var(--vert-logo);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(143, 168, 33, 0.28),
              0 1px 3px rgba(62, 90, 58, 0.12);
}
.btn:active {
  transform: translateY(0);
  box-shadow: var(--shadow-press);
  transition: all 0.1s var(--ease-out);
}
.btn-outline {
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  padding: 0.75rem 1.6rem;
  transition: var(--transition);
}
.btn-outline:hover {
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(62, 90, 58, 0.12);
}

/* --- 6. CARTES VALEURS : micro-décollage plus subtil, bordure intérieure --- */
.value-card {
  background: var(--blanc);
  border: 1px solid rgba(229, 217, 198, 0.4);
  box-shadow: 0 1px 2px rgba(62, 90, 58, 0.02);
  padding: 2rem 1.5rem;
  border-radius: 16px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.value-card::before,
.value-card::after {
  content: '';
  position: absolute;
  left: 0;
  width: 100%; height: 2px;
  background: var(--vert-logo);
  transform: scaleX(0);
  transition: transform 0.5s var(--ease-out);
}
.value-card::before {
  top: 0;
  transform-origin: left;
}
.value-card::after {
  bottom: 0;
  transform-origin: right;
}
.value-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(122, 139, 110, 0.3);
}
.value-card:hover::before,
.value-card:hover::after {
  transform: scaleX(1);
}
.value-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.6rem;
  color: var(--vert-fonce);
}
.value-card p {
  color: var(--gris-taupe);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* --- 7. CARTES BLOG / PRODUITS / GALERIE : effet photo plus subtil --- */
.blog-card,
.produit-card {
  border: 1px solid rgba(229, 217, 198, 0.4);
  border-radius: 16px;
  overflow: hidden;
  background: var(--blanc);
  transition: var(--transition);
  box-shadow: 0 1px 2px rgba(62, 90, 58, 0.02);
}
.blog-card:hover,
.produit-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(122, 139, 110, 0.25);
}
.blog-card-img,
.produit-card img {
  transition: transform 0.7s var(--ease-out);
}
.blog-card:hover .blog-card-img,
.produit-card:hover img {
  transform: scale(1.04);
}

/* Galerie : zoom doux, légère désaturation au repos qui se révèle au hover */
.gallery-item {
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
}
.gallery-item img {
  transition: transform 0.7s var(--ease-out), filter 0.5s var(--ease-out);
  filter: saturate(0.92);
}
.gallery-item:hover img {
  transform: scale(1.05);
  filter: saturate(1.05);
}
.gallery-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(170, 200, 41, 0.85), transparent);
  color: var(--blanc);
  padding: 1.5rem 1rem 1rem;
  font-family: 'Playfair Display', serif;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  transform: translateY(8px);
  opacity: 0.95;
  transition: var(--transition);
}
.gallery-item:hover .gallery-caption {
  transform: translateY(0);
  opacity: 1;
}

/* --- 8. SECTIONS : rythme vertical aéré --- */
.about-section,
.values,
.home-gallery {
  padding: var(--space-section) 0;
}
.about-section h2,
.values h2,
.home-gallery h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  margin-bottom: 2.5rem;
  text-align: center;
  position: relative;
  padding-bottom: 1.2rem;
}
.about-section h2::after,
.values h2::after,
.home-gallery h2::after {
  content: '';
  position: absolute;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 2px;
  background: var(--vert-logo);
}

/* --- 9. SLIDER : indicateurs minimalistes --- */
.slider-prev, .slider-next {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--vert-fonce);
  transition: var(--transition);
  cursor: pointer;
}
.slider-prev:hover, .slider-next:hover {
  background: var(--blanc);
  transform: scale(1.05);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

/* --- 10. FOCUS STATES : accessibilité + élégance --- */
*:focus-visible {
  outline: 2px solid var(--vert-logo);
  outline-offset: 3px;
  border-radius: 4px;
}
.btn:focus-visible,
.btn-outline:focus-visible {
  outline-offset: 4px;
}

/* --- 11. SÉLECTION TEXTE : couleur de marque --- */
::selection {
  background: var(--vert-logo);
  color: var(--blanc);
}

/* --- 12. SCROLLBAR DISCRÈTE (Chrome/Safari/Edge) --- */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--beige-clair); }
::-webkit-scrollbar-thumb {
  background: var(--beige-fonce);
  border-radius: 10px;
  border: 2px solid var(--beige-clair);
}
::-webkit-scrollbar-thumb:hover { background: var(--vert-logo); }

/* --- 13. ANIMATIONS D'APPARITION : plus douces --- */
.fade-in,
.gallery-item,
.blog-card,
.produit-card,
.value-card {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.fade-in.appear,
.gallery-item.appear,
.blog-card.appear,
.produit-card.appear,
.value-card.appear {
  opacity: 1;
  transform: translateY(0);
}
/* Stagger : chaque carte apparaît avec un léger décalage */
.value-card.appear:nth-child(1) { transition-delay: 0s; }
.value-card.appear:nth-child(2) { transition-delay: 0.08s; }
.value-card.appear:nth-child(3) { transition-delay: 0.16s; }
.value-card.appear:nth-child(4) { transition-delay: 0.24s; }

/* --- 14. RESPECT DU "REDUCED MOTION" --- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* --- 15. FOOTER : plus de respiration --- */
#site-footer {
  padding: 4rem 0 2rem;
  background: var(--beige-clair);
  border-top: 1px solid rgba(229, 217, 198, 0.5);
  margin-top: var(--space-section);
}
.footer-flex {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 3rem;
  margin-bottom: 2rem;
}
.footer-brand p,
.footer-contact p,
.footer-links a {
  color: var(--gris-taupe);
  font-size: 0.92rem;
  line-height: 1.7;
}
.footer-bottom {
  border-top: 1px solid rgba(229, 217, 198, 0.5);
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--gris-clair);
}

/* --- 16. RÉSEAUX SOCIAUX FOOTER --- */
.footer-socials {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
}
.footer-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: transparent;
  color: var(--gris-taupe);
  border: 1px solid rgba(229, 217, 198, 0.6);
  transition: var(--transition);
}
.footer-social-link:hover {
  background: var(--vert-logo);
  color: var(--blanc);
  border-color: var(--vert-logo);
  transform: translateY(-2px);
}

/* --- 17. BANNIÈRE PROMO --- */
.promo-banner {
  position: relative;
  z-index: 50;
  padding: 0.65rem 1rem;
  text-align: center;
  font-size: 0.92rem;
  letter-spacing: 0.01em;
  color: var(--blanc);
  background: var(--vert-logo);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.promo-banner.style-info     { background: var(--vert-logo); color: var(--vert-fonce); }
.promo-banner.style-urgent   { background: #c0533d; color: #fff; }
.promo-banner.style-neutre   { background: var(--beige-fonce); color: var(--vert-fonce); }
.promo-banner a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 500;
}
.promo-banner-close {
  position: absolute;
  right: 0.8rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: inherit;
  cursor: pointer;
  font-size: 1.1rem;
  opacity: 0.7;
  padding: 0.25rem 0.5rem;
  line-height: 1;
}
.promo-banner-close:hover { opacity: 1; }

/* --- 18. PAGE NOTRE ENTREPRISE --- */
.entreprise-page { padding: 0; }

/* AMÉLIORATION 1 : Hero parallax + typo Cormorant + overlay subtil */
.entreprise-hero {
  position: relative;
  min-height: 65vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  text-align: center;
  color: var(--blanc);
  margin-bottom: var(--space-section);
  overflow: hidden;
}
.entreprise-hero-parallax {
  background-attachment: fixed; /* effet parallax simple et performant */
}
.entreprise-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(170, 200, 41, 0.45), rgba(170, 200, 41, 0.7));
}
.entreprise-hero-content {
  position: relative;
  z-index: 2;
  max-width: 760px;
  padding: 5rem 1.5rem;
}
.entreprise-hero-content h1 {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-family: 'Cormorant Garamond', 'Playfair Display', serif;
  font-style: italic;
  font-weight: 400;
  margin-bottom: 1.2rem;
  text-wrap: balance;
  letter-spacing: -0.01em;
}
.entreprise-hero-content p {
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  opacity: 0.95;
  max-width: 50ch;
  margin: 0 auto;
  letter-spacing: 0.01em;
}
/* Sur mobile/tablette : background-attachment: fixed est performant lent ou cassé,
   on désactive l'effet parallax mais on garde le rendu visuel */
@media (max-width: 1024px) {
  .entreprise-hero-parallax { background-attachment: scroll; }
}

.entreprise-section {
  padding: var(--space-section) 0;
}
.entreprise-section + .entreprise-section { padding-top: 0; }

.entreprise-section h2 {
  text-align: center;
  font-size: clamp(1.6rem, 2.5vw, 2.25rem);
  margin-bottom: 2.5rem;
  position: relative;
  padding-bottom: 1.2rem;
}
.entreprise-section h2::after {
  content: '';
  position: absolute;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 2px;
  background: var(--vert-logo);
}

/* AMÉLIORATION 2 : Histoire avec lettrine + image latérale */
.entreprise-histoire-section { background: var(--blanc); }
.entreprise-histoire-layout {
  max-width: 980px;
  margin: 0 auto;
  display: grid;
  gap: 3rem;
  align-items: start;
}
.entreprise-histoire-layout.has-image {
  grid-template-columns: 3fr 2fr;
}
.entreprise-histoire-layout.no-image {
  grid-template-columns: 1fr;
  max-width: 680px;
}
.entreprise-histoire-text {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--gris-taupe);
}
.entreprise-histoire-text p { margin-bottom: 1.2rem; }
.entreprise-histoire-text p:last-child { margin-bottom: 0; }
/* Lettrine sur la première lettre du premier paragraphe */
.entreprise-histoire-text > p:first-child::first-letter {
  font-family: 'Cormorant Garamond', 'Playfair Display', serif;
  font-size: 4.5rem;
  font-weight: 500;
  color: var(--vert-logo);
  float: left;
  line-height: 0.85;
  padding: 0.4rem 0.6rem 0 0;
  font-style: italic;
}
.entreprise-histoire-image img {
  width: 100%;
  height: auto;
  border-radius: 14px;
  box-shadow: var(--shadow-md);
  display: block;
}
@media (max-width: 768px) {
  .entreprise-histoire-layout.has-image {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* Chiffres clés */
.entreprise-chiffres-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto;
}
.chiffre-card {
  text-align: center;
  padding: 1.5rem 1rem;
}
.chiffre-card .chiffre-num {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 500;
  color: var(--vert-logo);
  line-height: 1;
  margin-bottom: 0.5rem;
}
.chiffre-card .chiffre-label {
  font-size: 0.95rem;
  color: var(--gris-taupe);
  letter-spacing: 0.02em;
}

/* AMÉLIORATION 3 : Frise zigzag avec images optionnelles */
.entreprise-timeline-section {
  background: var(--beige-clair);
}
.entreprise-timeline-zigzag {
  max-width: 920px;
  margin: 0 auto;
  position: relative;
}
.entreprise-timeline-zigzag::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
  background: rgba(122, 139, 110, 0.3);
}
.tl-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  margin-bottom: 3rem;
  position: relative;
}
.tl-row:last-child { margin-bottom: 0; }
.tl-row .tl-content {
  background: var(--blanc);
  padding: 1.5rem 1.75rem;
  border-radius: 14px;
  border: 1px solid rgba(229, 217, 198, 0.5);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.tl-row .tl-content:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.tl-row .tl-image img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.tl-row .tl-image img:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-md);
}
.tl-row .tl-year {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  color: var(--vert-logo);
  font-weight: 500;
  margin-bottom: 0.5rem;
  letter-spacing: 0.02em;
}
.tl-row .tl-content h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: var(--vert-fonce);
}
.tl-row .tl-content p {
  font-size: 0.95rem;
  color: var(--gris-taupe);
  line-height: 1.6;
  margin: 0;
}
.tl-dot {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--vert-logo);
  border: 3px solid var(--beige-clair);
  z-index: 2;
}
/* Alternance droite/gauche */
.tl-row.tl-left .tl-content { grid-column: 1; text-align: right; }
.tl-row.tl-left .tl-image   { grid-column: 2; }
.tl-row.tl-left .tl-content:not(:has(+ .tl-image)) { /* étape sans image, on centre quand même côté gauche */ }
.tl-row.tl-right .tl-content { grid-column: 2; text-align: left; }
.tl-row.tl-right .tl-image   { grid-column: 1; }
/* Si pas d'image sur une étape, le contenu reste de son côté */
.tl-row:not(:has(.tl-image)) {
  grid-template-columns: 1fr 1fr;
}
.tl-row.tl-left:not(:has(.tl-image)) .tl-content { grid-column: 1 / 2; }
.tl-row.tl-right:not(:has(.tl-image)) .tl-content { grid-column: 2 / 3; }

@media (max-width: 768px) {
  .entreprise-timeline-zigzag::before { left: 12px; }
  .tl-row, .tl-row.tl-left, .tl-row.tl-right {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding-left: 36px;
    margin-bottom: 2rem;
  }
  .tl-row .tl-content,
  .tl-row.tl-left .tl-content,
  .tl-row.tl-right .tl-content {
    grid-column: 1;
    text-align: left;
  }
  .tl-row .tl-image,
  .tl-row.tl-left .tl-image,
  .tl-row.tl-right .tl-image {
    grid-column: 1;
    grid-row: 1;
  }
  .tl-row .tl-image img { height: 160px; }
  .tl-dot { left: 12px; transform: translate(-50%, 0); top: 1.5rem; }
}

/* AMÉLIORATION 4 : Cartes équipe avec citation au hover */
.entreprise-equipe-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
}
.equipe-card {
  text-align: center;
  padding: 1rem;
  border-radius: 14px;
  transition: var(--transition);
}
.equipe-photo {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1rem;
  border: 3px solid var(--blanc);
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}
.equipe-card:hover .equipe-photo {
  transform: scale(1.05);
  box-shadow: var(--shadow-hover);
}
.equipe-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.3rem;
  color: var(--vert-fonce);
}
.equipe-card .equipe-role {
  font-size: 0.9rem;
  color: var(--gris-taupe);
  letter-spacing: 0.02em;
  font-style: italic;
  margin-bottom: 0;
}
.equipe-card .equipe-quote {
  font-family: 'Cormorant Garamond', 'Playfair Display', serif;
  font-style: italic;
  font-size: 0.98rem;
  color: var(--vert-logo);
  line-height: 1.5;
  margin-top: 0;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.5s var(--ease-out), opacity 0.4s var(--ease-out), margin-top 0.4s var(--ease-out);
  text-wrap: balance;
}
.equipe-card:hover .equipe-quote {
  max-height: 200px;
  opacity: 1;
  margin-top: 0.8rem;
}

/* AMÉLIORATION 5 : Bandeau partenaires défilant */
.entreprise-partenaires-section {
  overflow: hidden;
}
.partenaires-marquee {
  width: 100%;
  overflow: hidden;
  position: relative;
  -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
          mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}
.partenaires-track {
  display: flex;
  gap: 4rem;
  align-items: center;
  width: max-content;
  animation: partenaires-scroll 35s linear infinite;
}
.partenaires-track:hover {
  animation-play-state: paused; /* on stop le défilement au survol */
}
.partenaire-item {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 140px;
  height: 70px;
  padding: 0 1rem;
  filter: grayscale(40%);
  opacity: 0.85;
  transition: var(--transition-fast);
}
.partenaire-item:hover {
  filter: grayscale(0);
  opacity: 1;
}
.partenaire-item img {
  max-width: 100%;
  max-height: 60px;
  object-fit: contain;
}
.partenaire-item .partenaire-name {
  color: var(--gris-taupe);
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
@keyframes partenaires-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); } /* parce qu'on duplique la liste, -50% = la moitié */
}
/* Respect reduced-motion : pas de défilement */
@media (prefers-reduced-motion: reduce) {
  .partenaires-track { animation: none; flex-wrap: wrap; justify-content: center; }
  .partenaires-marquee { -webkit-mask-image: none; mask-image: none; }
}

/* Certifications */
.entreprise-certifs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  max-width: 1000px;
  margin: 0 auto;
}
.certif-card {
  background: var(--blanc);
  border: 1px solid rgba(229, 217, 198, 0.4);
  border-radius: 14px;
  padding: 1.5rem;
  text-align: center;
  transition: var(--transition);
}
.certif-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(122, 139, 110, 0.3);
}
.certif-logo {
  height: 60px;
  margin-bottom: 1rem;
  object-fit: contain;
}
.certif-card h3 {
  font-size: 1rem;
  color: var(--vert-fonce);
  margin-bottom: 0.4rem;
}
.certif-card p {
  font-size: 0.88rem;
  color: var(--gris-taupe);
  line-height: 1.5;
}

/* CTA final */
.entreprise-cta {
  text-align: center;
  padding: var(--space-section) 1.5rem;
  background: var(--beige-clair);
  border-top: 1px solid rgba(229, 217, 198, 0.5);
}
.entreprise-cta h2 {
  font-family: 'Cormorant Garamond', 'Playfair Display', serif;
  font-style: italic;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 1rem;
  color: var(--vert-fonce);
}
.entreprise-cta p {
  max-width: 50ch;
  margin: 0 auto 1.5rem;
  color: var(--gris-taupe);
}

/* ============================================================
   FIX : modal trop haute = boutons invisibles
   On limite la hauteur, on rend le contenu scrollable, et on
   colle les boutons en bas pour qu'ils restent toujours visibles.
   ============================================================ */
.modal-content {
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  padding-bottom: 0; /* le footer (modal-buttons) gère son propre padding */
}
.modal-content h3 {
  flex-shrink: 0;
}
#modalFields {
  overflow-y: auto;
  flex: 1 1 auto;
  padding-right: 0.5rem; /* un peu d'air pour la scrollbar */
  margin-bottom: 1rem;
}
.modal-content .modal-buttons {
  flex-shrink: 0;
  position: sticky;
  bottom: 0;
  background: white;
  padding: 1rem 0;
  border-top: 1px solid var(--beige-fonce, #e8e2d4);
  margin-top: auto;
}

/* Sur mobile, on prend toute la hauteur dispo */
@media (max-width: 600px) {
  .modal-content {
    max-height: 95vh;
    width: 95%;
    padding: 1.5rem 1.5rem 0;
    border-radius: 20px;
  }
}
