/* =========================================================
   Copeaux & déco — système visuel
   Direction : atelier contemporain, matières naturelles,
   typographie éditoriale et contrastes sobres.
   Les classes et points d'entrée JavaScript existants sont conservés.
   ========================================================= */

:root {
  color-scheme: light;

  --primary: #315643;
  --primary-deep: #203d2d;
  --secondary: #47745a;
  --gold: #c59a5b;
  --brown: #855b3d;
  --dark: #222923;
  --muted: #677168;
  --cream: #f5f2e9;
  --paper: #fffdf8;
  --white: #ffffff;
  --line: rgba(49, 86, 67, 0.16);

  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2rem;
  --space-5: 3rem;
  --space-6: 4rem;

  --radius-sm: 0.75rem;
  --radius-md: 1.25rem;
  --radius-lg: 1.8rem;
  --radius-xl: 2.25rem;

  --shadow-sm: 0 5px 18px rgba(32, 49, 37, 0.055);
  --shadow-md: 0 16px 42px rgba(32, 49, 37, 0.09);
  --shadow-lg: 0 24px 60px rgba(32, 49, 37, 0.14);

  --container: 1240px;
  --header-height: 82px;
  --ease-out: cubic-bezier(0.2, 0.75, 0.25, 1);
}

/* ------------------------- Reset & base ------------------------- */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 1rem);
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--dark);
  background: var(--cream);
  font-family: 'Libre Franklin', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

button,
input,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

::selection {
  color: var(--white);
  background: var(--primary);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 4px;
}

/* ------------------------- Header / navigation ------------------------- */

header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1000;
  width: 100%;
  padding: 0.65rem clamp(1rem, 4vw, 3rem);
  color: var(--cream);
  background: rgba(32, 61, 45, 0.97);
  border-bottom: 1px solid rgba(255, 255, 255, 0.11);
  box-shadow: 0 8px 28px rgba(21, 37, 27, 0.12);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

nav {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  width: min(100%, 1380px);
  min-height: 58px;
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-shrink: 0;
}

.logo {
  color: var(--cream);
  font-family: 'Parisienne', cursive;
  font-size: clamp(2rem, 3.2vw, 2.55rem);
  font-weight: 700;
  line-height: 1.2;
  transition: color 220ms ease, transform 220ms ease;
}

.logo:hover {
  color: #e4c18c;
}

.logo.shrink {
  transform: scale(0.94);
  transform-origin: left center;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(1rem, 2.2vw, 2rem);
}

.nav-links a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: rgba(255, 253, 248, 0.88);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.015em;
  transition: color 180ms ease;
}

.nav-links a::after {
  position: absolute;
  right: 0;
  bottom: 3px;
  left: 0;
  height: 2px;
  content: '';
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 220ms var(--ease-out);
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: #f3d7aa;
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after {
  transform: scaleX(1);
}

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 12px;
  color: var(--cream);
  background: rgba(255, 255, 255, 0.08);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transition: background 180ms ease, border-color 180ms ease;
}

.menu-toggle:hover {
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.14);
}

/* ------------------------- Page layout & headings ------------------------- */

main {
  padding-top: var(--header-height);
}

.container {
  width: min(var(--container), 100%);
  margin: 0 auto;
  padding: clamp(3.5rem, 7vw, 5.5rem) clamp(1.1rem, 4vw, 2.5rem);
}

section[id],
#contact {
  scroll-margin-top: calc(var(--header-height) + 1rem);
}

