/* =============================================
   NEREIA DESIGN — CSS  (Mobile First)
   Palette: Vert sauge + Rouille
   Breakpoints: 480 | 640 | 768 | 1024 | 1200
   ============================================= */

:root {
  --sage-50:  #f4f6f0;
  --sage-100: #e8ede2;
  --sage-200: #cdd8c4;
  --sage-300: #aec0a2;
  --sage-400: #8fa87e;
  --sage-500: #7a9469;
  --sage-600: #5f7651;
  --sage-700: #4a5c3e;
  --sage-800: #36432e;
  --sage-900: #222b1d;

  --rust-50:  #fdf3ee;
  --rust-100: #f9e0d0;
  --rust-200: #f0bfa0;
  --rust-300: #e49a70;
  --rust-400: #d67548;
  --rust-500: #b85c30;
  --rust-600: #974a24;
  --rust-700: #7a3a1a;
  --rust-800: #5c2a12;
  --rust-900: #3d1c0b;

  --neutral-50:  #fafaf8;
  --neutral-100: #f2f1ee;
  --neutral-200: #e5e3de;
  --neutral-300: #ccc9c0;
  --neutral-400: #a8a49a;
  --neutral-500: #87837a;
  --neutral-600: #66625b;
  --neutral-700: #4a4742;
  --neutral-800: #2f2d29;
  --neutral-900: #1a1916;

  --white: #ffffff;
  --black: #0f0f0e;

  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans:  'Inter', system-ui, sans-serif;

  --space-xs:  0.5rem;
  --space-sm:  1rem;
  --space-md:  1.5rem;
  --space-lg:  2.5rem;
  --space-xl:  3rem;
  --space-2xl: 5rem;
  --space-3xl: 6rem;

  --radius-sm:   0.5rem;
  --radius-md:   1rem;
  --radius-lg:   1.5rem;
  --radius-full: 9999px;

  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-md: 0 8px 32px rgba(0,0,0,0.10);
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.14);

  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --duration: 0.3s;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  color: var(--neutral-800);
  background: var(--neutral-50);
  line-height: 1.6;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { border: none; background: none; cursor: pointer; font: inherit; }
input, textarea, select { font: inherit; }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.125rem;
}

@media (min-width: 640px)  { .container { padding: 0 1.5rem; } }
@media (min-width: 1024px) { .container { padding: 0 2rem; } }

/* =============================================
   BUTTONS
   ============================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.625rem;
  border-radius: var(--radius-full);
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  transition: all var(--duration) var(--ease);
  white-space: nowrap;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

@media (min-width: 640px) {
  .btn { padding: 0.875rem 2rem; font-size: 0.9rem; }
}

.btn--primary {
  background: var(--rust-500);
  color: var(--white);
  box-shadow: 0 4px 20px rgba(184, 92, 48, 0.3);
}
.btn--primary:hover, .btn--primary:focus-visible {
  background: var(--rust-600);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(184, 92, 48, 0.4);
}

.btn--outline {
  border: 1.5px solid var(--sage-500);
  color: var(--sage-600);
  background: transparent;
}
.btn--outline:hover, .btn--outline:focus-visible {
  background: var(--sage-500);
  color: var(--white);
  transform: translateY(-2px);
}

.btn--ghost {
  border: 1.5px solid rgba(255,255,255,0.5);
  color: var(--white);
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(8px);
}
.btn--ghost:hover, .btn--ghost:focus-visible {
  background: rgba(255,255,255,0.2);
  border-color: rgba(255,255,255,0.8);
  transform: translateY(-2px);
}

.btn--full { width: 100%; }

/* =============================================
   SECTION HEADERS
   ============================================= */
.section-header {
  text-align: center;
  margin-bottom: var(--space-lg);
}

@media (min-width: 768px) {
  .section-header { margin-bottom: var(--space-xl); }
}

