/* ==========================================================================
   Wravor France — feuille de style principale
   Palette inspirée de l'identité Wravor (bleu industriel + accent ambre)
   ========================================================================== */

:root {
  /* Palette alignée sur l'identité ATREELOG (logo fourni) : sapin/teal + vert anis */
  --navy-900: #062f2d;
  --navy-800: #0b5755;
  --navy-700: #0f6c69;
  --navy-600: #14827e;
  --blue-500: #0f6c69;
  --amber-500: #e6e05b;
  --amber-600: #6e6a18;
  --grey-050: #f6f7f9;
  --grey-100: #eef0f3;
  --grey-200: #dde1e7;
  --grey-400: #98a1ad;
  --grey-600: #5b6472;
  --grey-800: #2b323c;
  --white: #ffffff;

  --font-head: 'Oswald', 'Arial Narrow', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --radius: 6px;
  --shadow-sm: 0 1px 3px rgba(10, 37, 64, 0.08);
  --shadow-md: 0 6px 24px rgba(10, 37, 64, 0.12);
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--grey-800);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--navy-900);
  line-height: 1.15;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2rem, 4vw, 3.1rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; color: var(--grey-600); }

a { color: var(--blue-500); text-decoration: none; }
a:hover { color: var(--amber-600); }

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

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 72px 0; }
.section--tight { padding: 48px 0; }
.section--grey { background: var(--grey-050); }
.section--navy { background: var(--navy-900); color: var(--white); }
.section--navy h1, .section--navy h2, .section--navy h3, .section--navy h4 { color: var(--white); }
.hero h1, .hero h2, .hero h3, .hero h4,
.page-hero h1, .page-hero h2, .page-hero h3, .page-hero h4 { color: var(--white); }
.section--navy p { color: var(--grey-200); }

.eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  color: var(--amber-600);
  margin-bottom: 10px;
}

.section-head { max-width: 720px; margin: 0 0 40px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--radius);
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.85rem;
  font-weight: 600;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.18s ease;
}
.btn--amber { background: var(--amber-500); color: var(--navy-900); }
.btn--amber:hover { background: #d3cd45; color: var(--navy-900); }
.btn--outline { border-color: var(--white); color: var(--white); background: transparent; }
.btn--outline:hover { background: var(--white); color: var(--navy-900); }
.btn--navy { background: var(--navy-800); color: var(--white); }
.btn--navy:hover { background: var(--navy-600); color: var(--white); }
.btn--ghost { border-color: var(--navy-800); color: var(--navy-900); background: transparent; }
.btn--ghost:hover { background: var(--navy-900); color: var(--white); }

/* ---------- Placeholder visuels (en attente de vraies photos) ---------- */
.ph {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--navy-700), var(--navy-900));
  color: rgba(255,255,255,0.75);
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-align: center;
  overflow: hidden;
}
.ph::before {
  content: "";
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(45deg, rgba(255,255,255,0.05) 0 2px, transparent 2px 14px);
}
.ph span { position: relative; padding: 0 16px; font-size: 0.85rem; }
.ph--amber { background: linear-gradient(135deg, var(--amber-600), var(--amber-500)); }
.ph--light { background: var(--grey-100); color: var(--grey-400); }
.ph--light::before { display: none; }

/* ---------- Photos réelles (provisoirement issues de wravor.si) ---------- */
.media-wrap { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--grey-100); }
.media-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-credit {
  position: absolute; bottom: 8px; left: 8px;
  background: rgba(6, 47, 45, 0.78); color: #fff;
  font-family: var(--font-head); text-transform: uppercase; letter-spacing: 0.04em;
  font-size: 0.62rem; padding: 4px 9px; border-radius: 3px;
}
.photo-frame { border-radius: var(--radius); overflow: hidden; background: var(--grey-100); }

/* ---------- Carrousel (bannière d'accueil) ---------- */
.carousel { padding: 0; }
.carousel__track { position: relative; width: 100%; height: 100%; }
.carousel__slide { position: absolute; inset: 0; opacity: 0; transition: opacity 0.7s ease; }
.carousel__slide.is-active { opacity: 1; z-index: 1; }
.carousel__slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.carousel__dots {
  position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 7px; z-index: 3;
}
.carousel__dot {
  width: 8px; height: 8px; border-radius: 50%; padding: 0; border: none;
  background: rgba(255, 255, 255, 0.5); cursor: pointer; transition: background 0.15s ease, transform 0.15s ease;
}
.carousel__dot.is-active { background: var(--amber-500); transform: scale(1.15); }
.carousel__dot:hover { background: rgba(255, 255, 255, 0.85); }
.carousel__arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 34px; height: 34px; border-radius: 50%; border: none;
  background: rgba(6, 47, 45, 0.55); color: #fff; font-size: 1.4rem; line-height: 1;
  display: flex; align-items: center; justify-content: center; cursor: pointer; z-index: 3;
  transition: background 0.15s ease;
}
.carousel__arrow:hover { background: rgba(6, 47, 45, 0.85); }
.carousel__arrow--prev { left: 10px; }
.carousel__arrow--next { right: 10px; }
.carousel .photo-credit { z-index: 2; }

