/* ── Variables ────────────────────────────────────────── */
:root {
  --slate:   #1D2E3E;
  --stone:   #7E8C96;
  --stone-lt:#BFC8CF;
  --cream:   #F5F3EF;
  --white:   #FFFFFF;
  --accent:  #5C7A6E;
  --gold:    #B89A6A;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Outfit', sans-serif;
  font-weight: 300;
  background: var(--white);
  color: var(--slate);
  line-height: 1.65;
}

img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* ── Utilities ────────────────────────────────────────── */
.label {
  font-size: .68rem; font-weight: 500; letter-spacing: .22em;
  text-transform: uppercase; color: var(--stone);
  display: flex; align-items: center; gap: 10px;
}
.label::before { content:''; width:24px; height:1px; background:var(--stone-lt); flex-shrink:0; }

h2.title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 3.5vw, 2.9rem);
  font-weight: 700; line-height: 1.18;
  color: var(--slate);
}
.body-text { font-size: .95rem; color: var(--stone); line-height: 1.8; }

.reveal {
  opacity: 0; transform: translateY(20px);
  transition: opacity .65s ease, transform .65s ease;
}
.reveal.in { opacity: 1; transform: none; }

/* ── HEADER ───────────────────────────────────────────── */
header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 99;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(44,58,71,.07);
  height: 68px;
  display: flex; align-items: center;
  padding: 0 6%;
  justify-content: space-between;
  transition: box-shadow .3s;
}
header.up { box-shadow: 0 2px 24px rgba(44,58,71,.09); }

.logo-wrap { display: flex; align-items: center; gap: 11px; text-decoration: none; }
.logo-mark { width: 38px; height: 38px; flex-shrink: 0; }
.logo-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.35rem; font-weight: 700;
  color: var(--slate); letter-spacing: .02em; line-height: 1;
}
.logo-sub {
  font-size: .62rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--stone); margin-top: 3px;
}

nav { display: flex; align-items: center; gap: 1.8rem; }
nav a {
  font-size: .8rem; font-weight: 400; letter-spacing: .07em;
  color: var(--slate); text-decoration: none;
  opacity: .65; transition: opacity .2s;
}
nav a:hover { opacity: 1; }

.btn-soumission {
  background: var(--slate);
  color: var(--white);
  font-family: 'Outfit', sans-serif;
  font-size: .75rem; font-weight: 500;
  letter-spacing: .1em; text-transform: uppercase;
  padding: 11px 22px;
  text-decoration: none; border: none; cursor: pointer;
  transition: background .25s, transform .2s;
  white-space: nowrap;
}
.btn-soumission:hover { background: var(--accent); transform: translateY(-1px); }

/* ── HERO ─────────────────────────────────────────────── */
#accueil {
  background-color: var(--cream);
  margin-top: 68px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  min-height: 52vh;
}

.hero-left {
  background: var(--cream);
  padding: 8% 6% 8% 8%;
  display: flex; flex-direction: column;
  justify-content: center;
  position: relative; overflow: hidden;
}
.hero-left::after {
  content: '';
  position: absolute; bottom: -60px; left: -60px;
  width: 260px; height: 260px;
  border-radius: 50%;
  border: 1.5px solid var(--stone-lt);
  opacity: .4; pointer-events: none;
}

.hero-logo {
  margin-bottom: 24px;
  animation: fadeUp .7s .15s both;
}

.hero-left h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  font-weight: 700; line-height: 1.15;
  color: var(--slate); margin-bottom: 20px;
  animation: fadeUp .7s .25s both;
}
.hero-left h1 em { font-style: italic; color: var(--stone); }

.hero-slogan {
  font-size: 1rem; color: var(--stone); line-height: 1.75;
  max-width: 420px; margin-bottom: 14px;
  animation: fadeUp .7s .4s both;
}

