/* =============================================
   PAGE-SPECIFIC STYLES — INDEX
   ============================================= */

body { background: var(--light); }

/* ── SAVOIR-FAIRE ── */
.savoir-faire {
  padding: var(--section-pad) var(--gutter);
  background: var(--light);
  position: relative;
  width: 100%;
}
.sf-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: end;
  margin-bottom: clamp(60px, 8vw, 100px);
  position: relative;
}
.sf-heading {
  font-family: var(--font-heading);
  font-size: clamp(36px, 5.5vw, 68px);
  font-weight: 300;
  line-height: 1.1;
  color: var(--dark);
  margin-top: 22px;
}
.sf-heading em { font-style: italic; color: var(--primary); }
.sf-text {
  font-family: var(--font-serif);
  font-size: clamp(1rem, 1.5vw, 1.25rem); /* 16-20px lisible et zoom-friendly */
  font-weight: 400;
  line-height: 1.75;
  color: var(--text-primary);
  padding-top: 8px;
}
.sf-text + .sf-text { margin-top: 18px; }
.sf-signature {
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 24px;
}
.sig-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}
.sig-names {
  font-size: 17px;
  font-weight: 500;
  color: var(--dark);
  line-height: 1.3;
}
.sig-title {
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-top: 4px;
}
.section-number {
  font-family: 'WT Kormelink', var(--font-serif);
  font-size: clamp(80px, 12vw, 160px);
  font-weight: 300;
  color: rgba(15,28,46,0.04);
  line-height: 1;
  position: absolute;
  top: -20px; right: -10px;
  user-select: none;
  pointer-events: none;
}
.section-number--dark {
  color: rgba(255,255,255,0.06);
}

/* ── TECHNIQUES CARDS ── */
.techniques {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}
.technique-card {
  position: relative;
  overflow: hidden;
  background: var(--dark);
  aspect-ratio: 3/4;
  cursor: default;
  clip-path: inset(0% 0 0 0) !important;
}
.technique-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.23,1,0.32,1), opacity 0.5s ease;
  /* La photo doit ressortir : on passe de 0.6 à 1 (plus de double-darkening). */
  opacity: 1;
}
.technique-card:hover img { transform: scale(1.06); opacity: 0.92; }
.technique-card-overlay {
  position: absolute;
  inset: 0;
  /* Gradient allégé : assombrissement de la zone texte uniquement, photo lisible. */
  background: linear-gradient(to top, rgba(15,28,46,0.78) 0%, rgba(15,28,46,0.35) 55%, transparent 85%);
}
.technique-card-content {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 32px;
}
.technique-num {
  font-size: 11px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}
.technique-title {
  font-family: var(--font-serif);
  font-size: clamp(20px, 2.2vw, 28px);
  font-weight: 300;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 14px;
}
.technique-desc {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(0.95rem, 1.2vw, 1.1rem); /* 15-17px responsive */
  font-weight: 400;
  color: rgba(255,255,255,0.78);
  line-height: 1.65;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.6s ease, opacity 0.6s ease;
  opacity: 0;
}
.technique-card:hover .technique-desc { max-height: 120px; opacity: 1; }
.technique-link {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
  margin-top: 18px;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.4s ease 0.2s, transform 0.4s ease 0.2s;
}
.technique-link::after {
  content: '';
  flex: 1; max-width: 28px;
  height: 1px;
  background: var(--accent);
}
.technique-card:hover .technique-link { opacity: 1; transform: translateY(0); }

/* ── TECHNIQUES (section dédiée — fond sombre) ── */
.techniques-section {
  padding: var(--section-pad) var(--gutter);
  background: var(--dark);
  position: relative;
  width: 100%;
}
.tech-section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: clamp(44px, 6vw, 72px);
  position: relative;
}
.tech-section-heading {
  font-family: var(--font-serif);
  font-size: clamp(36px, 5vw, 62px);
  font-weight: 300;
  color: var(--white);
  line-height: 1.05;
  margin-top: 18px;
}
.tech-section-heading em { font-style: italic; color: var(--accent); }
.tech-section-link {
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 14px;
  transition: gap 0.3s ease;
}
.tech-section-link::after {
  content: '';
  width: 36px; height: 1px;
  background: var(--accent);
  transition: width 0.3s ease;
}
.tech-section-link:hover { gap: 20px; }
.tech-section-link:hover::after { width: 50px; }