.section-title {
  position: relative;
  margin: 0 auto clamp(2rem, 4vw, 3.1rem);
  color: var(--primary-deep);
  font-family: 'Libre Franklin', Arial, sans-serif;
  font-size: clamp(1.85rem, 3.3vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1.18;
  text-align: center;
  text-wrap: balance;
}

.section-title::after {
  display: block;
  width: 54px;
  height: 3px;
  margin: 1.1rem auto 0;
  border-radius: 99px;
  content: '';
  background: var(--gold);
}

/* ------------------------- Home hero ------------------------- */

.hero-intro {
  display: flex;
  align-items: stretch;
  width: min(1400px, 100%);
  margin: 0 auto;
  padding: clamp(1rem, 2.5vw, 2rem) clamp(1rem, 3vw, 2.5rem) clamp(3rem, 6vw, 5.2rem);
}

.hero-image {
  width: 52%;
  min-width: 0;
  min-height: 570px;
  overflow: hidden;
  border-radius: var(--radius-xl) 0 0 var(--radius-xl);
  background: #ded5c4;
}

.hero-image img {
  width: 100%;
  height: 100%;
  min-height: 570px;
  object-fit: cover;
  object-position: center;
  transition: transform 900ms var(--ease-out);
}

.hero-intro:hover .hero-image img {
  transform: scale(1.025);
}

.hero-text {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: center;
  width: 48%;
  padding: clamp(2rem, 4.5vw, 4.6rem);
  border: 1px solid rgba(49, 86, 67, 0.08);
  border-left: 0;
  border-radius: 0 var(--radius-xl) var(--radius-xl) 0;
  background: var(--paper);
  box-shadow: var(--shadow-md);
}

.hero-text .section-title {
  margin: 0 0 1.35rem;
  color: var(--primary-deep);
  font-size: clamp(2rem, 3.1vw, 3.2rem);
  line-height: 1.12;
  text-align: left;
}

.hero-text .section-title::after {
  width: 58px;
  margin: 1.1rem 0 0;
}

.hero-subtitle {
  margin-bottom: 1.7rem;
  padding-left: 1rem;
  border-left: 3px solid var(--gold);
  color: var(--secondary);
  font-size: 0.91rem;
  font-weight: 700;
  letter-spacing: 0.025em;
  line-height: 1.65;
}

.hero-text p {
  margin-bottom: 1.05rem;
  color: #4b554d;
  font-size: 0.98rem;
  line-height: 1.85;
}

.hero-text p:last-child {
  margin-bottom: 0;
}

/* Legacy title class retained for existing/future markup. */
.hero-main-title {
  margin-bottom: var(--space-2);
  color: var(--primary);
  font-family: 'Libre Franklin', Arial, sans-serif;
  font-size: clamp(2.3rem, 5vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.1;
  text-align: center;
}

/* ------------------------- Projects / carousels ------------------------- */

#produits {
  padding-top: clamp(3rem, 6vw, 5rem);
}

.project-block {
  margin-bottom: clamp(1.8rem, 4vw, 3rem);
  padding: clamp(1.25rem, 3vw, 2.6rem);
  border: 1px solid rgba(49, 86, 67, 0.09);
  border-radius: var(--radius-lg);
  background: var(--paper);
  box-shadow: var(--shadow-sm);
}

.project-block h3 {
  margin-bottom: 1.35rem;
  color: var(--primary-deep);
  font-family: 'Libre Franklin', Arial, sans-serif;
  font-size: clamp(1.35rem, 2.4vw, 1.8rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.3;
  text-align: left;
}

.carousel-wrapper {
  position: relative;
}

.carousel {
  display: flex;
  gap: clamp(1rem, 2vw, 1.5rem);
  overflow-x: auto;
  padding: 0.7rem 3.6rem 1.5rem;
  scroll-padding-inline: 3.6rem;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}

.carousel::-webkit-scrollbar {
  display: none;
}

.carousel-card {
  width: min(330px, 78vw);
  flex: 0 0 auto;
  overflow: hidden;
  border: 1px solid rgba(49, 86, 67, 0.1);
  border-radius: var(--radius-md);
  background: var(--white);
  box-shadow: 0 5px 16px rgba(32, 49, 37, 0.05);
  cursor: zoom-in;
  opacity: 0.76;
  scroll-snap-align: center;
  transform: scale(0.975);
  transition: opacity 260ms ease, transform 260ms ease, box-shadow 260ms ease;
}

.carousel-card.active {
  opacity: 1;
  box-shadow: var(--shadow-md);
  transform: scale(1);
}

.carousel-card img {
  width: 100%;
  height: 228px;
  object-fit: cover;
  background: #e9e4d8;
  transition: transform 500ms var(--ease-out);
}

.carousel-card:hover img {
  transform: scale(1.035);
}

.carousel-content {
  display: flex;
  min-height: 128px;
  flex-direction: column;
  justify-content: center;
  gap: 0.35rem;
  padding: 1.2rem 1.25rem 1.35rem;
}

.carousel-content h4 {
  color: var(--primary-deep);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.45;
}

.carousel-content p {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.carousel-btn {
  position: absolute;
  top: 43%;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  padding: 0 0 3px;
  border: 1px solid rgba(49, 86, 67, 0.13);
  border-radius: 50%;
  color: var(--primary-deep);
  background: var(--paper);
  box-shadow: var(--shadow-md);
  font-size: 2rem;
  font-weight: 400;
  line-height: 1;
  cursor: pointer;
  transform: translateY(-50%);
  transition: color 180ms ease, background 180ms ease, transform 180ms ease;
}

.carousel-btn:hover {
  color: var(--white);
  background: var(--primary);
  transform: translateY(-50%) scale(1.06);
}

.carousel-btn.prev {
  left: 0.3rem;
}

.carousel-btn.next {
  right: 0.3rem;
}

.carousel:focus {
  outline: 2px solid var(--secondary);
  outline-offset: 5px;
}

/* ------------------------- Buttons ------------------------- */

.contact-btn,
.discover-btn,
.form-submit,
.etapes-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0.9rem 1.55rem;
  border: 1px solid var(--primary);
  border-radius: 999px;
  color: var(--white);
  background: var(--primary);
  font-family: 'Libre Franklin', Arial, sans-serif;
  font-size: 0.94rem;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 7px 18px rgba(49, 86, 67, 0.13);
  transition: background 200ms ease, color 200ms ease, border-color 200ms ease, box-shadow 200ms ease, transform 200ms ease;
}

.contact-btn:hover,
.discover-btn:hover,
.form-submit:hover,
.etapes-btn:hover {
  border-color: var(--primary-deep);
  color: var(--primary-deep);
  background: #e8d4b5;
  box-shadow: 0 10px 22px rgba(49, 86, 67, 0.16);
  transform: translateY(-2px);
}

.contact-btn-wrapper,
.form-submit-wrapper {
  margin-top: 1.8rem;
  text-align: center;
}

.discover-btn {
  display: inline-flex;
  width: auto;
  margin: 1.8rem auto 0;
}

/* ------------------------- Accordion ------------------------- */

.accordion {
  display: grid;
  gap: 0.8rem;
}

.accordion-item {
  overflow: hidden;
  border: 1px solid rgba(49, 86, 67, 0.13);
  border-radius: var(--radius-md);
  background: var(--paper);
  box-shadow: 0 4px 13px rgba(32, 49, 37, 0.035);
  transition: border-color 220ms ease, box-shadow 220ms ease, background 220ms ease;
}

.accordion-item:hover,
.accordion-item:focus-within {
  border-color: rgba(49, 86, 67, 0.42);
  box-shadow: var(--shadow-sm);
}

.accordion-item.active {
  border-color: rgba(49, 86, 67, 0.35);
  background: var(--white);
  box-shadow: var(--shadow-md);
}

.accordion-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  min-height: 72px;
  padding: 1.1rem 1.4rem;
  border: 0;
  color: var(--dark);
  background: transparent;
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.5;
  text-align: left;
  cursor: pointer;
  transition: background 180ms ease;
}

.accordion-btn:hover {
  background: rgba(197, 154, 91, 0.09);
}

.accordion-btn span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  border-radius: 50%;
  color: var(--primary);
  background: var(--cream);
  font-size: 1.2rem;
  font-weight: 500;
  transition: transform 280ms ease, background 180ms ease;
}