.section-eyebrow {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--rust-500);
  margin-bottom: 0.625rem;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 5vw, 3rem);
  font-weight: 300;
  color: var(--neutral-900);
  line-height: 1.2;
  margin-bottom: 0.875rem;
}

.section-subtitle {
  font-size: 0.95rem;
  color: var(--neutral-500);
  max-width: 540px;
  margin: 0 auto;
  line-height: 1.7;
}

@media (min-width: 640px) {
  .section-eyebrow { font-size: 0.8rem; margin-bottom: 0.75rem; }
  .section-subtitle { font-size: 1rem; }
}

.section-header--light .section-title   { color: var(--white); }
.section-header--light .section-subtitle { color: rgba(255,255,255,0.7); }

/* =============================================
   HEADER / NAV  — Mobile first: burger par défaut
   ============================================= */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1rem 0;
  transition: all var(--duration) var(--ease);
}

.header.scrolled {
  background: rgba(250,250,248,0.96);
  backdrop-filter: blur(14px);
  padding: 0.75rem 0;
  box-shadow: var(--shadow-sm);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  z-index: 301;
}

.logo-mark {
  width: 2rem;
  height: 2.4rem;
  color: var(--rust-500);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: color var(--duration) var(--ease);
}
.logo-mark svg {
  width: 100%;
  height: 100%;
}

.logo-text {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 300;
  color: var(--neutral-900);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: color var(--duration) var(--ease);
}

.header:not(.scrolled) .logo-text  { color: var(--white); }
.header:not(.scrolled) .logo-mark  { color: var(--white); }

/* --- Mobile nav menu (caché par défaut) --- */
.nav__links {
  display: none;
  flex-direction: column;
  align-items: stretch;
}

.nav__links.open {
  display: flex;
  position: fixed;
  inset: 0;
  background: rgba(34,43,29,0.97);
  backdrop-filter: blur(16px);
  z-index: 200;
  padding: 5rem 1.5rem 2rem;
  gap: 0.375rem;
  justify-content: flex-start;
  overflow-y: auto;
}

.nav__links.open .nav__link {
  color: rgba(255,255,255,0.85);
  font-size: 1.1rem;
  padding: 0.875rem 1rem;
  border-radius: var(--radius-md);
}
.nav__links.open .nav__link:hover { background: rgba(255,255,255,0.08); }
.nav__links.open .btn--outline {
  margin-top: 0.5rem;
  color: var(--white);
  border-color: rgba(255,255,255,0.4);
  text-align: center;
}

/* --- Burger (visible par défaut) --- */
.nav__burger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 0.5rem;
  z-index: 300;
}
.nav__burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--neutral-800);
  border-radius: 2px;
  transition: all var(--duration) var(--ease);
}
.header:not(.scrolled) .nav__burger span { background: var(--white); }
.nav__burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav__burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* --- Desktop nav (≥ 769px) --- */
@media (min-width: 769px) {
  .nav__burger { display: none; }

  .nav__links {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.25rem;
    position: static;
    background: none;
    backdrop-filter: none;
    padding: 0;
    inset: auto;
    z-index: auto;
    overflow: visible;
  }

  .nav__link {
    padding: 0.5rem 0.875rem;
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--neutral-600);
    border-radius: var(--radius-full);
    transition: all var(--duration) var(--ease);
  }

  .header:not(.scrolled) .nav__link { color: rgba(255,255,255,0.85); }
  .nav__link:hover { color: var(--rust-500); background: var(--rust-50); }
  .header:not(.scrolled) .nav__link:hover { color: var(--white); background: rgba(255,255,255,0.15); }

  .nav__links .btn--outline {
    margin-left: 0.5rem;
    padding: 0.5rem 1.25rem;
    margin-top: 0;
    color: var(--sage-600);
    border-color: var(--sage-500);
  }
  .header:not(.scrolled) .nav__links .btn--outline {
    border-color: rgba(255,255,255,0.6);
    color: var(--white);
  }
  .header:not(.scrolled) .nav__links .btn--outline:hover {
    background: rgba(255,255,255,0.2);
  }
}

