/*
Theme Name: Solveris
Author: Cochet Thibaut
Version: 1.0
*/

/* ─────────────────────────────────────────
       VARIABLES
    ───────────────────────────────────────── */
:root {
  --teal-light: #008889;
  --teal-dark: #105058;
  --teal-deep: #0a3840;
  --white: #ffffff;
  --off-white: #f4f4f2;
  --text-dark: #1c1c1c;
  --text-muted: #888888;
}

/* ─────────────────────────────────────────
       RESET & BASE
    ───────────────────────────────────────── */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--text-dark);
  background: var(--white);
  overflow-x: hidden;
}

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

a {
  text-decoration: none;
}

/* ─────────────────────────────────────────
       NAVBAR
    ───────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 200;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(8px);
  padding: 0 60px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(16, 80, 88, 0.08);
}

.logo-wrap {
  display: flex;
  align-items: center;
}

.logo-nav {
  height: 42px;
  width: auto;
  object-fit: contain;
}

/* Nav links — GROSSIS selon mail 1 */
.nav-links {
  list-style: none;
  display: flex;
  gap: 36px;
  align-items: center;
}

.nav-links a {
  font-family: 'Raleway', sans-serif;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal-dark);
  position: relative;
  padding: 6px 2px;
  transition: color 0.25s;
}

.nav-links a::before,
.nav-links a::after {
  content: '';
  position: absolute;
  width: 7px;
  height: 7px;
  opacity: 0;
  transition: opacity 0.25s, transform 0.25s;
}

.nav-links a::before {
  top: 0;
  left: -6px;
  border-top: 1.5px solid var(--teal-light);
  border-left: 1.5px solid var(--teal-light);
  transform: translate(3px, 3px);
}

.nav-links a::after {
  bottom: 0;
  right: -6px;
  border-bottom: 1.5px solid var(--teal-light);
  border-right: 1.5px solid var(--teal-light);
  transform: translate(-3px, -3px);
}

.nav-links a:hover {
  color: var(--teal-light);
}

.nav-links a:hover::before,
.nav-links a:hover::after {
  opacity: 1;
  transform: translate(0, 0);
}

/* ─────────────────────────────────────────
       HERO — RIDEAU TURQUOISE S'OUVRE DEPUIS LE LOGO
    ───────────────────────────────────────── */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
  background: var(--teal-dark);
}

/* Photos de fond (diaporama avec transition diagonale oblique comme le GIF) */
.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 1;
  clip-path: polygon(0 0, 0 0, 0 100%, 0 100%);
  will-change: clip-path;
}

.hero-slide.active {
  z-index: 2;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}

.hero-slide.wipe-in {
  z-index: 3;
  animation: diagonalWipeIn 1.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.hero-slide.wipe-out {
  z-index: 2;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}

/* Transition diagonale oblique "/" — fidèle au GIF */
@keyframes diagonalWipeIn {
  0% {
    clip-path: polygon(120% 0, 120% 0, 108% 100%, 108% 100%);
  }

  100% {
    clip-path: polygon(-8% 0, 120% 0, 120% 100%, -20% 100%);
  }
}

/* Gradient bas pour lisibilité texte */
.hero-shadow {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top,
      rgba(10, 40, 48, 0.72) 0%,
      rgba(10, 40, 48, 0.22) 55%,
      transparent 100%);
  z-index: 3;
  pointer-events: none;
}

/* ── Rideaux turquoise gauche et droit ──
       Couvrent tout au départ, puis s'ouvrent
       avec un bord diagonal qui épouse la forme angulaire du logo.
       Le bord de coupe est une diagonale / comme le logo origami. */
.hero-curtain {
  position: absolute;
  inset: 0;
  z-index: 5;
  background: var(--teal-dark);
  pointer-events: none;
}

/* Panneau gauche : bord droit en diagonale / */
.hero-curtain-left {
  clip-path: polygon(0 0, 56% 0, 44% 100%, 0 100%);
}

/* Panneau droit : bord gauche en diagonale / */
.hero-curtain-right {
  clip-path: polygon(56% 0, 100% 0, 100% 100%, 44% 100%);
}

