:root {
  --bg: #f3f1ee;       /* fond très clair */
  --text: #1f2a33;     /* texte principal */
  --muted: #6b7b86;    /* gris bleuté discret */
  --accent: #D6A95F;   /* couleur accent (ocre) */
  --editorial: #EACB87;/* ocre clair (bande éditoriale) */
}

/* ==== RESET ==== */
* { box-sizing: border-box }
html, body { margin: 0; padding: 0 }
body {
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
}

/* ====== CONTAINERS ====== */
.container {
  width: min(1120px, 92%);
  margin-inline: auto;
}

/* ====== HEADER ====== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(1.2) blur(6px);
  background: rgba(255,255,255,.88);
  border-bottom: 1px solid rgba(0,0,0,.06);
}
.logo {
  font-family: "Playfair Display", serif;
  font-weight: 600;
  letter-spacing: .5px;
  font-size: 28px;
  text-decoration: none;
  color: var(--accent);
}
.main-nav ul {
  list-style: none;
  display: flex;
  gap: 22px;
  margin: 0; padding: 0;
}
.main-nav a {
  position: relative;
  text-decoration: none;
  color: var(--accent);
  font-weight: 600;
  padding-bottom: 6px;
}
.main-nav a::after {
  content: "";
  position: absolute; left: 0; bottom: 0;
  height: 2px; width: 0;
  background: var(--accent);
  transition: width .25s ease;
}
.main-nav a:hover::after, .main-nav .active::after { width: 100%; }

/* ====== HERO ====== */
.hero {
  position: relative;
  min-height: clamp(520px, 78vh, 780px);
  overflow: hidden;
  border-bottom: 1px solid rgba(0,0,0,.12);
  background: #0b3a4a; /* fallback */
}
.hero__bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.03);
  filter: saturate(1.04) contrast(1.04);
}
.hero__bg.fallback {
  background-image: linear-gradient(120deg,#ebf4fb 0%, #fff8ed 100%);
}
.hero__content {
  position: relative;
  color: #fff;
  padding: clamp(48px,8vw,96px) 0;
  display: grid;
  gap: 24px;
}
.display {
  font-family: "Playfair Display", serif;
  font-weight: 500;
  font-size: clamp(34px, 7vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.5px;
  text-shadow: 0 1px 4px rgba(0,0,0,.22);
}
.display em { font-style: italic; opacity: .95; }
.display span { color: var(--accent); }

/* boutons hero */
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap }
.btn {
  display: inline-block;
  text-decoration: none;
  font-weight: 600;
  border-radius: 10px;
  padding: 12px 20px;
  transition: transform .08s ease, box-shadow .12s ease, opacity .2s ease;
}
.btn--accent {
  background: var(--accent);
  color: #fff;
  border: none;
  box-shadow: 0 8px 22px rgba(0,0,0,.12);
}
.btn--accent:hover { opacity: .9; transform: translateY(-1px); }
.btn--accent-outline {
  background: transparent;
  border: 2px solid var(--accent);
  color: var(--accent);
}
.btn--accent-outline:hover { background: var(--accent); color: #fff; }

/* sous-texte hero */
.hero-subtext {
  color: var(--accent);
  font-weight: 500;
  font-size: clamp(14px, 1.8vw, 18px);
  text-shadow: none;
}

/* ====== BANDE ÉDITORIALE ====== */
.statement { background: var(--editorial); color: #1f2a33 }
.statement__inner { display: block; padding: 22px 0 }
.statement p { margin: 0; font-size: clamp(14px, 1.6vw, 18px) }

/* ====== FOOTER ====== */
.site-footer {
  background: #fdfdfd;
  border-top: 1px solid rgba(0,0,0,.05);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 24px;
  padding: 28px 0 34px;
}
.site-footer h2 {
  margin: 0 0 12px;
  font-family: "Playfair Display", serif;
  font-weight: 600; font-size: 22px;
}
.text-link {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid var(--accent);
}
.text-link:hover { color: var(--accent) }
.socials { display: flex; gap: 14px; margin-top: 10px }
.icon { color: #6b7b86 }
.icon:hover { color: #1f2a33 }

/* ====== CONTACT ====== */
.subhero {
  background: linear-gradient(120deg, #ebf4fb 0%, #fff8ed 100%);
  border-bottom: 1px solid rgba(0,0,0,.08);
}
.subhero__inner { padding: clamp(36px,6vw,72px) 0; color: #1f2a33; }
.subhero__lead { margin: 6px 0 0; font-size: clamp(14px, 1.6vw, 18px); color: #55616a; }
.contact__grid {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 32px;
  padding: clamp(24px,4vw,40px) 0;
}
@media (max-width: 900px) { .contact__grid { grid-template-columns: 1fr; } }
.h2 {
  font-family: "Playfair Display", serif;
  font-size: clamp(20px, 2.2vw, 28px);
  margin: 0 0 12px;
}

/* === Titre de section éditorial === */
.section-title {
  font-family: "Playfair Display", serif;
  font-weight: 600;
  font-size: clamp(32px, 5vw, 54px); /* plus grand, adaptatif */
  line-height: 1.15;
  color: var(--text);
  margin: 0; 
  padding-right: 20px; /* pour respirer un peu */
  text-align: left;
  
  /* petit effet design */
  position: relative;
}

.section-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -10px;
  width: 60px;
  height: 4px;
  background: var(--accent); /* la couleur ocre */
  border-radius: 2px;
}

.form { display: grid; gap: 14px; }
.field { display: grid; gap: 6px; }
label { font-weight: 600; }
input, textarea {
  width: 100%; font: inherit; padding: 12px 14px;
  border-radius: 10px; border: 1px solid rgba(0,0,0,.15);
  background: #fff; outline: none;
  transition: box-shadow .15s ease, border-color .15s ease;
}
input:focus, textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(214,169,95,.18);
}
.error { color: #b20000; min-height: 1em; }
.form-success {
  margin-top: 10px;
  background: #f2fff3; border: 1px solid #b6e2bb;
  color: #185c2b; padding: 10px 12px; border-radius: 10px;
}
.contact-list {
  list-style: none; padding: 0; margin: 0 0 10px;
  display: grid; gap: 6px;
}
.contact-list a { color: var(--accent); text-decoration: none; border-bottom: 1px solid var(--accent); }
.socials--large .icon { color: #6b7b86; }
.socials--large .icon:hover { color: #1f2a33 }
.contact__map iframe { width: 100%; height: 360px; border: 0; display: block; }

/* ====== ABOUT ====== */
.section-pad { padding: clamp(28px, 6vw, 72px) 0; }
.about-mission__grid {
  display: grid; grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(18px,3vw,36px); align-items: start;
}
.about-mission__text { display: grid; gap: 10px; color: #37424b; }
@media (max-width: 900px){ .about-mission__grid { grid-template-columns: 1fr; } }
.pillars {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: clamp(16px,2.4vw,28px);
}
.pillar {
  background: #fff; border: 1px solid rgba(0,0,0,.08);
  border-radius: 14px; padding: 16px 18px;
  box-shadow: 0 8px 22px rgba(0,0,0,.06);
}
.pillar h3 {
  font-family: "Playfair Display", serif;
  margin: 0 0 8px; font-size: clamp(17px,2vw,20px);
}
.pillar p { margin: 0; color: #5a6770; font-size: 14px; }
@media (max-width: 1000px){ .pillars { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 640px){ .pillars { grid-template-columns: 1fr; } }
.center { text-align: center }
.kpis {
  list-style: none; margin: 14px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: clamp(10px,2vw,18px); justify-items: center;
}
.kpi__value {
  font-family: "Playfair Display", serif;
  font-size: clamp(24px,4vw,34px);
}
.kpi__label { color: #6b7b86; font-size: 14px; text-align: center }
@media (max-width: 900px){ .kpis { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 520px){ .kpis { grid-template-columns: 1fr; } }
.domains {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px,2.4vw,28px);
}
.domain {
  background: #fff; border: 1px solid rgba(0,0,0,.08);
  border-radius: 14px; padding: 16px 18px;
  box-shadow: 0 8px 22px rgba(0,0,0,.06);
}
.domain h3 {
  font-family: "Playfair Display", serif;
  margin: 0 0 6px; font-size: clamp(17px,2vw,20px);
}
.domain p { margin: 0; color: #5a6770; font-size: 14px; }
@media (max-width: 1000px){ .domains { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 640px){ .domains { grid-template-columns: 1fr; } }

/* ====== PROJECTS ====== */
.controls__bar {
  display:flex; justify-content:space-between; align-items:center; gap:14px;
}
.filters { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  appearance: none; border: 1px solid rgba(0,0,0,.12);
  background: #fff; color: #1f2a33;
  padding: 8px 12px; border-radius: 999px; font-weight: 600; cursor: pointer;
  transition: transform .06s ease, box-shadow .12s ease, background .2s ease;
}
.chip:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(0,0,0,.08); }
.chip.active { background: var(--accent); color: #1f2a33; border-color: var(--accent); }
.search input {
  width: 220px; max-width: 42vw;
  padding: 10px 12px; border-radius: 10px;
  border: 1px solid rgba(0,0,0,.14); outline: none;
}
.search input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(214,169,95,.18); }
.projects-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px,2.4vw,28px);
}
@media (max-width: 1000px){ .projects-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px){ .projects-grid { grid-template-columns: 1fr; } }
.card-project {
  background: #fff; border: 1px solid rgba(0,0,0,.08);
  border-radius: 16px; overflow: hidden;
  box-shadow: 0 8px 22px rgba(0,0,0,.06);
  transition: transform .12s ease, box-shadow .15s ease, opacity .2s ease;
}
.card-project:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(0,0,0,.12); }
.card-body { padding: 14px 16px; display: grid; gap: 6px; }
.card-body h3 {
  margin: 0; font-family: "Playfair Display", serif;
  font-size: clamp(16px,2vw,20px);
}
.meta { margin: 0; color: #6b7b86; font-size: 13px; }
.desc { margin: 0; color: #37424b; font-size: 14px; }

/* Diaporama au survol */
.thumb {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: #f2f2f2;
}
.thumb-carousel img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity .4s ease;
}
.thumb-carousel img:first-child { opacity: 1; }
@keyframes slideFade {
  0% { opacity: 0; } 5% { opacity: 1; }
  30% { opacity: 1; } 35% { opacity: 0; }
  100% { opacity: 0; }
}
/* --- Carrousel 3 images (6s) --- */
.thumb-carousel.img3 img:nth-child(1){ animation: slideFade 6s infinite; animation-delay: 0s; }
.thumb-carousel.img3 img:nth-child(2){ animation: slideFade 6s infinite; animation-delay: 2s; }
.thumb-carousel.img3 img:nth-child(3){ animation: slideFade 6s infinite; animation-delay: 4s; }

/* --- Carrousel 8 images (16s) --- */
.thumb-carousel.img8 img:nth-child(1){ animation: slideFade 16s infinite; animation-delay: 0s; }
.thumb-carousel.img8 img:nth-child(2){ animation: slideFade 16s infinite; animation-delay: 2s; }
.thumb-carousel.img8 img:nth-child(3){ animation: slideFade 16s infinite; animation-delay: 4s; }
.thumb-carousel.img8 img:nth-child(4){ animation: slideFade 16s infinite; animation-delay: 6s; }
.thumb-carousel.img8 img:nth-child(5){ animation: slideFade 16s infinite; animation-delay: 8s; }
.thumb-carousel.img8 img:nth-child(6){ animation: slideFade 16s infinite; animation-delay: 10s; }
.thumb-carousel.img8 img:nth-child(7){ animation: slideFade 16s infinite; animation-delay: 12s; }
.thumb-carousel.img8 img:nth-child(8){ animation: slideFade 16s infinite; animation-delay: 14s; }

/* --- Carrousel 2 images (4s) --- */
.thumb-carousel.img2 img:nth-child(1){ animation: slideFade 4s infinite; animation-delay: 0s; }
.thumb-carousel.img2 img:nth-child(2){ animation: slideFade 4s infinite; animation-delay: 2s; }


.thumb-carousel img{ animation-play-state: paused; }
.card-project:hover .thumb-carousel img { animation-play-state: running; }

/* ====== RÉVEAL ANIMATION ====== */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.reveal.show { opacity: 1; transform: none }

/* ====== RESPONSIVE ====== */
@media (max-width: 820px){
  .hero__actions{ justify-content: center; }
  .footer-grid{ grid-template-columns: 1fr; }
}