@media (max-width: 768px) {
  .tech-section-header { flex-direction: column; align-items: flex-start; gap: 24px; }
}

/* ── RÉALISATIONS — fond clair ── */
.realisations {
  padding: var(--section-pad) var(--gutter);
  background: var(--light);
  position: relative;
  width: 100%;
}
.real-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: clamp(44px, 6vw, 72px);
  position: relative;
}
.real-heading {
  font-family: var(--font-serif);
  font-size: clamp(36px, 5vw, 62px);
  font-weight: 300;
  color: var(--dark);
  line-height: 1.05;
  margin-top: 18px;
}
.real-heading em { font-style: italic; color: var(--primary); }
.real-link {
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 14px;
  transition: gap 0.3s ease;
}
.real-link::after {
  content: '';
  width: 36px; height: 1px;
  background: var(--accent);
  transition: width 0.3s ease;
}
.real-link:hover { gap: 20px; }
.real-link:hover::after { width: 50px; }
.real-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 3px;
  aspect-ratio: 9 / 7;
}
.real-item {
  position: relative;
  overflow: hidden;
  background: var(--primary);
}
.real-item:first-child { grid-row: span 2; }
.real-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.9s cubic-bezier(0.23,1,0.32,1);
}
.real-item:hover img { transform: scale(1.05); }
.real-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 24px 28px;
  /* Gradient allégé : on conserve la lisibilité du titre sans assombrir toute la photo. */
  background: linear-gradient(to top, rgba(15,28,46,0.7) 0%, rgba(15,28,46,0.18) 55%, transparent 100%);
  transform: translateY(4px);
  transition: transform 0.4s ease;
}
.real-item:hover .real-caption { transform: translateY(0); }
.real-caption-title {
  font-family: var(--font-serif);
  font-size: clamp(15px, 1.8vw, 20px);
  font-weight: 300;
  color: var(--white);
}
.real-caption-sub {
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
  margin-top: 5px;
}

.real-link-section {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: clamp(48px, 8vw, 80px);
  margin-bottom: clamp(48px, 8vw, 80px);
}

.real-cta {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 0;
  padding-top: clamp(48px, 8vw, 80px);
  border-top: 1px solid var(--border);
}

/* ── Variante fond SOMBRE pour Réalisations (home : alternance clair/sombre/clair/sombre) ── */
.realisations--dark { background: var(--dark); }
.realisations--dark .real-heading { color: var(--white); }
.realisations--dark .real-heading em { color: var(--accent); }
.realisations--dark .real-cta { border-top-color: rgba(255, 245, 237, 0.18); }

/* ── PRODUITS — fond sombre ── */
.produits {
  padding: var(--section-pad) var(--gutter);
  background: var(--dark);
  position: relative;
  width: 100%;
}
.prod-header { margin-bottom: clamp(48px, 6vw, 80px); position: relative; }
.prod-heading {
  font-family: var(--font-serif);
  font-size: clamp(36px, 5vw, 62px);
  font-weight: 300;
  line-height: 1.1;
  color: var(--white);
  margin-top: 20px;
}
.prod-heading em { font-style: italic; color: var(--accent); }
.prod-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(20px, 2.4vw, 36px);
}
.prod-card { display: flex; flex-direction: column; }
.prod-img-wrap {
  overflow: hidden;
  aspect-ratio: 3/4;
  background: var(--border);
  margin-bottom: 24px;
}
.prod-img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.23,1,0.32,1);
}
.prod-card:hover .prod-img-wrap img { transform: scale(1.06); }
.prod-num {
  font-size: 10px;
  letter-spacing: 0.4em;
  color: var(--accent);
  margin-bottom: 10px;
}
.prod-title {
  font-family: var(--font-serif);
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 300;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 12px;
}
.prod-desc {
  font-family: var(--font-serif);
  font-size: clamp(1rem, 1.2vw, 1.15rem); /* 16-18px lisible et zoom-friendly */
  font-weight: 400;
  color: var(--text-on-dark-muted);
  line-height: 1.7;
  flex: 1;
}
.prod-detail {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 245, 237, 0.18);
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-on-dark-muted);
  display: flex;
  align-items: center;
  gap: 12px;
  transition: color 0.3s ease;
}
.prod-detail::after {
  content: '';
  flex: 1; max-width: 24px;
  height: 1px;
  background: var(--accent);
  transition: max-width 0.3s ease;
}
.prod-card:hover .prod-detail { color: var(--accent); }
.prod-card:hover .prod-detail::after { max-width: 40px; }