/* =============================================
   HERO
   ============================================= */
.hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background: url('https://images.unsplash.com/photo-1618221195710-dd6b41faaea6?auto=format&fit=crop&w=1920&q=85') center / cover no-repeat;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(34, 43, 29, 0.80) 0%,
    rgba(34, 43, 29, 0.55) 50%,
    rgba(90, 45, 20, 0.40) 100%
  );
}

.hero__shapes { display: none; }

.hero__content {
  position: relative;
  z-index: 2;
  padding: 7rem 0 5rem;
  width: 100%;
}

.hero__eyebrow {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--rust-300);
  margin-bottom: 1rem;
}

.hero__title {
  font-family: var(--font-serif);
  font-size: clamp(2.25rem, 8vw, 4.5rem);
  font-weight: 300;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 1.25rem;
}
.hero__title em { font-style: italic; color: var(--rust-300); }

.hero__subtitle {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.7;
  margin-bottom: 2rem;
  max-width: 520px;
}

/* Actions: colonne sur mobile, ligne sur ≥ 480px */
.hero__actions {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  align-items: flex-start;
}
.hero__actions .btn { width: 100%; max-width: 280px; }

@media (min-width: 480px) {
  .hero__actions { flex-direction: row; flex-wrap: wrap; }
  .hero__actions .btn { width: auto; }
  .hero__eyebrow { font-size: 0.75rem; }
  .hero__subtitle { font-size: 1rem; }
}

@media (min-width: 640px) {
  .hero__content { padding: 8rem 0 5rem; }
}

.hero__scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  z-index: 2;
}
.hero__scroll span {
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
}
.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.5), transparent);
  animation: scrollLine 2s ease-in-out infinite;
}
@keyframes scrollLine {
  0%   { transform: scaleY(0); transform-origin: top; opacity: 1; }
  50%  { transform: scaleY(1); transform-origin: top; opacity: 1; }
  51%  { transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; opacity: 0; }
}

/* =============================================
   STATS  — 2 cols mobile → 4 cols desktop
   ============================================= */
.stats {
  background: var(--white);
  padding: var(--space-xl) 0;
  border-bottom: 1px solid var(--neutral-100);
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

@media (min-width: 768px) {
  .stats__grid { grid-template-columns: repeat(4, 1fr); gap: 1rem; }
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.25rem 0.75rem;
  border-radius: var(--radius-lg);
  transition: background var(--duration) var(--ease);
}
.stat:hover { background: var(--sage-50); }

@media (min-width: 640px) { .stat { padding: 1.5rem; } }

.stat__number {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 5vw, 3rem);
  font-weight: 300;
  color: var(--sage-700);
  line-height: 1;
  margin-bottom: 0.4rem;
}
.stat__number em { font-size: 0.6em; color: var(--rust-500); font-style: normal; }

.stat__label {
  font-size: 0.75rem;
  color: var(--neutral-500);
  letter-spacing: 0.05em;
}
@media (min-width: 640px) { .stat__label { font-size: 0.8rem; } }

/* =============================================
   SERVICES  — 1 col → 2 cols → 3 cols
   ============================================= */
.services {
  padding: var(--space-3xl) 0;
  background: var(--neutral-50);
}

.services__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.125rem;
}

@media (min-width: 640px) {
  .services__grid { grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
}

@media (min-width: 1024px) {
  .services__grid { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
}

.service-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--neutral-100);
  border-radius: var(--radius-lg);
  padding: 1.625rem;
  transition: all var(--duration) var(--ease);
  overflow: hidden;
}

@media (min-width: 768px) { .service-card { padding: 2rem; } }

.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 3px; height: 0;
  background: var(--rust-500);
  border-radius: 0 0 3px 3px;
  transition: height 0.4s var(--ease);
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--sage-200);
}
.service-card:hover::before { height: 100%; }