/* Animations déclenchées après mot de passe (classe .anim-go sur body) */
.anim-go .hero-curtain-left {
  animation: curtainLeft 2.4s cubic-bezier(0.65, 0, 0.35, 1) forwards;
  animation-delay: 2s;
}

.anim-go .hero-curtain-right {
  animation: curtainRight 2.4s cubic-bezier(0.65, 0, 0.35, 1) forwards;
  animation-delay: 2s;
}

@keyframes curtainLeft {
  0% {
    clip-path: polygon(0 0, 56% 0, 44% 100%, 0 100%);
  }

  100% {
    clip-path: polygon(-120% 0, -64% 0, -76% 100%, -120% 100%);
  }
}

@keyframes curtainRight {
  0% {
    clip-path: polygon(56% 0, 100% 0, 100% 100%, 44% 100%);
  }

  100% {
    clip-path: polygon(164% 0, 220% 0, 220% 100%, 176% 100%);
  }
}

/* ── Logo origami centré (visible au départ sur le fond turquoise) ── */
.hero-origami {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 8;
  display: flex;
  flex-direction: column;
  align-items: center;
  opacity: 1;
}

.anim-go .hero-origami {
  animation: origamiFade 1s ease forwards;
  animation-delay: 1.8s;
}

.hero-origami img {
  width: clamp(120px, 14vw, 220px);
  height: auto;
  max-width: 70vw;
  filter: brightness(0) invert(1);
}

.hero-origami-text {
  font-family: 'Raleway', sans-serif;
  font-size: clamp(10px, 1.2vw, 14px);
  font-weight: 300;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  margin-top: 20px;
}

@keyframes origamiFade {
  0% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }

  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.8);
  }
}

/* ── Logo complet centré — caché sous les rideaux, se dévoile avec l'ouverture ── */
.hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 4;
  /* entre les photos (z:1-3) et les rideaux (z:5) → caché au départ */
  color: white;
  opacity: 1;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-logo {
  width: clamp(220px, 22vw, 360px);
  height: auto;
  max-width: 80vw;
  display: block;
  filter: brightness(0) invert(1);
}

.hero-baseline {
  font-family: 'Raleway', sans-serif;
  font-size: clamp(15px, 1.9vw, 22px);
  font-weight: 300;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.88);
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  gap: 14px;
}

.hero-baseline::before {
  content: '';
  display: inline-block;
  width: 30px;
  height: 1px;
  background: var(--teal-light);
}

.hero-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: var(--teal-light);
  z-index: 10;
}

/* ─────────────────────────────────────────
       COMMUN SECTIONS
    ───────────────────────────────────────── */
.label {
  font-family: 'Raleway', sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--teal-light);
  margin-bottom: 18px;
}

.section-heading {
  font-family: 'Raleway', sans-serif;
  font-size: clamp(30px, 3.2vw, 44px);
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--teal-dark);
  line-height: 1.2;
  margin-bottom: 26px;
}

.section-body {
  font-size: 16px;
  line-height: 1.85;
  color: #666;
  font-weight: 300;
  max-width: 560px;
}

.cta {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-top: 40px;
  font-family: 'Raleway', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--teal-dark);
  padding-bottom: 6px;
  border-bottom: 1.5px solid var(--teal-light);
  transition: color 0.25s;
}

.cta:hover {
  color: var(--teal-light);
}

/* ─────────────────────────────────────────
       SECTION PRÉSENTATION
    ───────────────────────────────────────── */
.section-intro {
  padding: 110px 60px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 90px;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
}

.photo-frame {
  position: relative;
  height: 460px;
}

.photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-frame::before {
  content: '';
  position: absolute;
  top: -18px;
  left: -18px;
  right: 18px;
  bottom: 18px;
  border: 1px solid var(--teal-light);
  z-index: -1;
}

.photo-tag {
  position: absolute;
  bottom: 0;
  right: 0;
  background: var(--teal-dark);
  color: white;
  padding: 16px 24px;
  font-family: 'Raleway', sans-serif;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

/* ─────────────────────────────────────────
       ASSOCIÉS PREVIEW (HOME)
    ───────────────────────────────────────── */
.associes-preview {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px 30px; /* 40px entre les lignes, 30px entre les colonnes */
  align-items: start;
}

.associe-preview-item {
  text-align: center;
}

.associe-preview-item img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: top; /* garde les visages bien cadrés */
}