.hero-region {
  display: flex; align-items: center; gap: 7px;
  font-size: .78rem; color: var(--accent); font-weight: 500;
  margin-bottom: 40px;
  animation: fadeUp .7s .5s both;
}
.hero-region::before { content: '📍'; font-size: .85rem; }

.hero-btns {
  display: flex; gap: 12px; flex-wrap: wrap;
  animation: fadeUp .7s .55s both;
}

.btn-primary {
  background: var(--slate); color: var(--white);
  font-family: 'Outfit', sans-serif;
  font-size: .78rem; font-weight: 500; letter-spacing: .1em;
  text-transform: uppercase; padding: 13px 26px;
  text-decoration: none; border: none; cursor: pointer;
  transition: background .25s, transform .2s;
}
.btn-primary:hover { background: var(--accent); transform: translateY(-1px); }

.btn-secondary {
  background: transparent;
  border: 1.5px solid var(--slate);
  color: var(--slate);
  font-family: 'Outfit', sans-serif;
  font-size: .78rem; font-weight: 500; letter-spacing: .1em;
  text-transform: uppercase; padding: 13px 26px;
  text-decoration: none; cursor: pointer;
  transition: all .25s;
}
.btn-secondary:hover { background: var(--slate); color: var(--white); }

.hero-right {
  position: relative; overflow: hidden;
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  max-height: 620px;
}

.hero-right img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

/* ── SECTIONS COMMUNES ────────────────────────────────── */
section { padding: 90px 8%; }

.section-head { margin-bottom: 56px; }
.section-head.center { text-align: center; }
.section-head.center .label { justify-content: center; }
.section-head.center .label::before { display: none; }
.section-head .label { margin-bottom: 14px; }
.section-head h2.title { margin-bottom: 16px; }
.section-head .body-text { max-width: 520px; }
.section-head.center .body-text { margin: 0 auto; }

/* ── SERVICES ─────────────────────────────────────────── */
#services { background: var(--cream); }

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

.service-card {
  background: var(--white);
  padding: 44px 36px;
  position: relative;
  transition: transform .3s, box-shadow .3s;
  overflow: hidden;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 48px rgba(44,58,71,.1);
  z-index: 1;
}

.service-num {
  font-family: 'Playfair Display', serif;
  font-size: 3.5rem; font-weight: 700;
  color: var(--stone-lt); line-height: 1; margin-bottom: 24px;
}

.service-icon {
  width: 42px; height: 42px; margin-bottom: 20px;
  color: var(--accent);
}

.service-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.35rem; font-weight: 600;
  color: var(--slate); margin-bottom: 12px;
}

.service-text { font-size: .88rem; color: var(--stone); line-height: 1.8; }

.service-steps {
  list-style: none; margin-top: 18px;
  display: flex; flex-direction: column; gap: 7px;
}
.service-steps li {
  font-size: .82rem; color: var(--stone);
  display: flex; align-items: flex-start; gap: 8px;
}
.service-steps li::before {
  content: '—'; color: var(--stone-lt); flex-shrink: 0; margin-top: 1px;
}

.service-card::after {
  content: '';
  position: absolute; bottom: -30px; right: -30px;
  width: 100px; height: 100px; border-radius: 50%;
  border: 1.5px solid var(--stone-lt); opacity: .3;
  pointer-events: none;
}

/* ── GALERIE ──────────────────────────────────────────── */
#galerie { background: var(--white); }

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

.gallery-item {
  position: relative; overflow: hidden;
  background: #f0eeeb; cursor: pointer;
  height: 280px;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform .4s ease;
}
.gallery-item:hover img { transform: scale(1.03); }

.gallery-item.avap { height: 300px; }
.gallery-item.avap img {
  object-fit: contain;
  background: var(--cream);
}
.gallery-item.avap-wide { grid-column: span 2; }

.gallery-item::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(29,46,62,.6), transparent 55%);
  opacity: 0; transition: opacity .35s;
}
.gallery-item:hover::after { opacity: 1; }