/* ---------- Barre supérieure (réseaux sociaux) ---------- */
.topbar { background: var(--navy-900); }
.topbar__inner { display: flex; justify-content: flex-end; padding-top: 8px; padding-bottom: 8px; }
.topbar .social { margin-top: 0; }
.topbar .social a { width: 26px; height: 26px; font-size: 0.7rem; color: var(--white); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--grey-200);
}
.site-header__bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 24px;
  max-width: var(--container);
  margin: 0 auto;
  gap: 24px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand__logo { height: 40px; width: auto; display: block; }
.brand__mark {
  width: 42px; height: 42px; border-radius: 4px;
  background: var(--navy-900);
  display: flex; align-items: center; justify-content: center;
  color: var(--white); font-family: var(--font-head); font-weight: 700; font-size: 1.1rem;
}
.brand__text { font-family: var(--font-head); text-transform: uppercase; line-height: 1.1; }
.brand__text strong { display: block; font-size: 1.05rem; color: var(--navy-900); letter-spacing: 0.03em; }
.brand__text span { display: block; font-size: 0.68rem; color: var(--grey-600); letter-spacing: 0.1em; }

.nav { display: flex; gap: 4px; align-items: center; }
.nav a {
  color: var(--navy-900);
  font-family: var(--font-head);
  text-transform: uppercase;
  font-size: 0.82rem;
  letter-spacing: 0.03em;
  padding: 10px 12px;
  border-radius: 4px;
}
.nav a:hover, .nav a[aria-current="page"] { background: var(--grey-100); color: var(--amber-600); }
.nav-cta { margin-left: 8px; }

.nav-toggle { display: none; }

@media (max-width: 920px) {
  .nav { position: absolute; top: 100%; left: 0; right: 0; background: var(--white); flex-direction: column; align-items: stretch; padding: 8px; border-bottom: 1px solid var(--grey-200); display: none; }
  .nav.is-open { display: flex; }
  .nav a { padding: 12px 14px; }
  .nav-cta { margin: 8px 14px 4px; }
  .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 42px; height: 42px; border: 1px solid var(--grey-200); border-radius: 4px;
    background: var(--white); cursor: pointer; font-size: 1.1rem;
  }
}

/* ---------- Hero (carrousel plein écran avec texte en surimpression) ---------- */
.hero {
  position: relative;
  min-height: 560px;
  display: flex; align-items: center;
  color: var(--white);
  background: linear-gradient(120deg, var(--navy-900) 0%, var(--navy-700) 55%, var(--navy-600) 100%);
  overflow: hidden;
}
.hero__carousel { position: absolute; inset: 0; z-index: 0; }
.hero__carousel .carousel__slide { position: absolute; inset: 0; opacity: 0; transition: opacity 0.9s ease; }
.hero__carousel .carousel__slide.is-active { opacity: 1; z-index: 1; }
.hero__carousel .carousel__slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero__overlay {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(100deg, rgba(6,47,45,0.95) 0%, rgba(6,47,45,0.86) 30%, rgba(6,47,45,0.5) 62%, rgba(6,47,45,0.22) 100%);
}
.hero__overlay::before {
  content: "";
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(115deg, rgba(255,255,255,0.045) 0 3px, transparent 3px 30px);
}
.hero__inner { position: relative; z-index: 2; max-width: var(--container); margin: 0 auto; padding: 90px 24px; width: 100%; }
.hero__content { max-width: 560px; }
.hero__content .eyebrow { color: var(--amber-500); }
.hero p.lead { color: var(--grey-200); font-size: 1.08rem; max-width: 46ch; }
.hero__actions { display: flex; gap: 14px; margin-top: 28px; flex-wrap: wrap; }
.hero .carousel__dots { bottom: 20px; }
.hero .photo-credit { z-index: 2; }
.hero .breadcrumb { padding: 0 0 14px; }
.hero .breadcrumb, .hero .breadcrumb a { color: var(--grey-200); }
.hero .breadcrumb a:hover { color: var(--amber-500); }