.associe-preview-name {
  font-family: 'Raleway', sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: var(--teal-dark);
  margin-bottom: 4px;
}

.associe-preview-title {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 300;
}

/* ─────────────────────────────────────────
       RUBRICS PREVIEW CARDS (4 columns)
    ───────────────────────────────────────── */
.rubrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin-top: 60px;
  padding: 60px;
  background: var(--off-white);
  border-radius: 0;
}

.rubric-card {
  background: white;
  padding: 40px 30px;
  border-top: 3px solid var(--teal-light);
  transition: transform 0.3s, box-shadow 0.3s;
}

.rubric-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(16, 80, 88, 0.12);
}

.rubric-card-title {
  font-family: 'Raleway', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--teal-dark);
  margin-bottom: 16px;
  line-height: 1.3;
}

.rubric-card-text {
  font-size: 14px;
  line-height: 1.7;
  color: #666;
  font-weight: 300;
  margin-bottom: 24px;
}

.rubric-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Raleway', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--teal-dark);
  padding-bottom: 4px;
  border-bottom: 1.5px solid var(--teal-light);
  transition: color 0.25s;
}

.rubric-card-cta:hover {
  color: var(--teal-light);
}

/* ─────────────────────────────────────────
       SÉPARATEURS
    ───────────────────────────────────────── */
.sep-down {
  width: 100%;
  height: 72px;
  background: var(--teal-dark);
  clip-path: polygon(0 0, 100% 45%, 100% 100%, 0 100%);
  margin-top: -1px;
}

.sep-up {
  width: 100%;
  height: 72px;
  background: var(--teal-dark);
  clip-path: polygon(0 0, 100% 0, 100% 55%, 0 100%);
  margin-bottom: -1px;
}

/* ─────────────────────────────────────────
       SECTION DOMMAGES — avec photo de fond
    ───────────────────────────────────────── */
.section-dommages {
  position: relative;
  padding: 100px 60px;
  color: white;
  overflow: hidden;
}

.section-dommages-bg {
  position: absolute;
  inset: 0;
  /* background-image retiré, géré désormais via PHP */
  /* background-image: url('idée photo pour illustrer la page dommage.jpeg'); */
  background-size: cover;
  background-position: center;
  z-index: 0;
}

.section-dommages-overlay {
  position: absolute;
  inset: 0;
  background: rgba(16, 80, 88, 0.88);
  z-index: 1;
}

.section-dommages .section-inner {
  position: relative;
  z-index: 2;
  max-width: 1400px;
  margin: 0 auto;
}

.section-dommages .section-heading {
  color: white;
}

.section-dommages .label {
  color: rgba(0, 136, 137, 0.8);
}

.dommages-intro {
  font-size: 16px;
  line-height: 1.85;
  color: rgba(255, 255, 255, 0.75);
  font-weight: 300;
  margin-bottom: 40px;
  max-width: 700px;
}

.dommages-tiles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  margin-top: 40px;
}

.dommages-tile {
  position: relative;
  background: #000;
  border-radius: 4px;
  overflow: hidden;
  height: 280px;
  cursor: default;
  group: 1;
}

.dommages-tile-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.dommages-tile:hover .dommages-tile-img {
  transform: none;
}

.dommages-tile-overlay {
  position: absolute;
  inset: 0;
  background: rgba(16, 80, 88, 0.25);
  z-index: 2;
  transition: background 0.3s;
}

.dommages-tile:hover .dommages-tile-overlay {
  background: rgba(16, 80, 88, 0.15);
}

.dommages-tile-content {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 32px 24px;
  color: white;
}

.dommages-tile-title {
  font-family: 'Raleway', sans-serif;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 4px;
  line-height: 1.2;
}

.dommages-tile-detail {
  font-size: 12px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 300;
}

/* ─────────────────────────────────────────
       SECTION RESPONSABILITÉS — avec photo de fond
    ───────────────────────────────────────── */
.section-responsabilites {
  position: relative;
  padding: 100px 60px;
  color: white;
  overflow: hidden;
}