.gallery-label {
  position: absolute; bottom: 14px; left: 14px;
  font-size: .72rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--white); z-index: 3;
  background: rgba(29,46,62,.7); padding: 5px 11px;
  opacity: 0; transform: translateY(5px);
  transition: opacity .35s, transform .35s;
}
.gallery-item:hover .gallery-label { opacity: 1; transform: none; }

.avap-badge {
  position: absolute;
  bottom: 14px; left: 50%;
  transform: translateX(-50%);
  display: flex; align-items: center; gap: 8px;
  background: rgba(29,46,62,.85);
  backdrop-filter: blur(4px);
  padding: 7px 18px;
  z-index: 4; white-space: nowrap;
}
.avap-left, .avap-right {
  font-size: .75rem; font-weight: 600; letter-spacing: .2em;
  text-transform: uppercase; color: var(--white);
}
.avap-left { color: #f0c070; }
.avap-right { color: #8ecfb0; }
.avap-sep { color: rgba(255,255,255,.5); font-size: .8rem; }

/* ── ÉQUIPE ───────────────────────────────────────────── */
#equipe {
  background: var(--slate);
  padding: 90px 8%;
  color: var(--white);
  position: relative; overflow: hidden;
}
#equipe::before {
  content: '';
  position: absolute; right: -80px; top: -80px;
  width: 380px; height: 380px; border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,.05);
  pointer-events: none;
}
#equipe::after {
  content: '';
  position: absolute; right: 20px; top: 20px;
  width: 240px; height: 240px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.04);
  pointer-events: none;
}

.equipe-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px; align-items: center;
}

#equipe .label { color: rgba(255,255,255,.4); }
#equipe .label::before { background: rgba(255,255,255,.15); }
#equipe h2.title { color: var(--white); margin-bottom: 24px; }
#equipe .body-text { color: rgba(255,255,255,.65); font-size: .95rem; margin-bottom: 18px; }

.team-values { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.team-tag {
  font-size: .72rem; font-weight: 500; letter-spacing: .1em;
  text-transform: uppercase;
  border: 1px solid rgba(255,255,255,.15);
  color: rgba(255,255,255,.55);
  padding: 7px 14px;
}

.equipe-visual { position: relative; z-index: 1; }
.equipe-card {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
  padding: 36px 32px;
}
.equipe-card-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem; font-style: italic;
  color: rgba(255,255,255,.8); margin-bottom: 20px; line-height: 1.5;
}
.equipe-detail { display: flex; flex-direction: column; gap: 12px; }
.equipe-row {
  display: flex; align-items: flex-start; gap: 12px;
  font-size: .83rem; color: rgba(255,255,255,.5);
}
.equipe-row span { color: var(--gold); font-size: .9rem; flex-shrink: 0; }

/* ── CONTACT ──────────────────────────────────────────── */
#contact { background: var(--cream); }

.contact-grid {
  display: flex; flex-direction: column;
  align-items: center; gap: 24px;
}

.contact-info { display: flex; flex-direction: column; gap: 16px; width: 100%; max-width: 520px; }

.contact-item {
  display: flex; align-items: flex-start; gap: 16px;
  padding: 22px 24px; background: var(--white);
  transition: transform .25s, box-shadow .25s;
}
.contact-item:hover { transform: translateX(4px); box-shadow: -3px 0 0 var(--accent), 0 6px 24px rgba(44,58,71,.07); }

.contact-icon { font-size: 1.2rem; flex-shrink: 0; margin-top: 2px; }
.contact-label {
  font-size: .68rem; letter-spacing: .15em; text-transform: uppercase;
  color: var(--stone); margin-bottom: 5px; font-weight: 500;
}
.contact-val {
  font-size: .95rem; color: var(--slate); font-weight: 400;
  text-decoration: none; display: block;
}
.contact-val:hover { color: var(--accent); }
.contact-note { font-size: .8rem; color: var(--stone); margin-top: 3px; }