@media (max-width: 860px) {
  .hero { min-height: 480px; }
  .hero__inner { padding: 64px 20px 76px; }
  .hero__content { max-width: 100%; }
  .hero__overlay { background: linear-gradient(180deg, rgba(6,47,45,0.65) 0%, rgba(6,47,45,0.92) 78%); }
  .hero .carousel__arrow { display: none; }
}

/* ---------- Grilles ---------- */
.grid { display: grid; gap: 28px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 920px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; } }

/* ---------- Cartes catégories produits ---------- */
.cat-card {
  display: block;
  border: 1px solid var(--grey-200);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.cat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.cat-card__media { height: 168px; }
.cat-card__body { padding: 20px; }
.cat-card__body h3 { margin-bottom: 6px; color: var(--navy-900); }
.cat-card__body p { font-size: 0.92rem; margin-bottom: 10px; }
.cat-card__link { font-family: var(--font-head); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--amber-600); }

/* ---------- Points forts / chiffres clés ---------- */
.stat { text-align: center; padding: 20px; }
.stat strong { display: block; font-family: var(--font-head); font-size: 2.3rem; color: var(--amber-500); }
.stat span { font-size: 0.85rem; color: var(--grey-600); text-transform: uppercase; letter-spacing: 0.04em; }
.section--navy .stat span { color: var(--grey-200); }

.feature {
  display: flex; gap: 16px; align-items: flex-start;
}
.feature__icon {
  flex: none; width: 44px; height: 44px; border-radius: 50%;
  background: var(--navy-900); color: var(--amber-500);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-weight: 700;
}
.feature h4 { margin-bottom: 4px; }
.feature p { font-size: 0.92rem; margin: 0; }

/* ---------- Modèles / gammes (pages catégorie) ---------- */
.model-row {
  display: grid; grid-template-columns: 260px 1fr; gap: 28px;
  padding: 32px 0; border-bottom: 1px solid var(--grey-200);
  align-items: start;
}
.model-row:last-child { border-bottom: none; }
.model-row__media { height: 170px; border-radius: var(--radius); }
.model-row h3 { margin-bottom: 8px; }
.model-row ul { margin: 12px 0 0; padding-left: 18px; color: var(--grey-600); font-size: 0.92rem; }
.model-row li { margin-bottom: 4px; }
@media (max-width: 760px) { .model-row { grid-template-columns: 1fr; } }

.badge-row { margin-top: 16px; display: flex; align-items: center; flex-wrap: wrap; gap: 4px; }
.badge-row__label { font-family: var(--font-head); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--grey-600); margin-right: 4px; }
a.badge.badge--link {
  cursor: pointer; transition: background 0.15s ease, color 0.15s ease;
}
a.badge.badge--link:hover { background: var(--amber-500); color: var(--navy-900); }

.badge {
  display: inline-block; padding: 4px 10px; border-radius: 999px;
  background: var(--grey-100); color: var(--navy-800);
  font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.05em; font-family: var(--font-head);
  margin-right: 6px; margin-bottom: 6px;
}

/* ---------- Fil d'ariane ---------- */
.breadcrumb { font-size: 0.82rem; color: var(--grey-600); padding: 18px 0; }
.breadcrumb a { color: var(--grey-600); }
.breadcrumb a:hover { color: var(--amber-600); }

/* ---------- Page hero secondaire (pages intérieures) ---------- */
.page-hero {
  background: var(--navy-900);
  color: var(--white);
  padding: 56px 0 40px;
}
.page-hero .eyebrow { color: var(--amber-500); }
.page-hero p { color: var(--grey-200); max-width: 60ch; }

/* ---------- Page hero avec vidéo en arrière-plan ---------- */
.page-hero--video {
  position: relative; overflow: hidden;
  min-height: 560px; display: flex; align-items: center;
  padding: 90px 0 70px;
}
.page-hero--video .page-hero__media { position: absolute; inset: 0; z-index: 0; }
.page-hero--video .page-hero__media video { width: 100%; height: 100%; object-fit: cover; display: block; }
.page-hero--video .page-hero__overlay {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(100deg, rgba(6,47,45,0.94) 0%, rgba(6,47,45,0.84) 32%, rgba(6,47,45,0.48) 65%, rgba(6,47,45,0.24) 100%);
}
.page-hero--video .container { position: relative; z-index: 2; width: 100%; }
.page-hero--video .breadcrumb, .page-hero--video .breadcrumb a { color: var(--grey-200); }