.section-responsabilites-bg {
  position: absolute;
  inset: 0;
  background-image: url('idée photo pour illustrer la page responsabilité.jpeg');
  background-size: cover;
  background-position: center;
  z-index: 0;
}

.section-responsabilites-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 56, 64, 0.90);
  z-index: 1;
}

.section-responsabilites .section-inner {
  position: relative;
  z-index: 2;
  max-width: 1400px;
  margin: 0 auto;
}

.section-responsabilites .section-heading {
  color: white;
}

.section-responsabilites .label {
  color: rgba(0, 136, 137, 0.8);
}

.resp-intro {
  font-size: 16px;
  line-height: 1.85;
  color: rgba(255, 255, 255, 0.75);
  font-weight: 300;
  margin-bottom: 40px;
  max-width: 700px;
}

.resp-tiles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  margin-top: 40px;
}

.resp-tile {
  position: relative;
  background: #000;
  border-radius: 4px;
  overflow: hidden;
  height: 280px;
  cursor: default;
}

.resp-tile-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.resp-tile:hover .resp-tile-img {
  transform: none;
}

.resp-tile-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 56, 64, 0.25);
  z-index: 2;
  transition: background 0.3s;
}

.resp-tile:hover .resp-tile-overlay {
  background: rgba(10, 56, 64, 0.15);
}

.resp-tile-content {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 32px 24px;
  color: white;
}

.resp-tile-title {
  font-family: 'Raleway', sans-serif;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 0;
  line-height: 1.2;
}

/* ─────────────────────────────────────────
       SECTION ACTUALITÉS
    ───────────────────────────────────────── */
.section-actualites {
  background: var(--white);
  padding: 100px 60px;
}

.actualites-inner {
  max-width: 1400px;
  margin: 0 auto;
}

.actualites-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 60px;
}

.actualites-header-left h2 {
  font-family: 'Raleway', sans-serif;
  font-size: clamp(30px, 3.2vw, 44px);
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--teal-dark);
  line-height: 1.2;
}

.actualites-header-cta {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: 'Raleway', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--teal-dark);
  padding-bottom: 6px;
  border-bottom: 1.5px solid var(--teal-light);
  transition: color 0.25s;
}

.actualites-header-cta:hover {
  color: var(--teal-light);
}

.actualites-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.news-card {
  background: white;
  border: 1px solid rgba(16, 80, 88, 0.08);
  border-radius: 4px;
  overflow: hidden;
  transition: box-shadow 0.3s, transform 0.3s;
}

.news-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(16, 80, 88, 0.12);
}

.news-card-img {
  width: 100%;
  height: 220px;
  background: var(--off-white);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

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

.news-card-badges {
  position: absolute;
  top: 16px;
  left: 16px;
  right: 16px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.news-badge {
  font-family: 'Raleway', sans-serif;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 6px 12px;
  background: white;
  color: var(--teal-dark);
  border-radius: 2px;
}

.news-card-content {
  padding: 32px;
}

.news-card-title {
  font-family: 'Raleway', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--teal-dark);
  margin-bottom: 12px;
  line-height: 1.3;
}

.news-card-excerpt {
  font-size: 14px;
  line-height: 1.7;
  color: #666;
  font-weight: 300;
  margin-bottom: 0;
}

/* ─────────────────────────────────────────
       SECTION ÉQUIPE
    ───────────────────────────────────────── */
.section-equipe {
  background: var(--white);
  padding: 100px 60px;
}

.equipe-inner {
  max-width: 1400px;
  margin: 0 auto;
}

/* ── Associés — Un par ligne, photo carrée + bio à droite ── */
.associes-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin-top: 50px;
  margin-bottom: 70px;
}

.associe-card {
  display: flex;
  border-radius: 6px;
  overflow: hidden;
  background: var(--off-white);
}

.associe-photo-wrap {
  flex-shrink: 0;
  width: 320px;
  height: 320px;
  position: relative;
  overflow: hidden;
  align-self: flex-start;
}

.associe-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
  display: block;
  transition: transform 0.5s ease;
}

.associe-card:hover .associe-photo {
  transform: scale(1.03);
}