.accordion-item.active .accordion-btn span {
  color: var(--white);
  background: var(--primary);
  transform: rotate(45deg);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  padding: 0 1.4rem;
  color: #4b554d;
  opacity: 0;
  transition: max-height 450ms ease, padding 260ms ease, opacity 220ms ease;
}

.accordion-item.active .accordion-content {
  max-height: 1000px;
  padding: 0 1.4rem 1.35rem;
  opacity: 1;
}

.accordion-content p {
  margin-bottom: 0.9rem;
}

.accordion-content p:last-child {
  margin-bottom: 0;
}

.accordion-content ul {
  display: grid;
  gap: 0.4rem;
  padding-left: 1.2rem;
  list-style: disc;
}

.accordion-content li::marker {
  color: var(--gold);
}

/* ------------------------- Contact form ------------------------- */

.contact {
  padding: clamp(1.25rem, 4vw, 2.7rem);
  border: 1px solid rgba(49, 86, 67, 0.09);
  border-radius: var(--radius-lg);
  background: var(--paper);
  box-shadow: var(--shadow-md);
}

.contact h2 {
  margin-bottom: var(--space-4);
  color: var(--primary-deep);
  font-family: 'Libre Franklin', Arial, sans-serif;
  font-size: clamp(1.8rem, 3.2vw, 2.65rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.25;
  text-align: center;
}

input,
textarea {
  display: block;
  width: 100%;
  margin-bottom: 1rem;
  padding: 0.95rem 1rem;
  border: 1px solid #d9ded6;
  border-radius: var(--radius-sm);
  color: var(--dark);
  background: var(--white);
  font-size: 0.96rem;
  line-height: 1.5;
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

input::placeholder,
textarea::placeholder {
  color: #7b847d;
  opacity: 1;
}

input:focus,
textarea:focus {
  border-color: var(--secondary);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(71, 116, 90, 0.1);
  outline: none;
}

textarea {
  min-height: 170px;
  resize: vertical;
}

.hidden-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-status {
  min-height: 1.5rem;
  margin-top: 1rem;
  font-size: 0.92rem;
  font-weight: 600;
  text-align: center;
}

.contact-status.success {
  color: #2f6b3c;
}

.contact-status.error {
  color: #a33a3a;
}

.form-submit:disabled {
  opacity: 0.62;
  cursor: wait;
  transform: none;
}

/* ------------------------- Work section ------------------------- */

.work-section {
  margin-bottom: var(--space-5);
  padding: clamp(2rem, 5vw, 4rem) clamp(1.3rem, 4vw, 3rem);
  border: 1px solid rgba(49, 86, 67, 0.11);
  border-radius: var(--radius-xl);
  background: #e9eee5;
  text-align: center;
}

.work-section .section-title {
  margin-bottom: 1.5rem;
}

.work-text {
  max-width: 790px;
  margin: 0 auto;
  color: #4e5a50;
  font-size: 1.02rem;
  line-height: 1.9;
}

/* ------------------------- Legacy step cards ------------------------- */

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
  margin-top: var(--space-5);
}

.step-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(49, 86, 67, 0.1);
  border-radius: var(--radius-lg);
  background: var(--paper);
  box-shadow: var(--shadow-sm);
  transition: transform 250ms ease, box-shadow 250ms ease;
}