@media (max-width: 860px) {
  .page-hero--video { min-height: 480px; padding: 64px 0 50px; }
  .page-hero--video .page-hero__overlay { background: linear-gradient(180deg, rgba(6,47,45,0.7) 0%, rgba(6,47,45,0.94) 78%); }
}

/* ---------- Tableaux (salons) ---------- */
table.fairs { width: 100%; border-collapse: collapse; }
table.fairs th, table.fairs td { text-align: left; padding: 14px 12px; border-bottom: 1px solid var(--grey-200); font-size: 0.92rem; }
table.fairs th { font-family: var(--font-head); text-transform: uppercase; letter-spacing: 0.04em; font-size: 0.75rem; color: var(--grey-600); }
table.fairs tr:hover td { background: var(--grey-050); }

/* ---------- Fiche technique (pages machine) ---------- */
table.specs { width: 100%; border-collapse: collapse; background: var(--white); border-radius: var(--radius); overflow: hidden; }
table.specs td { padding: 13px 16px; font-size: 0.92rem; border-bottom: 1px solid var(--grey-200); }
table.specs td:first-child { color: var(--grey-600); font-family: var(--font-head); text-transform: uppercase; font-size: 0.76rem; letter-spacing: 0.03em; width: 55%; }
table.specs td:last-child { color: var(--navy-900); font-weight: 600; }
table.specs tr:nth-child(even) td { background: var(--grey-050); }
table.specs tr:last-child td { border-bottom: none; }

/* ---------- Encarts (pages machine : photos / vidéos) ---------- */
.insert { background: var(--grey-050); border: 1px solid var(--grey-200); border-radius: var(--radius); padding: 28px; }
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.gallery-grid__item { height: 150px; }
@media (max-width: 760px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }

.video-embed { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; border-radius: var(--radius); background: var(--grey-100); box-shadow: var(--shadow-sm); }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- Actualités ---------- */
.news-card { border: 1px solid var(--grey-200); border-radius: var(--radius); overflow: hidden; background: var(--white); }
.news-card__media { height: 150px; }
.news-card__body { padding: 18px 20px; }
.news-card time { font-size: 0.78rem; color: var(--amber-600); font-family: var(--font-head); text-transform: uppercase; letter-spacing: 0.05em; }
.news-card h3 { font-size: 1.05rem; margin: 8px 0; }

/* ---------- Formulaire de contact ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }
label { display: block; font-size: 0.82rem; font-family: var(--font-head); text-transform: uppercase; letter-spacing: 0.03em; color: var(--navy-800); margin-bottom: 6px; }
input, select, textarea {
  width: 100%; padding: 11px 13px; border: 1px solid var(--grey-200); border-radius: var(--radius);
  font-family: var(--font-body); font-size: 0.95rem; color: var(--grey-800); background: var(--white);
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--blue-500); outline-offset: 1px; }
textarea { resize: vertical; min-height: 130px; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }

.contact-card { background: var(--grey-050); border-radius: var(--radius); padding: 28px; }
.contact-card__row { display: flex; gap: 12px; margin-bottom: 16px; align-items: flex-start; }
.contact-card__row strong { display: block; font-family: var(--font-head); font-size: 0.82rem; text-transform: uppercase; color: var(--navy-800); letter-spacing: 0.03em; }

.map-ph { height: 220px; border-radius: var(--radius); margin-top: 18px; }

/* ---------- Bandeau CTA ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--navy-900), var(--navy-700));
  color: var(--white); border-radius: var(--radius);
  padding: 44px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.cta-band h3 { color: var(--white); margin-bottom: 6px; }
.cta-band p { color: rgba(255,255,255,0.9); margin: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: var(--grey-200); padding: 56px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 40px; }
.site-footer h4 { color: var(--white); font-size: 0.85rem; letter-spacing: 0.06em; margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: var(--grey-200); font-size: 0.92rem; }
.site-footer a:hover { color: var(--amber-500); }
.site-footer p { color: var(--grey-400); font-size: 0.9rem; }
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.social { display: flex; gap: 10px; margin-top: 14px; }
.social a {
  width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.25);
  display: flex; align-items: center; justify-content: center; font-size: 0.85rem;
}
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); padding-top: 20px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 0.82rem; color: var(--grey-400); }
.footer-bottom a { color: var(--grey-400); }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Notice de contenu provisoire ---------- */
.todo-note {
  background: #fff4e5; border: 1px solid #f3d19c; color: #7a4a06;
  border-radius: var(--radius); padding: 14px 18px; font-size: 0.86rem; margin: 0 0 24px;
}
.todo-note strong { color: #7a4a06; }
.table-footnote { font-size: 0.82rem; color: var(--grey-600); margin-top: 12px; }