/* ── SOUMISSION FORM ──────────────────────────────────── */
#soumission { background: var(--white); }

.form-wrap {
  max-width: 660px; margin: 0 auto;
  background: var(--cream); padding: 48px 52px;
}

.form-notice {
  font-size: .78rem; color: var(--stone);
  margin-bottom: 24px;
}

.form-error {
  background: #fef2f2; border-left: 3px solid #e53e3e;
  padding: 12px 16px; font-size: .85rem; color: #c53030;
  margin-bottom: 20px; display: none;
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.form-group { display: flex; flex-direction: column; gap: 7px; margin-bottom: 20px; }

.form-label {
  font-size: .68rem; letter-spacing: .15em; text-transform: uppercase;
  color: var(--stone); font-weight: 500;
}

.form-input, .form-select, .form-textarea {
  border: 1.5px solid var(--stone-lt);
  padding: 12px 14px;
  font-family: 'Outfit', sans-serif;
  font-size: .9rem; color: var(--slate);
  background: var(--white); width: 100%;
  transition: border-color .2s;
  appearance: none; -webkit-appearance: none;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none; border-color: var(--accent);
}

.form-textarea { resize: vertical; min-height: 100px; }

.form-success {
  text-align: center; padding: 56px 20px;
}
.form-success-icon { font-size: 2.8rem; margin-bottom: 16px; }
.form-success-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem; color: var(--slate); margin-bottom: 12px;
}
.form-success-text { color: var(--stone); font-size: .92rem; line-height: 1.75; }

/* ── FOOTER ───────────────────────────────────────────── */
footer {
  background: var(--slate);
  padding: 36px 8%;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 16px;
}
.footer-copy { font-size: .78rem; color: rgba(255,255,255,.35); }
.footer-logo { font-family: 'Playfair Display', serif; font-size: 1.1rem; color: rgba(255,255,255,.6); }
.footer-links { display: flex; gap: 20px; }
.footer-links a {
  font-size: .75rem; color: rgba(255,255,255,.35);
  text-decoration: none; letter-spacing: .06em; transition: color .2s;
}
.footer-links a:hover { color: rgba(255,255,255,.7); }

/* ── ANIMATIONS ───────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: none; }
}

/* ── RESPONSIVE ───────────────────────────────────────── */
@media (max-width: 860px) {
  section { padding: 64px 6%; }

  /* Header — logo seulement, nav + CTA cachés */
  nav { display: none; }
  .btn-soumission { display: none; }

  /* Hero */
  #accueil { grid-template-columns: 1fr; }
  .hero-left { padding: 52px 6% 40px; }
  .hero-right { min-height: 280px; max-height: 360px; }

  /* Services */
  .services-grid { grid-template-columns: 1fr; }

  /* Gallery */
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .gallery-item { height: 180px; }
  .gallery-item.avap { height: 220px; }
  .gallery-item.avap-wide { grid-column: span 2; }

  /* Équipe */
  .equipe-inner { grid-template-columns: 1fr; gap: 40px; }
  #equipe { padding: 64px 6%; }

  /* Footer */
  footer { flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; }
}

@media (max-width: 560px) {
  section { padding: 48px 5%; }

  /* Hero */
  .hero-left h1 { font-size: clamp(1.8rem, 8vw, 2.4rem); }
  .hero-btns { flex-direction: column; }
  .hero-btns .btn-primary,
  .hero-btns .btn-secondary { text-align: center; }
  .hero-right { min-height: 220px; max-height: 280px; }

  /* Gallery — colonne unique */
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-item { height: 220px; }
  .gallery-item.avap { height: 240px; }
  .gallery-item.avap-wide { grid-column: span 1; }

  /* Form */
  .form-row { grid-template-columns: 1fr; }
  .form-wrap { padding: 28px 20px; }
}