.step-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.step-card img {
  width: 100%;
  height: 210px;
  object-fit: cover;
}

.step-card h2 {
  padding: 1rem 1rem 0.5rem;
  color: var(--primary-deep);
  font-size: 1.1rem;
  line-height: 1.4;
}

.step-card p {
  padding: 0 1rem 1.3rem;
  color: var(--muted);
  font-size: 0.94rem;
}

.step-number {
  position: absolute;
  top: 12px;
  left: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(49, 86, 67, 0.12);
  border-radius: 50%;
  color: var(--primary);
  background: var(--paper);
  font-size: 0.9rem;
  font-weight: 700;
  box-shadow: var(--shadow-sm);
}

/* ------------------------- Legal pages ------------------------- */

.legal-content {
  max-width: 900px;
  margin: 0 auto;
  padding: clamp(1.5rem, 4vw, 3.2rem);
  border: 1px solid rgba(49, 86, 67, 0.09);
  border-radius: var(--radius-lg);
  background: var(--paper);
  box-shadow: var(--shadow-sm);
}

.legal-content h2 {
  margin: 2rem 0 0.75rem;
  color: var(--primary-deep);
  font-size: 1.22rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.4;
}

.legal-content h2:first-child {
  margin-top: 0;
}

.legal-content p {
  color: #4e5a50;
  line-height: 1.9;
}