/* Liseré turquoise vertical entre photo et texte */
.associe-photo-wrap::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 3px;
  height: 100%;
  background: var(--teal-light);
}

.associe-text {
  flex: 1;
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.associe-name {
  font-family: 'Raleway', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--teal-dark);
  margin-bottom: 6px;
}

.associe-title {
  font-family: 'Raleway', sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--teal-light);
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(16, 80, 88, 0.1);
}

.associe-email {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 300;
  margin-bottom: 16px;
}

.collab-email {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 300;
  margin-top: 4px;
}

.collab-email-visible {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 300;
  margin-top: 4px;
}

.associe-bio {
  font-size: 14px;
  line-height: 1.8;
  color: #666;
  font-weight: 300;
}

/* ── Assistante juridique — carte simple ── */
.assistante-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.assistante-card {
  background: var(--off-white);
  border-radius: 6px;
  padding: 32px;
  border-top: 3px solid var(--teal-light);
}

.assistante-info {
  font-size: 12.5px;
  line-height: 1.7;
  color: #888;
  margin-top: 12px;
  font-weight: 300;
}

/* ── Collaborateurs — Style 1 : photo pleine + overlay ── */
.equipe-subtitle {
  font-family: 'Raleway', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--teal-light);
  margin-bottom: 36px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(16, 80, 88, 0.1);
}

.collabs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.collab-card {
  position: relative;
  height: 500px;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  background: #000;
  padding: 0;
}

.collab-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
  border-radius: 0;
  margin-bottom: 0;
  transition: transform 0.5s ease;
}

.collab-card:hover .collab-photo {
  transform: scale(1.05);
}

/* Gradient nom en bas */
.collab-info-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 30px 24px;
  background: linear-gradient(to top, rgba(10, 56, 64, 0.9) 0%, transparent 100%);
  color: white;
  z-index: 2;
  transition: opacity 0.3s;
}

.collab-card:hover .collab-info-bar {
  opacity: 0;
}

.collab-name {
  font-family: 'Raleway', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: white;
  margin-bottom: 4px;
}

.collab-title {
  font-family: 'Raleway', sans-serif;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 0;
}

/* Volet bio overlay au survol */
.collab-bio-overlay {
  position: absolute;
  inset: 0;
  background: rgba(16, 80, 88, 0.92);
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 28px;
  opacity: 0;
  z-index: 3;
  transition: opacity 0.4s ease;
}

.collab-card:hover .collab-bio-overlay {
  opacity: 1;
}

.collab-bio-overlay .collab-overlay-name {
  font-family: 'Raleway', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: white;
  margin-bottom: 4px;
}

.collab-bio-overlay .collab-overlay-title {
  font-family: 'Raleway', sans-serif;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--teal-light);
  margin-bottom: 16px;
}

.collab-info {
  font-size: 12.5px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 300;
}

.collab-info strong {
  color: rgba(255, 255, 255, 0.95);
  font-weight: 600;
  display: block;
  margin-top: 10px;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ─────────────────────────────────────────
       SECTION SAVOIR-FAIRE
    ───────────────────────────────────────── */
.section-methode {
  background: var(--off-white);
  padding: 100px 60px;
}

.methode-inner {
  max-width: 1400px;
  margin: 0 auto;
}

.methode-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  margin-top: 50px;
}

.methode-col-title {
  font-family: 'Raleway', sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal-dark);
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--teal-light);
}

.methode-col-intro {
  font-size: 15px;
  line-height: 1.8;
  color: #666;
  font-weight: 300;
  margin-bottom: 30px;
}

.methode-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

.step {
  padding: 28px 0;
  border-bottom: 1px solid rgba(16, 80, 88, 0.08);
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.step:last-child {
  border-bottom: none;
}

.step-num {
  font-family: 'Raleway', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--teal-light);
  flex-shrink: 0;
  width: 40px;
}

.step-content {}

.step-title {
  font-family: 'Raleway', sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--teal-dark);
  margin-bottom: 8px;
}

.step-desc {
  font-size: 13.5px;
  line-height: 1.75;
  color: #888;
  font-weight: 300;
}

/* Valeurs */
.valeurs-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