.service-card--featured {
  background: linear-gradient(135deg, var(--sage-800), var(--sage-700));
  border-color: transparent;
  color: var(--white);
}
.service-card--featured::before { background: var(--rust-400); }
.service-card--featured .service-card__title { color: var(--white); }
.service-card--featured .service-card__text  { color: rgba(255,255,255,0.75); }
.service-card--featured .service-card__link  { color: var(--rust-300); }
.service-card--featured .service-card__icon  { color: var(--sage-200); }

.service-card__badge {
  position: absolute;
  top: 1.125rem; right: 1.125rem;
  background: var(--rust-500);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 500;
  padding: 0.2rem 0.7rem;
  border-radius: var(--radius-full);
  letter-spacing: 0.05em;
}

.service-card__icon {
  width: 44px;
  height: 44px;
  color: var(--sage-500);
  margin-bottom: 1.125rem;
}
@media (min-width: 768px) { .service-card__icon { width: 48px; height: 48px; } }
.service-card__icon svg { width: 100%; height: 100%; }

.service-card__title {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--neutral-900);
  margin-bottom: 0.625rem;
  line-height: 1.3;
}
@media (min-width: 768px) { .service-card__title { font-size: 1.3rem; } }

.service-card__text {
  font-size: 0.875rem;
  color: var(--neutral-500);
  line-height: 1.7;
  margin-bottom: 1.125rem;
}

.service-card__link {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--rust-500);
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  transition: gap var(--duration) var(--ease);
}
.service-card__link:hover { gap: 0.625rem; }

/* =============================================
   REALISATIONS  — 1 col → 2 cols → 3 cols masonry
   ============================================= */
.realisations {
  padding: var(--space-3xl) 0;
  background: var(--white);
}

.portfolio__filters {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: flex-start;
  margin-bottom: 2rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 0.25rem;
}
.portfolio__filters::-webkit-scrollbar { display: none; }

@media (min-width: 480px) { .portfolio__filters { justify-content: center; } }

.filter-btn {
  padding: 0.45rem 1.25rem;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 400;
  color: var(--neutral-500);
  border: 1px solid var(--neutral-200);
  background: transparent;
  transition: all var(--duration) var(--ease);
  cursor: pointer;
  flex-shrink: 0;
}
.filter-btn:hover  { border-color: var(--sage-400); color: var(--sage-600); }
.filter-btn.active { background: var(--sage-700); color: var(--white); border-color: var(--sage-700); }

/* Grid: 1 col mobile */
.portfolio__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

/* 2 cols tablette */
@media (min-width: 640px) {
  .portfolio__grid { grid-template-columns: repeat(2, 1fr); gap: 1.125rem; }
  .portfolio-item--large { grid-column: span 2; }
}

/* 3 cols desktop */
@media (min-width: 1024px) {
  .portfolio__grid { grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
  .portfolio-item--large { grid-column: span 2; }
  .portfolio-item--tall  { grid-row: span 2; }
}

.portfolio-item {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
}

.portfolio-item__img {
  width: 100%;
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.6s var(--ease);
}
.portfolio-item--large .portfolio-item__img { aspect-ratio: 16/9; }
.portfolio-item--tall  .portfolio-item__img {
  aspect-ratio: unset;
  height: 100%;
  min-height: 340px;
}

@media (min-width: 1024px) {
  .portfolio-item--tall .portfolio-item__img { min-height: 420px; }
}

.portfolio-item:hover .portfolio-item__img { transform: scale(1.04); }

.portfolio-item__placeholder svg {
  width: 50%;
  max-width: 140px;
  opacity: 0.6;
}

.portfolio-item__info {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, transparent 100%);
  padding: 1.75rem 1.25rem 1.125rem;
  transform: translateY(4px);
  transition: transform var(--duration) var(--ease);
}
.portfolio-item:hover .portfolio-item__info { transform: translateY(0); }

.portfolio-item__cat {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--rust-300);
  margin-bottom: 0.3rem;
}