/* ------------------------- Image modal ------------------------- */

.image-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: rgba(18, 29, 21, 0.94);
  opacity: 0;
  pointer-events: none;
  transition: opacity 240ms ease;
}

.image-modal.active {
  opacity: 1;
  pointer-events: auto;
  cursor: zoom-out;
}

.image-modal img {
  width: min(1000px, 92vw);
  height: min(82vh, 720px);
  object-fit: contain;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.04);
}

/* ------------------------- Footer ------------------------- */

footer {
  margin-top: clamp(2rem, 5vw, 4rem);
  padding: clamp(2.5rem, 5vw, 4rem) 1.25rem;
  border-top: 4px solid var(--gold);
  color: rgba(255, 253, 248, 0.82);
  background: var(--primary-deep);
  text-align: center;
}

.footer-brand {
  margin-bottom: 0.15rem;
  color: var(--cream);
  font-family: 'Parisienne', cursive;
  font-size: clamp(2rem, 4vw, 2.65rem);
  font-weight: 700;
  line-height: 1.35;
}

.footer-sub {
  color: #e2c18d;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.025em;
}

.footer-links,
.social {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 1.5rem;
  margin-top: 1.2rem;
}

.footer-links a,
.social a {
  color: rgba(255, 253, 248, 0.82);
  font-size: 0.88rem;
  transition: color 180ms ease;
}

footer a:hover {
  color: #f0ca8f;
}

/* ------------------------- Story / timeline page ------------------------- */

.steps-intro {
  max-width: 900px;
  margin: 0 auto;
  padding-top: clamp(3.5rem, 7vw, 6.3rem);
  padding-bottom: clamp(3.5rem, 7vw, 5rem);
  text-align: center;
}

.steps-kicker {
  display: inline-block;
  margin-bottom: 1rem;
  color: var(--secondary);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.19em;
  line-height: 1.5;
  text-transform: uppercase;
}

.steps-intro .section-title {
  max-width: 820px;
  margin-bottom: 1.7rem;
  font-size: clamp(2.2rem, 4.4vw, 3.45rem);
}

.steps-intro-text {
  max-width: 720px;
  margin: 1rem auto;
  color: #4e5a50;
  font-size: clamp(1rem, 1.6vw, 1.1rem);
  line-height: 1.9;
}

.steps-intro-highlight {
  max-width: 650px;
  margin: 2rem auto 0;
  color: var(--primary-deep);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.8;
}

.steps-timeline {
  position: relative;
  max-width: 1160px;
  margin: 0 auto;
  padding-top: 0.5rem;
  padding-bottom: 2.5rem;
}

.steps-timeline::before {
  position: absolute;
  top: 1rem;
  bottom: 5rem;
  left: 50%;
  width: 1px;
  content: '';
  background: linear-gradient(to bottom, transparent, rgba(49, 86, 67, 0.25) 6%, rgba(49, 86, 67, 0.25) 94%, transparent);
  transform: translateX(-50%);
}

.story-step {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(2.5rem, 7vw, 6rem);
  min-height: 440px;
  margin-bottom: clamp(4rem, 8vw, 6.5rem);
}

.story-step:last-child {
  margin-bottom: 0;
}

.story-step-reverse .story-step-content {
  order: 2;
}

.story-step-reverse .story-step-image {
  order: 1;
}

.story-step-content {
  padding: clamp(0.5rem, 2vw, 1.6rem);
}

.story-step-content .step-number {
  position: static;
  width: 54px;
  height: 54px;
  margin-bottom: 1.45rem;
  border: 1px solid rgba(49, 86, 67, 0.28);
  color: var(--primary-deep);
  background: var(--cream);
  font-size: 0.85rem;
  box-shadow: none;
}