.valeur-item {
  padding: 28px 0;
  border-bottom: 1px solid rgba(16, 80, 88, 0.08);
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.valeur-item:last-child {
  border-bottom: none;
}

.valeur-num {
  font-family: 'Raleway', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--teal-light);
  flex-shrink: 0;
  width: 40px;
}

.valeur-text {
  font-size: 14.5px;
  line-height: 1.7;
  color: #666;
  font-weight: 400;
}

/* ─────────────────────────────────────────
       SECTION BUREAUX
    ───────────────────────────────────────── */
.section-bureaux {
  background: var(--white);
  padding: 100px 60px;
}

.bureaux-inner {
  max-width: 1400px;
  margin: 0 auto;
}

.bureaux-intro {
  font-size: 18px;
  line-height: 1.85;
  color: #666;
  font-weight: 300;
  max-width: 700px;
  margin-bottom: 60px;
}

.bureaux-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.bureau-card {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  background: var(--off-white);
  padding: 30px 30px 30px 10px;
  border-top: 3px solid var(--teal-light);
}

.bureau-city {
  font-family: 'Raleway', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--teal-dark);
  margin-bottom: 24px;
}

.bureau-info {
  font-size: 15px;
  line-height: 1.85;
  color: #666;
  font-weight: 300;
}

.bureau-info a {
  color: var(--teal-light);
  transition: color 0.25s;
}

.bureau-info a:hover {
  color: var(--teal-dark);
}

.bureau-image img {
  width: 350px;
  border-radius: 8px;
}

/* ─────────────────────────────────────────
       SECTION NOUS REJOINDRE
    ───────────────────────────────────────── */
.section-rejoindre {
  background: var(--teal-dark);
  padding: 100px 60px;
  text-align: center;
  color: white;
}

.section-rejoindre .section-heading {
  color: white;
  margin-bottom: 20px;
}

.section-rejoindre .label {
  color: rgba(0, 136, 137, 0.7);
  justify-content: center;
  display: flex;
}

.rejoindre-text {
  font-size: 18px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.72);
  max-width: 680px;
  margin: 0 auto 40px;
  line-height: 1.85;
}

.btn-contact {
  display: inline-block;
  font-family: 'Raleway', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--teal-dark);
  background: white;
  padding: 16px 44px;
  transition: background 0.25s, color 0.25s;
}

.btn-contact:hover {
  background: var(--teal-light);
  color: white;
}

/* ─────────────────────────────────────────
      MENTIONS LEGALES
    ───────────────────────────────────────── */

.section-legal h2 {
  font-family: 'Raleway', sans-serif;
  color: var(--teal-dark);
  margin-top: 2em;
  margin-bottom: 0.75em;
}

.legal-text p {
  margin-bottom: 1em;
}

/* ─────────────────────────────────────────
       FOOTER
    ───────────────────────────────────────── */
footer {
  background: var(--teal-deep);
  padding: 70px 60px 0;
  color: white;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2.2fr 1fr 1fr 1fr;
  gap: 60px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand .fn {
  font-family: 'Raleway', sans-serif;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: white;
}

.footer-brand .fs {
  font-family: 'Raleway', sans-serif;
  font-size: 8px;
  letter-spacing: 0.45em;
  color: var(--teal-light);
  margin-bottom: 22px;
}

.footer-brand p {
  font-size: 13px;
  line-height: 1.85;
  color: rgba(255, 255, 255, 0.42);
  font-weight: 300;
}

.footer-col h4 {
  font-family: 'Raleway', sans-serif;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--teal-light);
  margin-bottom: 22px;
}

.footer-col a,
.footer-col p {
  display: block;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.42);
  margin-bottom: 10px;
  font-weight: 300;
  transition: color 0.25s;
}

.footer-col a:hover {
  color: white;
}

.footer-bottom {
  padding: 22px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-bottom p {
  font-family: 'Raleway', sans-serif;
  font-size: 9.5px;
  letter-spacing: 0.18em;
  color: rgba(255, 255, 255, 0.25);
}

.footer-bottom a {
  font-family: 'Raleway', sans-serif;
  font-size: 9.5px;
  letter-spacing: 0.18em;
  color: rgba(255, 255, 255, 0.25);
}

.footer-bottom a:hover {
  transform: scale(1.15);
}

/* ─────────────────────────────────────────
       HAMBURGER MENU
    ───────────────────────────────────────── */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  z-index: 301;
  background: none;
  border: none;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--teal-dark);
  transition: transform 0.3s, opacity 0.3s;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile nav overlay */