.portfolio-item__title {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 400;
  color: var(--white);
}
@media (min-width: 768px) { .portfolio-item__title { font-size: 1.1rem; } }

.portfolio-item.hidden { display: none; }

.realisations__cta { text-align: center; margin-top: 2.5rem; }

/* =============================================
   PROCESS  — colonne mobile → horizontal desktop
   ============================================= */
.process {
  padding: var(--space-3xl) 0;
  background: linear-gradient(135deg, var(--sage-800) 0%, var(--sage-700) 60%, var(--rust-800) 100%);
  position: relative;
  overflow: hidden;
}

.process::before {
  content: '';
  position: absolute;
  top: -200px; right: -200px;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.04), transparent 70%);
}

/* Mobile: empilé verticalement */
.process__steps {
  display: grid;
  grid-template-columns: 1fr;
  max-width: 500px;
  margin: 0 auto;
  gap: 0;
  position: relative;
  z-index: 1;
}

/* Desktop: côte à côte */
@media (min-width: 1024px) {
  .process__steps {
    grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
    max-width: none;
    gap: 1rem;
    align-items: start;
  }
}

.process-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.process-step__num {
  font-family: var(--font-serif);
  font-size: 3rem;
  font-weight: 300;
  color: rgba(255,255,255,0.15);
  line-height: 1;
  margin-bottom: 0.75rem;
}

.process-step__content h3 {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--white);
  margin-bottom: 0.625rem;
}
.process-step__content p {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.7;
}

/* Connecteur vertical sur mobile, horizontal sur desktop */
.process-step__connector {
  flex: 0 0 auto;
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.25), rgba(255,255,255,0.05));
  justify-self: center;
  margin: 0.375rem auto;
}

@media (min-width: 1024px) {
  .process-step__connector {
    width: 100%;
    height: 1px;
    background: linear-gradient(to right, rgba(255,255,255,0.2), rgba(255,255,255,0.05));
    margin-top: 1.75rem;
    align-self: flex-start;
    justify-self: auto;
  }
}

/* =============================================
   TESTIMONIALS  — 1 col → 3 cols
   ============================================= */
.testimonials {
  padding: var(--space-3xl) 0;
  background: var(--neutral-50);
}

.testimonials__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.125rem;
}

@media (min-width: 768px) {
  .testimonials__grid { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
}

.testimonial-card {
  background: var(--white);
  border: 1px solid var(--neutral-100);
  border-radius: var(--radius-lg);
  padding: 1.625rem;
  transition: transform var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
}
@media (min-width: 768px) { .testimonial-card { padding: 2rem; } }

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

.testimonial-card--featured {
  background: var(--sage-700);
  border-color: transparent;
}
.testimonial-card--featured blockquote          { color: rgba(255,255,255,0.85); }
.testimonial-card--featured .testimonial-card__stars { color: var(--rust-300); }
.testimonial-card--featured strong              { color: var(--white); }
.testimonial-card--featured span                { color: rgba(255,255,255,0.6); }
.testimonial-card--featured .author-avatar      { background: rgba(255,255,255,0.15); color: var(--white); }

.testimonial-card__stars {
  color: var(--rust-500);
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}

.testimonial-card blockquote {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-style: italic;
  color: var(--neutral-700);
  line-height: 1.7;
  margin-bottom: 1.375rem;
}
@media (min-width: 768px) { .testimonial-card blockquote { font-size: 1.05rem; } }

.testimonial-card__author {
  display: flex;
  align-items: center;
  gap: 0.875rem;
}

.author-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--sage-100);
  color: var(--sage-700);
  font-size: 0.75rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.testimonial-card__author strong { display: block; font-size: 0.875rem; color: var(--neutral-800); }
.testimonial-card__author span   { font-size: 0.78rem; color: var(--neutral-500); }

/* =============================================
   À PROPOS  — 1 col → 2 cols
   ============================================= */