.story-step-kicker {
  margin: 0 0 0.65rem;
  color: var(--secondary);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  line-height: 1.6;
  text-transform: uppercase;
  opacity: 1;
}

.story-step h2 {
  margin: 0 0 1.15rem;
  color: var(--primary-deep);
  font-family: 'Libre Franklin', Arial, sans-serif;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1.16;
  text-wrap: balance;
}

.story-step-content p {
  max-width: 520px;
  margin: 0 0 1rem;
  color: #4e5a50;
  font-size: 0.98rem;
  line-height: 1.85;
}

.story-step-ending {
  margin-top: 1.5rem !important;
  color: var(--primary-deep) !important;
  font-weight: 700;
}

.story-step-image {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(49, 86, 67, 0.12);
  border-radius: var(--radius-lg);
  background: #e5dfd2;
  box-shadow: var(--shadow-md);
}

.story-step-image::after {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: inherit;
  content: '';
  pointer-events: none;
}

.story-step-image img {
  width: 100%;
  aspect-ratio: 4 / 4.35;
  object-fit: cover;
  transition: transform 650ms var(--ease-out);
}

.story-step-image:hover img {
  transform: scale(1.035);
}

.story-step::before {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  width: 12px;
  height: 12px;
  border: 3px solid var(--cream);
  border-radius: 50%;
  content: '';
  background: var(--gold);
  box-shadow: 0 0 0 1px rgba(49, 86, 67, 0.18);
  transform: translate(-50%, -50%);
}

.steps-conclusion {
  max-width: 920px;
  margin: 0 auto;
  padding-top: clamp(4rem, 8vw, 7rem);
  padding-bottom: clamp(4rem, 8vw, 7rem);
  text-align: center;
}

.steps-conclusion h2 {
  max-width: 800px;
  margin: 0 auto 1.5rem;
}

.steps-conclusion > p:not(.steps-kicker) {
  max-width: 680px;
  margin: 0.9rem auto;
  color: #4e5a50;
  line-height: 1.9;
}

.steps-conclusion .contact-btn {
  margin-top: 1.4rem;
}

/* ------------------------- Responsive ------------------------- */

@media (max-width: 1024px) {
  .steps-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-image,
  .hero-image img {
    min-height: 520px;
  }

  .hero-text {
    padding: clamp(1.7rem, 4vw, 3rem);
  }

  .carousel {
    padding-right: 2.8rem;
    padding-left: 2.8rem;
  }
}