/* ── Variante fond CLAIR pour Notre Gamme (home : alternance clair/sombre/clair/sombre) ── */
.produits--light { background: var(--light); }
.produits--light .prod-heading { color: var(--dark); }
.produits--light .prod-heading em { color: var(--primary); }
.produits--light .prod-title { color: var(--dark); }
.produits--light .prod-desc { color: var(--text-secondary); }
.produits--light .prod-detail { color: var(--text-secondary); border-top-color: var(--border); }

/* ── CITATION — fond clair ── */
.citation {
  padding: clamp(80px, 12vw, 160px) var(--gutter);
  background: var(--light);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.citation-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.08;
}
.citation-content { position: relative; z-index: 1; max-width: 820px; margin: 0 auto; }
.citation-mark {
  font-family: var(--font-serif);
  font-size: 81px;
  line-height: 0.5;
  color: var(--primary);
  opacity: 0.35;
  margin-bottom: 24px;
}
.citation-text {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(22px, 3.2vw, 40px);
  font-weight: 300;
  color: var(--dark);
  line-height: 1.45;
}
.citation-rule {
  width: 48px; height: 1px;
  background: var(--primary);
  margin: 36px auto;
  opacity: 0.5;
}
.citation-author {
  font-size: 10px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

/* ── À PROPOS — fond sombre ── */
.apropos {
  padding: var(--section-pad) var(--gutter);
  background: var(--dark);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(48px, 8vw, 120px);
  align-items: center;
  width: 100%;
}
.ap-img-wrap { position: relative; }
.ap-img-main { width: 100%; aspect-ratio: 3/4; object-fit: cover; }
.ap-img-accent {
  position: absolute;
  bottom: -32px; right: -32px;
  width: 48%; aspect-ratio: 1;
  object-fit: cover;
  border: 6px solid var(--dark);
}
.ap-img-label {
  position: absolute;
  top: 28px; left: -24px;
  background: var(--light);
  padding: 12px 18px;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 14px;
  color: var(--primary);
  letter-spacing: 0.1em;
}
.ap-heading {
  font-family: var(--font-serif);
  font-size: clamp(32px, 4.5vw, 56px);
  font-weight: 300;
  line-height: 1.1;
  color: var(--white);
  margin: 20px 0 28px;
}
.ap-heading em { font-style: italic; color: var(--accent); }
.ap-text {
  font-family: var(--font-serif);
  font-size: clamp(1rem, 1.5vw, 1.2rem); /* 16-19px lisible */
  font-weight: 400;
  line-height: 1.75;
  color: var(--text-on-dark-muted);
}
.ap-text + .ap-text { margin-top: 16px; }
.ap-stats {
  margin-top: 44px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border-mid);
}
/* Quand le bloc stats est dans la section Savoir-Faire (entre sf-intro et techniques),
   on lui donne de l'espace en bas pour respirer avant la grille des techniques. */
.savoir-faire .ap-stats {
  margin-top: clamp(40px, 6vw, 72px);
  margin-bottom: clamp(48px, 7vw, 80px);
}
.ap-stat {
  background: var(--light);
  padding: 24px 20px;
  text-align: center;
}
.ap-stat-num {
  font-family: var(--font-serif);
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 300;
  color: var(--dark);
  line-height: 1;
}
.ap-stat-num sup { font-size: 0.5em; vertical-align: super; color: var(--accent); }
.ap-stat-label {
  font-size: 12px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-primary);
  margin-top: 8px;
}
.ap-cta { margin-top: 40px; }

/* ── ZONES — fond clair ── */
.zones {
  padding: clamp(60px, 8vw, 100px) var(--gutter);
  background: var(--light);
  text-align: center;
}
.zones-inner { max-width: 720px; margin: 0 auto; }
.zones-heading {
  font-family: var(--font-serif);
  font-size: clamp(28px, 3.8vw, 46px);
  font-weight: 300;
  color: var(--dark);
  margin: 18px 0 20px;
  line-height: 1.15;
}
.zones-heading em { font-style: italic; color: var(--primary); }
.zones-text {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(0.95rem, 1.4vw, 1.15rem); /* 15-18px lisible */
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 36px;
}
.zones-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}
.zone-tag {
  font-size: 12px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--text-primary);
  border: 1px solid var(--border-mid);
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  transition: border-color 0.3s ease, color 0.3s ease;
  text-decoration: none;
}
a.zone-tag { cursor: pointer; }
.zone-tag:hover { border-color: var(--accent); color: var(--accent); }