.apropos {
  padding: var(--space-3xl) 0;
  background: var(--white);
}

.apropos__layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .apropos__layout {
    grid-template-columns: 1fr 1.2fr;
    gap: 5rem;
  }
}

.apropos__visual { position: relative; }

.apropos__img-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  max-width: 380px;
  margin: 0 auto;
}

@media (min-width: 1024px) { .apropos__img-frame { max-width: none; } }

.apropos__img-placeholder {
  width: 100%;
  aspect-ratio: 3/4;
  background: linear-gradient(160deg, var(--sage-200), var(--sage-400));
  display: flex;
  align-items: center;
  justify-content: center;
}
.apropos__img-placeholder svg { width: 100%; height: 100%; }

.apropos__badge {
  position: absolute;
  bottom: 1.5rem;
  right: 0.5rem;
  background: var(--rust-500);
  color: var(--white);
  border-radius: var(--radius-md);
  padding: 0.875rem 1rem;
  text-align: center;
  box-shadow: var(--shadow-md);
}

@media (min-width: 1024px) {
  .apropos__badge { bottom: 2rem; right: -1.5rem; }
}

.apropos__badge strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 300;
  line-height: 1;
}
.apropos__badge span { font-size: 0.72rem; opacity: 0.85; }

.apropos__img-deco {
  position: absolute;
  top: -1.25rem; left: -1.25rem;
  width: 80%; height: 80%;
  border: 2px solid var(--sage-200);
  border-radius: var(--radius-lg);
  z-index: -1;
}

.apropos__text .section-title  { text-align: left; }
.apropos__text .section-eyebrow { text-align: left; }

.apropos__intro {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--neutral-700);
  margin-bottom: 1rem;
  line-height: 1.6;
}
@media (min-width: 640px) { .apropos__intro { font-size: 1.2rem; } }

.apropos__text p {
  font-size: 0.925rem;
  color: var(--neutral-500);
  line-height: 1.8;
  margin-bottom: 1rem;
}
@media (min-width: 640px) { .apropos__text p { font-size: 0.95rem; } }

.apropos__text em { color: var(--rust-500); font-style: italic; }

.apropos__skills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.skill-tag {
  padding: 0.375rem 0.875rem;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--sage-700);
  background: var(--sage-50);
  border: 1px solid var(--sage-200);
  transition: all var(--duration) var(--ease);
}
.skill-tag:hover { background: var(--sage-500); color: var(--white); border-color: var(--sage-500); }

/* =============================================
   CONTACT  — 1 col → 2 cols
   ============================================= */
.contact {
  padding: var(--space-3xl) 0;
  background: var(--neutral-50);
}

.contact__layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: start;
}

@media (min-width: 1024px) {
  .contact__layout { grid-template-columns: 1fr 1.5fr; gap: 5rem; }
}

.contact__info { display: flex; flex-direction: column; gap: 1.375rem; }

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
}

.contact-info-item__icon {
  width: 42px;
  height: 42px;
  background: var(--sage-50);
  border: 1px solid var(--sage-200);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--sage-600);
}
.contact-info-item__icon svg { width: 18px; height: 18px; }

.contact-info-item strong {
  display: block;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--neutral-800);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.2rem;
}
.contact-info-item span { font-size: 0.9rem; color: var(--neutral-500); }

.contact__social { display: flex; gap: 0.75rem; margin-top: 0.25rem; }

.social-link {
  width: 40px;
  height: 40px;
  border: 1px solid var(--neutral-200);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--neutral-500);
  transition: all var(--duration) var(--ease);
}
.social-link svg { width: 17px; height: 17px; }
.social-link:hover { border-color: var(--rust-400); color: var(--rust-500); background: var(--rust-50); }

/* Form */
.contact__form {
  background: var(--white);
  border: 1px solid var(--neutral-100);
  border-radius: var(--radius-lg);
  padding: 1.625rem;
  box-shadow: var(--shadow-sm);
}
@media (min-width: 640px) { .contact__form { padding: 2.5rem; } }