@media (max-width: 900px) {
  :root {
    --header-height: 74px;
  }

  header {
    padding: 0.45rem 1.15rem;
  }

  nav {
    min-height: 58px;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .nav-links {
    position: absolute;
    top: calc(100% + 0.65rem);
    right: 0;
    display: none;
    align-items: stretch;
    flex-direction: column;
    gap: 0.15rem;
    min-width: min(280px, calc(100vw - 2rem));
    padding: 0.7rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-md);
    background: var(--primary-deep);
    box-shadow: var(--shadow-lg);
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links a {
    min-height: 46px;
    padding: 0.65rem 0.85rem;
    border-radius: 9px;
  }

  .nav-links a::after {
    display: none;
  }

  .nav-links a:hover {
    background: rgba(255, 255, 255, 0.08);
  }

  .hero-intro {
    flex-direction: column;
    max-width: 820px;
    padding: 1.3rem 1.2rem 3.5rem;
  }

  .hero-image,
  .hero-image img {
    width: 100%;
    min-height: 0;
    height: clamp(270px, 48vw, 430px);
  }

  .hero-image {
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  }

  .hero-text {
    width: 100%;
    padding: clamp(1.6rem, 5vw, 3rem);
    border: 1px solid rgba(49, 86, 67, 0.08);
    border-top: 0;
    border-radius: 0 0 var(--radius-xl) var(--radius-xl);
  }

  .hero-text .section-title {
    max-width: 680px;
    font-size: clamp(2rem, 5vw, 2.8rem);
  }

  .story-step {
    gap: 2.4rem;
    min-height: 0;
    margin-bottom: 5rem;
  }

  .story-step-content {
    padding: 0.5rem;
  }

  .story-step-image img {
    aspect-ratio: 4 / 4.6;
  }

  .story-step h2 {
    font-size: clamp(1.65rem, 3.5vw, 2.2rem);
  }
}

@media (max-width: 700px) {
  .container {
    padding: 3.2rem 1.1rem;
  }

  .section-title {
    margin-bottom: 2rem;
    font-size: clamp(1.8rem, 7vw, 2.25rem);
  }

  .section-title::after {
    margin-top: 0.9rem;
  }

  .hero-intro {
    padding: 1rem 1rem 2.8rem;
  }

  .hero-text .section-title {
    font-size: clamp(1.9rem, 7.5vw, 2.5rem);
  }

  .hero-subtitle {
    font-size: 0.86rem;
  }

  .project-block {
    padding: 1.1rem 0.75rem 0.8rem;
    border-radius: var(--radius-md);
  }

  .project-block h3 {
    padding: 0 0.6rem;
    font-size: 1.35rem;
  }

  .carousel {
    gap: 0.9rem;
    padding: 0.6rem 2.15rem 1.2rem;
    scroll-padding-inline: 2.15rem;
  }

  .carousel-card {
    width: min(315px, 78vw);
  }

  .carousel-card img {
    height: 205px;
  }

  .carousel-btn {
    top: 39%;
    width: 38px;
    height: 38px;
    padding-bottom: 2px;
    font-size: 1.7rem;
  }

  .carousel-btn.prev {
    left: 0.05rem;
  }

  .carousel-btn.next {
    right: 0.05rem;
  }

  .accordion-btn {
    min-height: 66px;
    padding: 1rem;
    font-size: 0.91rem;
  }

  .accordion-content,
  .accordion-item.active .accordion-content {
    padding-right: 1rem;
    padding-left: 1rem;
  }

  .contact {
    padding: 1.15rem;
    border-radius: var(--radius-md);
  }

  .contact-btn,
  .discover-btn,
  .form-submit,
  .etapes-btn {
    width: 100%;
    padding: 0.9rem 1.1rem;
  }

  .contact-btn-wrapper {
    padding: 0 0.5rem;
  }

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

  .step-card img {
    height: 230px;
  }

  .legal-content {
    padding: 1.3rem;
    border-radius: var(--radius-md);
  }

  .steps-intro {
    padding-top: 3.2rem;
    padding-bottom: 3.2rem;
  }

  .steps-intro-text {
    font-size: 0.98rem;
  }

  .steps-intro-highlight {
    margin-top: 1.5rem;
    font-size: 1rem;
  }

  .steps-timeline {
    padding-bottom: 0.5rem;
  }

  .steps-timeline::before,
  .story-step::before {
    display: none;
  }

  .story-step {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 1.2rem;
    margin-bottom: 4rem;
  }

  .story-step-reverse .story-step-content,
  .story-step-reverse .story-step-image {
    order: initial;
  }

  .story-step-content {
    padding: 0;
  }

  .story-step-content .step-number {
    width: 46px;
    height: 46px;
    margin-bottom: 1.1rem;
  }

  .story-step-kicker {
    font-size: 0.7rem;
  }

  .story-step h2 {
    margin-bottom: 0.8rem;
    font-size: clamp(1.65rem, 7vw, 2.1rem);
  }

  .story-step-content p {
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
  }

  .story-step-image {
    width: 100%;
    border-radius: var(--radius-md);
  }

  .story-step-image img {
    aspect-ratio: 4 / 3;
  }

  .steps-conclusion {
    padding-top: 3.5rem;
    padding-bottom: 4rem;
  }

  .image-modal {
    padding: 1rem;
  }

  footer {
    padding: 2.6rem 1rem;
  }

  .footer-links,
  .social {
    gap: 0.8rem 1rem;
  }
}

@media (max-width: 380px) {
  .logo {
    font-size: 1.9rem;
  }

  .hero-text {
    padding: 1.35rem;
  }

  .carousel {
    padding-right: 1.8rem;
    padding-left: 1.8rem;
  }

  .carousel-card {
    width: 76vw;
  }
}

/* Respecte le réglage système de réduction des animations. */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}