.mobile-nav {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  z-index: 299;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.mobile-nav.open {
  display: flex;
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav a {
  font-family: 'Raleway', sans-serif;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal-dark);
  padding: 10px 20px;
  transition: color 0.25s;
}

.mobile-nav a:hover {
  color: var(--teal-light);
}

/* Close button inside mobile nav */
.mobile-nav-close {
  position: absolute;
  top: 18px;
  right: 20px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: 1px solid rgba(16, 80, 88, 0.15);
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.25s, border-color 0.25s;
}

.mobile-nav-close:hover {
  background: rgba(16, 80, 88, 0.06);
  border-color: var(--teal-light);
}

.mobile-nav-close svg {
  width: 18px;
  height: 18px;
  stroke: var(--teal-dark);
  stroke-width: 2;
}

/* ─────────────────────────────────────────
       PAGE HERO (sub-pages)
    ───────────────────────────────────────── */
.page-hero {
  background: var(--teal-dark);
  padding: 140px 60px 60px;
  text-align: center;
}

.page-hero .label {
  color: rgba(0, 136, 137, 0.7);
  justify-content: center;
  display: flex;
}

.page-hero .section-heading {
  color: white;
  margin-bottom: 0;
}

/* ─────────────────────────────────────────
       RESPONSIVE
    ───────────────────────────────────────── */
@media (max-width: 1100px) {
  .navbar {
    padding: 0 20px;
  }

  .nav-links {
    gap: 14px;
  }

  .nav-links a {
    font-size: 9.5px;
    letter-spacing: 0.12em;
  }

  .logo-nav {
    height: 34px;
  }

  .section-intro {
    grid-template-columns: 1fr;
    gap: 50px;
    padding: 70px 30px;
  }

  .rubrics-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    padding: 40px 30px;
  }

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

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

  .actualites-grid {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }

  .associes-grid {
    grid-template-columns: 1fr;
  }

  .collabs-grid {
    grid-template-columns: 1fr 1fr;
  }

  .assistante-grid {
    grid-template-columns: 1fr 1fr;
  }

  .methode-cols {
    grid-template-columns: 1fr;
  }

  .bureaux-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 900px) {
  .navbar {
    height: 60px;
    padding: 0 20px;
  }

  .nav-links {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .page-hero {
    padding: 100px 20px 40px;
  }

  .hero {
    min-height: 500px;
    margin-top: 60px;
  }

  .hero-content {
    top: 50%;
    left: 50%;
    bottom: auto;
    transform: translate(-50%, -50%);
  }

  .hero-baseline {
    font-size: 13px;
    gap: 10px;
  }

  /* Mobile : la nouvelle image fond PAR-DESSUS l'ancienne (qui reste opaque)
         -> jamais de transparence simultanée, donc pas de fond vert visible */
  .hero-slide {
    clip-path: none !important;
    opacity: 0;
    /* Pas de transition par défaut : seule .fading-in en ajoute une */
  }

  .hero-slide.active {
    opacity: 1;
    z-index: 2;
    clip-path: none !important;
  }

  .hero-slide.fading-in {
    z-index: 3;
    transition: opacity 1.4s ease-in-out;
    clip-path: none !important;
  }

  .hero-slide.wipe-in {
    opacity: 1;
    z-index: 2;
    animation: none !important;
    clip-path: none !important;
  }

  .hero-slide.wipe-out {
    opacity: 0;
    z-index: 1;
    clip-path: none !important;
  }

  .hero-logo {
    width: clamp(200px, 55vw, 280px);
    height: auto;
  }

  .hero-origami img {
    width: clamp(120px, 38vw, 200px);
    height: auto;
  }

  .section-dommages,
  .section-responsabilites,
  .section-equipe,
  .section-methode,
  .section-bureaux,
  .section-rejoindre,
  .section-actualites {
    padding: 110px 20px 50px;
  }

  .section-intro {
    padding: 50px 20px;
  }

  .rubrics-grid {
    grid-template-columns: 1fr;
    padding: 30px 20px;
  }

  .dommages-tiles {
    grid-template-columns: 1fr;
  }

  .dommages-tile {
    height: 220px;
  }

  .resp-tiles {
    grid-template-columns: 1fr;
  }

  .resp-tile {
    height: 220px;
  }

  .actualites-grid {
    grid-template-columns: 1fr;
  }

  .actualites-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .collabs-grid {
    grid-template-columns: 1fr;
  }

  .assistante-grid {
    grid-template-columns: 1fr;
  }

  .associe-card {
    flex-direction: column;
  }

  .associe-photo-wrap {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
  }

  .associe-photo {
    object-position: center 15%;
  }

  .associe-photo-wrap::after {
    display: none;
  }

  /* Collaborateurs : bios visibles en permanence sur mobile (pas de hover possible) */
  .collab-card {
    height: auto;
    background: var(--off-white);
    border-radius: 6px;
    overflow: hidden;
    cursor: default;
    display: block;
  }

  .collab-photo {
    width: 100%;
    height: 400px;
    object-fit: cover;
    object-position: center 15%;
    display: block;
  }

  .collab-card:hover .collab-photo {
    transform: none;
  }

  .collab-info-bar {
    position: relative;
    inset: auto;
    bottom: auto;
    left: auto;
    right: auto;
    background: var(--teal-dark);
    padding: 18px 22px;
    opacity: 1;
    z-index: auto;
  }

  .collab-card:hover .collab-info-bar {
    opacity: 1;
  }

  .collab-bio-overlay {
    position: relative;
    inset: auto;
    opacity: 1;
    background: white;
    color: var(--text-dark);
    padding: 22px 22px 26px;
    z-index: auto;
    display: block;
  }

  .collab-bio-overlay .collab-overlay-name,
  .collab-bio-overlay .collab-overlay-title {
    display: none;
  }

  .collab-info {
    color: #555;
    font-size: 13px;
    line-height: 1.7;
  }

  .collab-info strong {
    color: var(--teal-dark);
  }

  .bureau-card {
    padding: 30px;
  }

  .section-heading {
    font-size: clamp(24px, 6vw, 36px);
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  footer {
    padding: 50px 20px 0;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 10px;
    text-align: center;
    padding: 18px 0;
  }

  .section-rejoindre {
    padding: 110px 20px 60px;
  }

  .btn-contact {
    padding: 14px 30px;
    font-size: 10px;
  }
}

@media (max-width: 480px) {
  .page-hero {
    padding: 80px 16px 30px;
  }

  .hero {
    min-height: 400px;
  }

  .hero-content {
    top: 50%;
    left: 50%;
    bottom: auto;
    transform: translate(-50%, -50%);
  }

  .hero-logo {
    width: clamp(170px, 60vw, 240px);
    height: auto;
  }

  .hero-origami img {
    width: clamp(110px, 40vw, 180px);
    height: auto;
  }

  .hero-baseline {
    font-size: 11px;
    margin-top: 16px;
    padding-top: 16px;
  }

  .section-dommages,
  .section-responsabilites,
  .section-equipe,
  .section-methode,
  .section-bureaux,
  .section-rejoindre,
  .section-actualites {
    padding: 100px 16px 40px;
  }

  .section-intro {
    padding: 40px 16px;
  }

  .rubrics-grid {
    padding: 24px 16px;
  }

  .dommages-tile {
    height: 200px;
  }

  .resp-tile {
    height: 200px;
  }

  .photo-frame {
    height: 300px;
  }

  .photo-frame::before {
    top: -10px;
    left: -10px;
    right: 10px;
    bottom: 10px;
  }

  .step {
    flex-direction: column;
    gap: 8px;
  }

  .valeur-item {
    flex-direction: column;
    gap: 8px;
  }

  #passOverlay {
    padding: 20px;
  }

  #passOverlay img {
    height: 70px !important;
  }

  #passForm {
    flex-direction: column;
  }

  footer {
    padding: 40px 16px 0;
  }

  .news-card-content {
    padding: 20px;
  }
}