/* form-row: 1 col mobile → 2 cols ≥ 480px */
.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}
@media (min-width: 480px) {
  .form-row { grid-template-columns: 1fr 1fr; gap: 1rem; }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1.125rem;
}

.form-group label {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--neutral-700);
  letter-spacing: 0.03em;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 0.875rem;
  border: 1.5px solid var(--neutral-200);
  border-radius: var(--radius-md);
  background: var(--neutral-50);
  color: var(--neutral-800);
  font-size: 0.9rem;
  transition: border-color var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
  outline: none;
  resize: vertical;
  /* prevent iOS zoom on input */
  -webkit-text-size-adjust: 100%;
}

/* empêche le zoom automatique sur iOS (input < 16px) */
@media (max-width: 767px) {
  .form-group input,
  .form-group select,
  .form-group textarea { font-size: 1rem; }
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--sage-400);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(122, 148, 105, 0.12);
}

.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--neutral-400); }

.form-note {
  text-align: center;
  font-size: 0.76rem;
  color: var(--neutral-400);
  margin-top: 0.875rem;
}

/* =============================================
   FOOTER  — 1 col → 2 cols → 4 cols
   ============================================= */
.footer { background: var(--neutral-900); color: var(--neutral-400); }

.footer__layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding: var(--space-xl) 0;
}

@media (min-width: 640px) {
  .footer__layout { grid-template-columns: repeat(2, 1fr); gap: 2.5rem; }
}

@media (min-width: 1024px) {
  .footer__layout { grid-template-columns: 1.5fr 1fr 1fr 1.5fr; gap: 3rem; }
}

.footer__brand .logo-text  { color: var(--white); }
.footer__brand .logo-mark  { color: var(--rust-300); }
.footer__brand p {
  font-size: 0.875rem;
  line-height: 1.7;
  margin-top: 0.875rem;
  color: var(--neutral-500);
}

.footer__links h5 {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--neutral-300);
  margin-bottom: 1.125rem;
}
.footer__links ul { display: flex; flex-direction: column; gap: 0.6rem; }
.footer__links a  { font-size: 0.875rem; color: var(--neutral-500); transition: color var(--duration) var(--ease); }
.footer__links a:hover { color: var(--rust-400); }

.footer__newsletter h5 {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--neutral-300);
  margin-bottom: 0.75rem;
}
.footer__newsletter p {
  font-size: 0.875rem;
  color: var(--neutral-500);
  line-height: 1.6;
  margin-bottom: 1.125rem;
}
.newsletter-form { display: flex; flex-direction: column; gap: 0.625rem; }
.newsletter-form input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--neutral-700);
  border-radius: var(--radius-full);
  background: var(--neutral-800);
  color: var(--white);
  font-size: 0.875rem;
  outline: none;
  transition: border-color var(--duration) var(--ease);
}
.newsletter-form input:focus { border-color: var(--sage-500); }
.newsletter-form input::placeholder { color: var(--neutral-600); }
.newsletter-form .btn--primary { width: 100%; }

.footer__bottom { border-top: 1px solid var(--neutral-800); padding: 1.25rem 0; }
.footer__bottom .container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.625rem;
}
@media (min-width: 640px) {
  .footer__bottom .container {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.footer__bottom p  { font-size: 0.78rem; color: var(--neutral-600); }
.footer__legal     { display: flex; gap: 1.25rem; }
.footer__legal a   { font-size: 0.78rem; color: var(--neutral-600); transition: color var(--duration) var(--ease); }
.footer__legal a:hover { color: var(--neutral-300); }

/* =============================================
   SCROLL REVEAL
   ============================================= */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
}
.reveal.visible { opacity: 1; transform: none; }

/* Respecte la préférence "réduire les animations" */
@media (prefers-reduced-motion: reduce) {
  .reveal, .scroll-line { animation: none; transition: none; opacity: 1; transform: none; }
}