/* ------------------------- Ajustements compacts page Étapes ------------------------- */
.steps-intro {
  padding-top: clamp(2rem, 4vw, 3.5rem);
  padding-bottom: clamp(1.5rem, 3vw, 2.5rem);
}

.steps-intro-text {
  margin: 0.65rem auto;
  line-height: 1.7;
}

.steps-intro-highlight {
  margin-top: 1rem;
  line-height: 1.65;
}

.story-step {
  min-height: 340px;
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
}

.story-step-image img {
  aspect-ratio: 4 / 3.5;
}

.steps-conclusion {
  padding-top: clamp(2rem, 4vw, 3.5rem);
  padding-bottom: clamp(2rem, 4vw, 3.5rem);
}

.steps-conclusion h2 {
  margin-bottom: 1rem;
}

.steps-conclusion > p:not(.steps-kicker) {
  margin: 0.65rem auto;
  line-height: 1.7;
}

@media (max-width: 700px) {
  .steps-intro {
    padding-top: 2rem;
    padding-bottom: 1.5rem;
  }

  .steps-intro .section-title {
    margin-bottom: 1.2rem;
  }

  .steps-intro-highlight {
    margin-top: 0.8rem;
  }

  .story-step {
    gap: 0.85rem;
    margin-bottom: 2.4rem;
  }

  .story-step-image img {
    aspect-ratio: 4 / 3;
  }

  .story-step-content .step-number {
    margin-bottom: 0.75rem;
  }

  .steps-conclusion {
    padding-top: 2rem;
    padding-bottom: 2.5rem;
  }

  #contact.container {
    padding-top: 2rem;
    padding-bottom: 2.5rem;
  }
}


/* ===== Mise en page de la page CGV ===== */

.cgv-content {
    width: min(100% - 32px, 900px);
    margin: 0 auto 48px;
    padding: 0;
    line-height: 1.75;
    color: #292929;
}

.cgv-section {
    margin: 0 0 24px;
    padding: 24px 28px;
    background: #fff;
    border: 1px solid #e8e8e3;
    border-radius: 10px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.035);
}

.cgv-section h2 {
    margin: 0 0 18px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e5e8df;
    color: #42543a;
    font-size: 1.35rem;
    line-height: 1.4;
}

.cgv-section p {
    margin: 0 0 14px;
}

.cgv-section p:last-child {
    margin-bottom: 0;
}

.cgv-section ul {
    margin: 8px 0 18px;
    padding-left: 24px;
}

.cgv-section li {
    margin-bottom: 8px;
    padding-left: 4px;
}

.cgv-section li:last-child {
    margin-bottom: 0;
}

.cgv-section strong {
    color: #303a2b;
}

.cgv-section a,
.cgv-contact a {
    color: #496b3d;
    text-decoration: underline;
    text-underline-offset: 3px;
    overflow-wrap: anywhere;
}

.cgv-section a:hover,
.cgv-contact a:hover {
    color: #2f4727;
}

/* Bloc de contact en bas de page */

.cgv-contact {
    width: min(100% - 32px, 900px);
    margin: 32px auto 64px;
    padding: 22px 24px;
    background: #f3f5ef;
    border-left: 4px solid #8a9b70;
    border-radius: 4px;
    line-height: 1.7;
}

.cgv-contact p {
    margin: 0 0 10px;
}

.cgv-contact p:last-child {
    margin-bottom: 0;
}

/* Adaptation aux écrans mobiles */

@media (max-width: 600px) {
    .cgv-content {
        width: calc(100% - 24px);
        margin-bottom: 32px;
        line-height: 1.65;
    }

    .cgv-section {
        margin-bottom: 16px;
        padding: 19px 17px;
        border-radius: 8px;
    }

    .cgv-section h2 {
        font-size: 1.18rem;
    }

    .cgv-section ul {
        padding-left: 21px;
    }

    .cgv-contact {
        width: calc(100% - 24px);
        margin: 24px auto 40px;
        padding: 18px;
    }
}
