/* ═══════════════════════════════════════════════════════════
   ORÉVALIE · sections d'accueil et blocs éditoriaux
   Toutes les valeurs numériques viennent des réglages du thème
   (variables définies dans head-config et sur chaque section).
   ═══════════════════════════════════════════════════════════ */

/* ── Éléments communs ── */
.eyebrow{
  display:block;
  text-transform:uppercase;
  letter-spacing:var(--eyebrow-tracking);
  font-size:var(--eyebrow-size);
  font-weight:550;
  color:var(--muted);
}
.button{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:var(--btn-gap);
  min-height:var(--btn-min-h);
  padding:var(--btn-pad-y) var(--btn-pad-x);
  background:var(--btn-fill);
  color:var(--btn-fg);
  border:1px solid var(--btn-bd);
  border-radius:var(--button-border-radius);
  font-size:var(--btn-size);
  font-weight:500;
  letter-spacing:var(--btn-tracking);
  text-transform:var(--btn-transform);
  transition:background-color .22s ease, color .22s ease, border-color .22s ease, transform .22s ease, box-shadow .22s ease;
}
.button:hover{ background:var(--btn-fill-h); border-color:var(--btn-bd-h); color:var(--btn-fg-h); transform:translateY(var(--btn-lift)); box-shadow:var(--btn-shadow-h); }
.button svg{ width:18px; height:18px; stroke:currentColor; fill:none; stroke-width:var(--icon-stroke); }
.text-link{
  display:inline-flex;
  gap:25px;
  align-items:center;
  font-size:12px;
  border-bottom:1px solid var(--ink);
  padding:5px 0;
  color:var(--ink);
}
.text-link:hover{ color:var(--hover); }
.text-link svg{ width:18px; height:18px; stroke:currentColor; fill:none; stroke-width:var(--icon-stroke); }
.fine-print{ font-size:10px; color:var(--muted); line-height:1.7; }
.orv-icon{ width:21px; height:21px; stroke:currentColor; fill:none; stroke-width:var(--icon-stroke); stroke-linecap:round; stroke-linejoin:round; flex-shrink:0; vertical-align:middle; }

/* ── Titres ── */
.hero h1, .section-head h2, .editorial h2, .statement h2, .wide-story h2, .newsletter h2{
  font-family:var(--font-family);
  font-weight:var(--heading-weight);
  line-height:var(--heading-lh);
  letter-spacing:var(--heading-tracking);
  margin:0;
}
.hero h1 em, .section-head h2 em, .editorial h2 em, .statement h2 em, .wide-story h2 em, .newsletter h2 em{
  font-family:var(--serif);
  font-style:normal;
  font-weight:400;
  letter-spacing:var(--heading-tracking);
  color:var(--em);
}