/* FAQ (pages villes) */
.faq {
  padding: clamp(60px, 8vw, 100px) var(--gutter);
  background: var(--white);
}
.faq-inner { max-width: 820px; margin: 0 auto; }
.faq-header { text-align: center; margin-bottom: clamp(32px, 4vw, 56px); }
.faq-heading {
  font-family: var(--font-serif);
  font-size: clamp(28px, 3.8vw, 46px);
  font-weight: 300;
  color: var(--dark);
  margin: 18px 0 0;
  line-height: 1.15;
}
.faq-heading em { font-style: italic; color: var(--primary); }
.faq-item { border-bottom: 1px solid var(--border-mid); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  position: relative;
  padding: 24px 48px 24px 0;
  font-family: var(--font-serif);
  font-size: clamp(18px, 2.2vw, 22px);
  font-weight: 400;
  color: var(--text-primary);
  transition: color 0.3s ease;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 26px;
  line-height: 1;
  color: var(--accent);
  transition: transform 0.3s ease;
}
.faq-item[open] summary::after { content: '\2212'; }
.faq-item summary:hover { color: var(--accent); }
.faq-answer {
  padding: 0 48px 26px 0;
  color: rgba(1, 21, 38, 0.72);
  font-family: var(--font-body);
  font-size: clamp(15px, 1.8vw, 17px);
  line-height: 1.7;
}
.faq-answer a { color: var(--accent); }

/* ── CONTACT CTA — fond sombre ── */
.contact-cta {
  padding: var(--section-pad) var(--gutter);
  background: var(--dark);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 8vw, 100px);
  align-items: center;
  width: 100%;
}
.cta-heading {
  font-family: var(--font-serif);
  font-size: clamp(34px, 5vw, 62px);
  font-weight: 300;
  line-height: 1.05;
  color: var(--white);
}
.cta-heading em { font-style: italic; color: var(--accent); }
.cta-heading span { display: block; }
.cta-text {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(0.95rem, 1.4vw, 1.15rem); /* 15-18px lisible */
  color: var(--text-on-dark-muted);
  line-height: 1.75;
  margin-bottom: 32px;
}
.cta-contacts { display: flex; flex-direction: column; gap: 0; }
.cta-contact-item {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(255, 245, 237, 0.12);
  transition: padding-left 0.3s ease;
}
.cta-contact-item:last-child { border-bottom: none; }
.cta-contact-item:hover { padding-left: 8px; }
.cta-contact-label {
  font-size: 9px;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: var(--text-on-dark-muted);
  min-width: 52px;
}
.cta-contact-val {
  font-family: var(--font-serif);
  font-size: clamp(15px, 1.5vw, 18px);
  font-weight: 300;
  color: var(--white);
  transition: color 0.3s ease;
}
.cta-contact-item:hover .cta-contact-val { color: var(--accent); }
.cta-btn { margin-top: 32px; }

/* ── RESPONSIVE ── */
@media (max-width: 1200px) {
  .prod-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1024px) {
  .sf-intro { grid-template-columns: 1fr; gap: 32px; }
  .techniques { grid-template-columns: 1fr 1fr; }
  .techniques .technique-card:last-child { grid-column: span 2; aspect-ratio: 16/9; }
}
@media (max-width: 768px) {
  .real-grid { grid-template-columns: 1fr; grid-template-rows: auto; aspect-ratio: auto; }
  .real-item { aspect-ratio: 4/3; }
  .real-item:first-child { grid-row: auto; }
  .prod-grid { grid-template-columns: 1fr 1fr; }
  .apropos { grid-template-columns: 1fr; }
  .ap-img-accent { display: none; }
  .contact-cta { grid-template-columns: 1fr; }
  .manifeste-band p { white-space: normal; }
  .manifeste-band .m-line { display: none; }
  .ap-stats { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .techniques { grid-template-columns: 1fr; }
  .techniques .technique-card:last-child { grid-column: auto; aspect-ratio: 3/4; }
  .prod-grid { grid-template-columns: 1fr; }
  .hero-cta { flex-direction: column; gap: 16px; }
  .ap-stats { grid-template-columns: 1fr; }
}