/* ── Héros ── */
.orv-hero{
  display:grid;
  grid-template-columns:var(--hero-split) 1fr;
  min-height:var(--hero-min-h);
}
.orv-hero .hero-copy{
  padding:var(--hero-pad-top) 10% var(--hero-pad-bottom) calc(var(--pad) * 1.2);
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:flex-start;
  background:linear-gradient(130deg, var(--hero-copy-bg-from) 58%, var(--hero-copy-bg-to) 100%);
}
.orv-hero .hero-copy > .eyebrow{ color:var(--hero-accent); }
.orv-hero .hero-copy > .eyebrow::before{
  content:"";
  display:inline-block;
  width:6px;
  height:6px;
  background:var(--brand-gold);
  margin-inline-end:9px;
  vertical-align:1px;
}
.orv-hero h1{
  font-size:var(--hero-title-fluid);
  margin:26px 0;
}
.orv-hero h1 em{ color:var(--hero-accent); }
.orv-hero .hero-copy > p{
  font-size:var(--hero-text-size);
  max-width:var(--hero-text-width);
  line-height:1.8;
  color:var(--muted);
}
.orv-hero .hero-copy .button{ margin-top:30px; background:var(--hero-accent); border-color:var(--hero-accent); color:rgb(var(--color-button-text)); }
.orv-hero .hero-copy .button:hover{ background:var(--hero-accent-hover); border-color:var(--hero-accent-hover); color:rgb(var(--color-button-text)); }
.orv-hero .small-ar{ font-size:15px; margin-top:35px; letter-spacing:.04em; color:#6b6b6b; }
.orv-hero .hero-photo{
  position:relative;
  overflow:hidden;
  min-height:var(--hero-min-h);
  background:#e5e5e5;
  border-bottom:var(--hero-border-w) solid var(--hero-border);
}
.orv-hero .hero-photo > img{
  position:absolute;
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:var(--hero-photo-x) var(--hero-photo-y);
}
.orv-hero .photo-meta{
  position:absolute;
  inset:25px 28px auto;
  display:flex;
  justify-content:space-between;
  font-size:9px;
  letter-spacing:.16em;
  color:var(--ink);
}
.orv-hero .photo-card{
  position:absolute;
  bottom:25px;
  left:25px;
  right:25px;
  background:#fffffff2;
  -webkit-backdrop-filter:blur(12px);
          backdrop-filter:blur(12px);
  padding:19px 24px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:14px;
  color:var(--ink);
}
.orv-hero .photo-card strong{ font-weight:450; display:block; font-size:17px; line-height:1.4; }
.orv-hero .photo-card small{ font-size:11px; color:var(--muted); display:block; }
.orv-hero .photo-card .circle{
  border:1px solid var(--line);
  border-radius:50%;
  width:42px;
  height:42px;
  display:grid;
  place-items:center;
  flex-shrink:0;
}
.orv-hero .photo-card .circle svg{ width:18px; height:18px; }
@media (min-width:1650px){
  .orv-hero{ min-height:calc(var(--hero-min-h) + 100px); }
  .orv-hero .hero-photo{ min-height:calc(var(--hero-min-h) + 100px); }
  .orv-hero .hero-copy{ padding-left:max(var(--pad), calc((100vw - 1460px) / 2)); }
}
@media (max-width:1100px){
  .orv-hero{ min-height:calc(var(--hero-min-h) - 80px); }
  .orv-hero .hero-photo{ min-height:calc(var(--hero-min-h) - 80px); }
  .orv-hero .hero-copy{ padding-left:var(--pad); }
  .orv-hero h1{ font-size:64px; }
}
@media (max-width:760px){
  .orv-hero{ grid-template-columns:1fr; min-height:0; }
  .orv-hero .hero-copy{
    padding:var(--hero-pad-top-mobile) 27px var(--hero-pad-bottom-mobile);
    position:relative;
    background:linear-gradient(130deg, var(--hero-copy-bg-from) 58%, var(--hero-copy-bg-to));
  }
  .orv-hero h1{ font-size:var(--hero-title-mobile); line-height:var(--hero-title-lh-mobile); margin:20px 0 21px; }
  .orv-hero .hero-copy > p{ font-size:var(--hero-text-size-mobile); max-width:305px; }
  .orv-hero .hero-copy .button{ margin-top:24px; min-height:var(--btn-min-h-mobile); }
  .orv-hero .small-ar{ display:none; }
  .orv-hero .hero-photo{ min-height:var(--hero-min-h-mobile); }
  .orv-hero .hero-photo > img{ object-position:var(--hero-photo-x) var(--hero-photo-y-mobile); }
  .orv-hero .photo-meta{ inset:18px 20px auto; font-size:8px; }
  .orv-hero .photo-card{ inset:auto 18px 18px; padding:15px 17px; }
  .orv-hero .photo-card strong{ font-size:15px; }
  .orv-hero .photo-card small{ font-size:10px; }
  .orv-hero .photo-card .circle{ width:35px; height:35px; }
}

/* ── Bande de services ── */
.orv-strip{
  display:grid;
  grid-template-columns:repeat(var(--strip-cols), 1fr);
  border-block:1px solid var(--strip-line);
  padding:var(--strip-pad) var(--pad);
  gap:20px;
  background:var(--strip-bg);
  font-size:var(--strip-size);
  color:var(--ink);
}
.orv-strip .strip-item{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:14px;
  line-height:1.5;
}
.orv-strip .strip-item + .strip-item{ border-left:1px solid var(--strip-line); }
.orv-strip .orv-icon{ width:var(--strip-icon-size); height:var(--strip-icon-size); color:var(--strip-icon); }
@media (max-width:760px){
  .orv-strip{ grid-template-columns:1fr 1fr; padding:var(--strip-pad-m) 20px; gap:16px; font-size:var(--strip-size-m); }
  .orv-strip .strip-item{ gap:8px; }
  .orv-strip .strip-item.hide-mobile{ display:none; }
  .orv-strip .orv-icon{ width:var(--strip-icon-size-m); height:var(--strip-icon-size-m); }
}

/* ── Section générique ── */
.section{
  padding:var(--sec-top, var(--section-pad-y)) var(--pad) var(--sec-bottom, var(--section-pad-y));
  max-width:var(--container-max);
  margin:auto;
  background:var(--sec-bg, transparent);
}
.section-head{
  display:flex;
  justify-content:space-between;
  align-items:flex-end;
  gap:28px;
  margin-bottom:40px;
}
.section-head h2{
  margin-top:15px;
  font-size:clamp(var(--section-title-min), var(--section-title-vw), var(--section-title-max));
}
.section-head > p{ max-width:320px; font-size:14px; }
@media (max-width:760px){
  .section{ padding:var(--sec-top-m, var(--section-pad-y-mobile)) var(--pad-mobile) var(--sec-bottom-m, var(--section-pad-y-mobile)); }
  .section-head{ gap:20px; align-items:flex-start; margin-bottom:28px; }
  .section-head h2{ font-size:var(--section-title-mobile); }
  .section-head > .text-link{ font-size:10px; gap:8px; white-space:nowrap; margin-top:26px; }
  .section-head > p{ display:none; }
  .eyebrow{ font-size:var(--eyebrow-size-mobile); letter-spacing:.15em; }
}
/* Les sections qui définissent leur fond occupent toute la largeur */
.section[style*="--sec-bg"]{ max-width:none; }
.section[style*="--sec-bg"] > *{ max-width:calc(var(--container-max) - var(--pad) * 2); margin-inline:auto; }
.section[style*="--sec-bg"] .section-head{ max-width:calc(var(--container-max) - var(--pad) * 2); }
.section.soft-section{ background:var(--sand); }

/* ── Grille produits ── */
.products-grid{
  display:grid;
  grid-template-columns:repeat(var(--cols, var(--grid-cols)), minmax(0, 1fr));
  gap:var(--grid-gap);
}
@media (max-width:1100px){
  .products-grid{ gap:var(--grid-gap-tablet); grid-template-columns:repeat(min(var(--cols, var(--grid-cols)), var(--grid-cols-tablet)), minmax(0, 1fr)); }
}
@media (max-width:760px){
  .products-grid{
    grid-template-columns:repeat(var(--cols-m, var(--grid-cols-mobile)), minmax(0, 1fr));
    gap:var(--grid-gap-mobile-y) var(--grid-gap-mobile-x);
  }
}
.orv-products > .fine-print{ margin-top:24px; }

/* ── Éditorial ── */
.orv-editorial{
  display:grid;
  grid-template-columns:1fr 1fr;
  margin:var(--sec-top, 0) var(--pad) var(--sec-bottom, 0);
  background:var(--ed-bg);
  border-top:var(--ed-border-w) solid var(--ed-border);
  min-height:var(--ed-min-h);
  max-width:calc(var(--container-max) - var(--pad) * 2);
}
@media (min-width:1700px){ .orv-editorial{ margin-inline:auto; } }
.orv-editorial.reverse .editorial-visual{ order:2; }
.orv-editorial .editorial-visual{ position:relative; min-height:var(--ed-min-h); overflow:hidden; }
.orv-editorial .editorial-visual img{ width:100%; height:100%; object-fit:cover; position:absolute; }
.orv-editorial .editorial-content{
  padding:var(--ed-pad-y) var(--ed-pad-x);
  display:flex;
  justify-content:center;
  flex-direction:column;
  align-items:flex-start;
}
.orv-editorial .editorial-content h2{
  margin:23px 0;
  font-size:clamp(var(--section-title-min), var(--section-title-vw), var(--section-title-max));
}
.orv-editorial .editorial-content > p{ font-size:14px; max-width:380px; }
.orv-editorial .eyebrow, .orv-editorial em, .orv-editorial .step span{ color:var(--ed-accent); }
.orv-editorial .editorial-content .button{ margin-top:30px; background:var(--ed-accent); border-color:var(--ed-accent); color:rgb(var(--color-button-text)); }
.orv-editorial .editorial-content .button:hover{ background:var(--ed-accent-hover); border-color:var(--ed-accent-hover); color:rgb(var(--color-button-text)); }
.orv-editorial .steps{ width:100%; margin-top:30px; }
.orv-editorial .step{
  border-top:1px solid var(--ed-line);
  display:flex;
  align-items:center;
  gap:20px;
  padding:14px 0;
  font-size:12px;
}
.orv-editorial .step span{ font:italic 17px var(--serif); }
@media (max-width:1100px){
  .orv-editorial .editorial-content{ padding:45px 10%; }
}
@media (max-width:760px){
  .orv-editorial{
    grid-template-columns:1fr;
    margin:var(--sec-top-m, 0) var(--ed-margin-m) var(--sec-bottom-m, 0);
    min-height:0;
  }
  .orv-editorial.reverse .editorial-visual{ order:0; }
  .orv-editorial .editorial-visual{ min-height:var(--ed-visual-h-m); }
  .orv-editorial .editorial-content{ padding:var(--ed-pad-y-m) 26px; }
  .orv-editorial .editorial-content h2{ font-size:var(--section-title-mobile); }
  .orv-editorial .editorial-content > p{ font-size:13px; }
  .orv-editorial .editorial-content .button{ margin-top:23px; }
}

/* ── Citation ── */
.orv-statement{
  text-align:center;
  max-width:var(--st-width);
  margin:auto;
  padding:var(--sec-top) 30px var(--sec-bottom);
  background:var(--sec-bg);
}
.orv-statement h2{
  font:400 clamp(32px, 3.8vw, var(--st-size))/1.25 var(--serif);
  letter-spacing:-.02em;
  margin:24px 0;
}
.orv-statement h2 em{ font-style:italic; }
.orv-statement p{ font-size:14px; max-width:500px; margin:auto; }
@media (max-width:760px){
  .orv-statement{ padding:var(--sec-top-m) 25px var(--sec-bottom-m); }
  .orv-statement h2{ font-size:var(--st-size-m); }
  .orv-statement p{ font-size:var(--st-text-m); }
}

/* ── Grande image ── */
.orv-wide-story{
  position:relative;
  margin:var(--sec-top, 0) var(--pad) var(--sec-bottom, 0);
  min-height:var(--ws-min-h);
  overflow:hidden;
  background:var(--ws-bg);
  max-width:calc(var(--container-max) - var(--pad) * 2);
}
@media (min-width:1700px){ .orv-wide-story{ margin-inline:auto; } }
.orv-wide-story img{
  position:absolute;
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:var(--ws-x) 50%;
}
.orv-wide-story::after{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(90deg, var(--ws-bg) 0%, color-mix(in srgb, var(--ws-bg) 93%, transparent) 28%, color-mix(in srgb, var(--ws-bg) 0%, transparent) 65%);
}
.orv-wide-story > div{ position:relative; z-index:1; padding:75px 6%; max-width:510px; }
.orv-wide-story h2{ margin:24px 0; font-size:clamp(var(--section-title-min), var(--section-title-vw), var(--section-title-max)); }
.orv-wide-story p{ font-size:14px; max-width:300px; }
.orv-wide-story .text-link{ margin-top:30px; }
@media (max-width:760px){
  .orv-wide-story{ margin:var(--sec-top-m, 0) var(--ws-margin-m) var(--sec-bottom-m, 0); min-height:var(--ws-min-h-m); }
  .orv-wide-story img{ object-position:var(--ws-x-m) top; height:var(--ws-img-h-m); }
  .orv-wide-story::after{ background:linear-gradient(0deg, var(--ws-bg) 0%, var(--ws-bg) 39%, color-mix(in srgb, var(--ws-bg) 0%, transparent) 70%); }
  .orv-wide-story > div{ padding:var(--ws-text-top-m) 27px 35px; max-width:100%; }
  .orv-wide-story h2{ font-size:var(--section-title-mobile); margin:15px 0; }
  .orv-wide-story p{ font-size:12px; max-width:280px; }
  .orv-wide-story .text-link{ margin-top:18px; }
}

/* ── Journal ── */
.journal-grid{ display:grid; grid-template-columns:repeat(var(--cols, 3), 1fr); gap:28px; }
.journal-card img{ width:100%; aspect-ratio:var(--ratio, 4/3); object-fit:cover; }
.journal-card .eyebrow{ margin:22px 0 10px; font-size:9px; }
.journal-card h3{ font-size:24px; font-family:var(--serif); font-weight:400; line-height:1.35; }
.journal-card .text-link{ margin-top:15px; }
@media (max-width:760px){
  .journal-grid{ grid-template-columns:1fr; gap:35px; }
  .journal-card img{ aspect-ratio:var(--ratio-m, 16/10); }
  .journal-card h3{ font-size:26px; }
}

/* ── Piliers ── */
.pillars{ display:grid; grid-template-columns:repeat(var(--cols, 3), 1fr); gap:50px; margin-top:45px; }
.pillar{ border-top:1px solid var(--line); padding-top:20px; }
.pillar > span{ font:italic 25px var(--serif); color:var(--hover); }
.pillar h3{ margin:18px 0 10px; font-size:var(--h3-size); font-weight:450; line-height:1.35; }
.pillar p{ font-size:13px; }
@media (max-width:760px){
  .pillars{ grid-template-columns:1fr; gap:30px; margin-top:30px; }
  .pillar{ padding-top:16px; }
  .pillar h3{ margin:10px 0; font-size:20px; }
}

/* ── Pied de page : bande newsletter ── */
.newsletter{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:55px;
  background:var(--newsletter-bg);
  border-top:1px solid #e5e5e5;
  padding:var(--newsletter-pad-y) var(--pad);
  align-items:center;
}
.newsletter h2{ font-size:var(--newsletter-title); margin:10px 0; }
.newsletter p{ font-size:12px; }
.newsletter-form{ display:flex; gap:0; border-bottom:1px solid #8a8a8a; }
.newsletter-form input{
  flex:1;
  width:100%;
  border:none !important;
  background:transparent !important;
  padding:14px 0 !important;
  min-width:0;
  font-size:13px;
  border-radius:0 !important;
}
.newsletter-form button{
  font-size:12px;
  padding:10px 15px;
  color:var(--brand-blue);
  background:transparent;
  border:0;
  display:inline-flex;
  align-items:center;
  gap:12px;
  white-space:nowrap;
}
.newsletter-form button{ text-transform:var(--btn-transform); letter-spacing:var(--btn-tracking); font-weight:500; }
.newsletter-form input::placeholder{ color:var(--input-ph); }
.newsletter-form button svg{ width:16px; height:16px; }
.newsletter .fine-print{ margin-top:10px; }
@media (max-width:760px){
  .newsletter{ grid-template-columns:1fr; padding:var(--newsletter-pad-y-mobile) 26px; gap:25px; }
  .newsletter h2{ font-size:var(--newsletter-title-mobile); }
  .newsletter-form button{ font-size:10px; padding-right:0; }
  .newsletter-form input{ font-size:var(--input-size-mobile); min-height:48px; }
}
