/* =========================================================================
   SRL Marchand-Robin — feuille de style
   Reconstruction à l'identique du site marchand-robin.be
   Design fixe 1050px centré, sections pleine largeur.
   ========================================================================= */

/* ------------------------------ 1. Reset ------------------------------ */
html { box-sizing: border-box; word-wrap: break-word; -webkit-text-size-adjust: 100%; }
*, *::before, *::after { box-sizing: inherit; word-wrap: inherit; }
body, ul, ol, li, h1, h2, h3, h4, h5, h6, form, input, p, td, textarea { margin: 0; padding: 0; }
h1, h2, h3, h4, h5, h6 { font-size: 100%; font-weight: normal; }
ol, ul { list-style: none; }
table { border-collapse: collapse; border-spacing: 0; }
img { border: 0; }
body {
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  background-color: #fff;
  overflow-x: hidden;
  font-family: Roboto, "Open Sans", "Helvetica Neue", Helvetica, sans-serif;
  font-size: 17px;
  line-height: 1.9;
  color: #3c3c3c;
}
a { color: inherit; }

/* --------------------------- 2. Design tokens --------------------------- */
:root {
  --accent: #d51900;        /* rouge foncé : header, contact, footer, bouton */
  --accent-hover: #ea8c80;  /* survol bouton accent */
  --accent-dark: #892b1e;   /* survol lien accent */
  --main: #ff7461;          /* corail : about, services, location */
  --ink: #3c3c3c;           /* texte principal */
  --white: #fff;
  --ink-70: rgba(60, 60, 60, .5);
  --container: 1050px;

  --font-heading: Inter, "Open Sans", "Helvetica Neue", Helvetica, sans-serif;
  --font-body: Roboto, "Open Sans", "Helvetica Neue", Helvetica, sans-serif;
}

/* --------------------------- 3. Typographie --------------------------- */
/* Corps de texte : 17 px partout, pour un rendu homogène sur tout le site. */
.textheading1 { font-family: var(--font-heading); font-size: 56px; font-weight: 400; line-height: 1.2; color: var(--ink); }
.textheading2 { font-family: var(--font-heading); font-size: 36px; font-weight: 400; line-height: 1.4; color: var(--ink); }
.textheading3 { font-family: var(--font-heading); font-size: 20px; font-weight: 700; line-height: 1.6; color: var(--ink); }
.textnormal {
  font-family: var(--font-body); font-size: 17px; font-weight: 400;
  line-height: 1.9; color: var(--ink); word-wrap: break-word;
}
/* Les paragraphes/listes imbriqués héritent du conteneur.
   On évite le raccourci « font: inherit » qui réinitialiserait aussi la taille. */
.textnormal p, .textnormal ul, .textnormal ol { font-family: inherit; font-weight: inherit; font-style: inherit; line-height: inherit; }
/* Listes à puces : la puce est hors du flux, le texte est décalé de 2,4em.
   Les lignes suivantes s'alignent ainsi sur la première (retrait négatif). */
.textnormal ul, .textnormal ol { list-style-position: outside; margin-left: 0; padding-left: 0; }
.textnormal ul { list-style-type: disc; }
.textnormal ol { list-style-type: decimal; }
.textnormal li { margin-left: 2.4em; }
.textnormal a, .link1 { text-decoration: none; color: inherit; }
.textsmall { font-family: var(--font-body); font-size: 17px; line-height: 1.9; color: var(--ink); }
.textsmall p { font-size: 17px; line-height: 1.9; }
.textsmall ul { list-style: disc; list-style-position: outside; margin-left: 0; padding-left: 0; }
.textsmall li { margin-left: 2.4em; font-size: 17px; line-height: 1.9; }
.text--center { text-align: center; }
.text--white, .text--white .textheading1, .text--white .textheading2,
.text--white .textheading3, .text--white p, .text--white h1, .text--white h3 { color: var(--white); }
strong, b { font-weight: 700; }

/* --- Section « Produits » : la taille suit celle du reste du site (17 px),
   seuls les titres de produits restent légèrement plus grands. --- */
.products .card__col-text .textheading3,
.products .card__col-narrow .textheading3 { font-size: 23px; }

/* --------------------------- 4. Grille / layout --------------------------- */
.section { position: relative; display: flow-root; }
.container { width: 1050px; margin: 0 auto; position: relative; display: flow-root; }
/* flow-root : les marges des blocs internes ne s'échappent pas et les
   colonnes flottantes sont contenues (comme les "clear:both" de l'original). */
.row { position: relative; width: 100%; display: flow-root; }
.col { position: relative; float: left; }
section[id] { scroll-margin-top: 86px; }

/* Comme l'original : le design de 1050px reste la référence dès 651px. */
@media (min-width: 651px) { body { min-width: 1050px; } }

/* Couleurs de fond de section */
.section--accent { background-color: var(--accent); }
.section--main   { background-color: var(--main); }
.section--white  { background-color: #fff; }

/* --------------------------- 5. En-tête (86px) --------------------------- */
#Header {
  background-color: var(--accent);
  border-bottom: 1px solid #fff;
  padding-bottom: 19px;
  z-index: 100;
}
.row--header { height: 66px; }
.col--logo { width: 300px; }
.col--menu { width: 750px; }

.logo { height: 42px; margin-top: 20px; display: flex; align-items: center; }
.logo a { display: block; text-decoration: none; }
.logo__text {
  display: block;
  font-family: var(--font-heading); font-size: 27.8667px; font-weight: 400;
  line-height: 1.2; color: var(--ink); white-space: nowrap;
}

.menu { margin-top: 20px; margin-left: 190px; height: 46px; }
.menu__list { text-align: right; height: 38px; padding-top: 4px; }
.menu__list > li { display: inline-block; vertical-align: top; }
.menu__link {
  display: block; padding: 10px 0;
  font-family: var(--font-body); font-size: 15px; font-weight: 400; line-height: 18px;
  color: var(--white); text-decoration: none; white-space: nowrap;
  transition: color .2s ease-out;
}
.menu__link:hover, .menu__link.is-selected { color: #e2e6e7; }
.menu__list > li + li { margin-left: 30px; }

/* Menu mobile (masqué sur desktop) */
.burger { display: none; }
.mobileMenu { display: none; }

/* --------------------------- 6. Bandeau d'accueil (732px) --------------------------- */
.hero { background-color: #fff; overflow: hidden; }
.hero .container { height: 732px; }

/* Fond d'entête. Géométrie identique à l'original : la couche fait 160 % de
   la hauteur, décalée de -30 %, ce qui laisse de la marge pour le parallax.
   Le JS applique ensuite translateX(-50%) + le décalage vertical. */
.hero__bg {
  position: absolute; top: -30%; left: 50%;
  width: 1050px; height: 160%;
  background-repeat: no-repeat;
  background-position: 50% 50%;
  background-size: contain;
  transform: translateX(-50%);
  will-change: transform;
  z-index: 0;
}
/* Au-delà du design, le fond couvre toute la largeur (évite les bandes blanches) */
@media (min-width: 1051px) {
  .hero__bg { width: 100vw; background-size: cover; }
}

.hero__card {
  position: absolute; left: 140px; top: 0;
  width: 770px; height: 732px;
  background-color: rgba(60, 60, 60, .5);
  padding-bottom: 100px;
  z-index: 1;
}
/* Bloc titre : hauteur 201px, texte aligné en bas (comme l'original) */
.hero__title { margin-top: 130px; margin-left: 40px; width: 701px; height: 201px; display: flex; flex-direction: column; justify-content: flex-end; }
.hero__title h1 { color: var(--white); text-align: center; }
/* Ajustement de 1,5 px pour retrouver exactement la ligne de base de l'original */
.hero__title h1 { position: relative; top: 1.5px; }
.hero__sub {
  color: var(--white); text-align: center;
  margin: 71px 0 0 91px; width: 588px; height: 64px;
}
.hero__cta { margin: 56px 0 0 235px; width: 300px; height: 60px; }

/* --------------------------- 7. Boutons --------------------------- */
.btn {
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-body); font-size: 15px; font-weight: 400;
  text-align: center; text-decoration: none; border: 0; cursor: pointer;
  transition: background-color .2s ease-out, border .2s ease-out, color .2s ease-out;
}
.btn > span { line-height: 1.4; }
.btn--accent { width: 100%; height: 100%; background-color: var(--accent); color: var(--white); }
.btn--accent:hover, .btn--accent:active { background-color: var(--accent-hover); }
.btn--submit {
  padding: 5px 10px; min-height: 30px; max-width: 100%;
  background-color: var(--white); color: var(--ink);
  font-size: 15px; line-height: 18px;
}
.btn--submit:hover, .btn--submit:active { background-color: var(--main); color: var(--ink); }
.btn--submit:disabled { opacity: .9; cursor: default; }

/* --------------------------- 8. À propos (800px) --------------------------- */
.about { padding-bottom: 66px; }
.about__row-logo { height: 211px; }
.about__logo { position: absolute; left: 140px; top: 25px; width: 773px; height: 186px; }
.about__eyebrow { position: absolute; left: 0; top: 150px; width: 430px; }

.about__row-body { height: 523px; }
.about__col-text { width: 430px; height: 523px; }
.about__col-text h2 { margin-top: 25px; }
.about__col-text p { margin-top: 21px; }
.about__col-text p:last-child { margin-top: 46px; }
.about__col-img { width: 605px; height: 523px; }
.about__col-img img { display: block; width: 570px; height: 416px; margin: 44px 0 0 35px; }

/* --------------------------- 9. Produits (3991px) --------------------------- */
.products { padding-bottom: 95px; }
.row--eyebrow { height: 30px; margin-top: 100px; }
.row--title { height: 56px; }

.card { position: relative; display: flow-root; border-bottom: 1px solid var(--main); }

/* --- Bloc 1 : gasoil Extra Eco Clean + --- */
.card--gasoil { margin-top: 50px; padding-bottom: 24px; }
.card__col-text { width: 600px; }
.card__col-text .textheading3 { height: 40px; }
.card__col-text .textnormal { margin-top: 20px; }
.card__col-img { width: 450px; height: 322px; }
.card__col-img img { display: block; width: 300px; height: 176px; margin: 32px 0 0 150px; }
.card__col-wide { width: 1010px; margin: 30px 0 0 25px; }

/* Groupes « Niveau … » : titre et contenu en orange, texte agrandi.
   Couleur identique à l'original (classe « mainColor ») : #ff7461. */
.niveau + .niveau { margin-top: 26px; }
.niveau__titre { margin-bottom: 4px; }
.card__col-wide .niveau,
.card__col-wide .niveau p,
.card__col-wide .niveau strong { color: var(--main); }

/* --- Bloc 2 : autres carburants + Drive-In --- */
.card--fuels { margin-top: 14px; padding-bottom: 100px; }
.card--fuels .r-diesel    { margin-top: 15px; }
.card--fuels .r-diesel-p  { margin-top: 11px; }
.card--fuels .r-lamp      { margin-top: 18px; }
.card--fuels .r-lamp-p    { margin-top: 15px; }
.card--fuels .r-antigel   { margin-top: 11px; }
.card--fuels .r-antigel-p { margin-top: 17px; }
.card--fuels .r-drivein-t { margin-top: 60px; }
.card--fuels .r-drivein   { margin-top: 17px; }

.card__col-narrow { width: 600px; margin-left: 12px; }

.products__drivein { display: block; width: 446px; height: 655px; margin: 0 auto; }

/* --- Encart « Drive-In » : 3 colonnes côte à côte --- */
.pellets-box {
  display: flex;
  align-items: flex-start;
  gap: 40px;
  width: 994px;
  margin: 40px 0 60px 28px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--main);
}
.drivein__col { width: 276px; flex: 0 0 auto; }
.drivein__col--comfo { width: 281px; }
.drivein__col--bric  { width: 260px; margin-left: auto; }
.drivein__brand { display: block; }
.drivein__col--firestixx .drivein__brand { width: 253px; height: 56px;  margin: 40px 0 0 10px; }
.drivein__col--comfo .drivein__brand     { width: 294px; height: 187px; margin: 0; }
.drivein__col--bric .drivein__brand      { width: 228px; height: 54px;  margin: 24px 0 0 16px; }
.drivein__col .textsmall { margin-top: 40px; }

/* --------------------------- 10. Raisons (590px) --------------------------- */
.reasons { padding-bottom: 100px; }
.row--reasons { margin-top: 50px; height: 254px; }
.reason { width: 320px; }
.reason + .reason { margin-left: 45px; }
.reason__icon { display: block; width: 50px; height: 50px; margin: 0 auto; }
.reason__icon svg { display: block; width: 50px; height: 50px; }
.reason .textheading3 { margin-top: 32px; }
.reason .textnormal { margin-top: 20px; }

/* --------------------------- 11. Services (792px) --------------------------- */
.services-detail { padding-bottom: 27px; }
.services-detail .row--title { height: 103px; }
.services-detail__col { width: 640px; margin: 22px 0 0 205px; }
/* Les listes de cette section s'alignent sur le même retrait que les titres. */
.services-detail__col p { margin: 0; }

/* --------------------------- 12. Galerie (545px) --------------------------- */
.gallery-section { padding-bottom: 12px; }
.gallery { display: grid; grid-template-columns: repeat(4, 252px); gap: 14px; margin-top: 15px; }
.gallery__cell { display: block; width: 252px; height: 252px; overflow: hidden; background-color: #f7f7f7; }
.gallery__cell img { display: block; width: 100%; height: 100%; transition: transform .35s ease-out; }
.gallery__cell:hover img { transform: scale(1.04); }

/* --------------------------- 13. Contact (803px) --------------------------- */
.contact { padding-bottom: 41px; }
.contact .row--eyebrow { margin-top: 70px; }
.contact .row--title { height: 56px; }
.contact .row--subtitle { height: 38px; margin-top: 20px; }
.contact__row { margin-top: 50px; height: 498px; }
.contact__col-info { width: 510px; height: 498px; }
.contact__col-form { width: 540px; height: 498px; float: right; }

.contact__line { height: 48px; line-height: 1.6; display: flex; align-items: center; }
.contact__line a { color: #fff; text-decoration: none; font-family: var(--font-body); font-size: 17px; }
.contact__line a:hover { color: var(--accent-hover); }
.contact__line + .contact__line { margin-top: 30px; height: 25px; }
.contact__strong { font-weight: 700; }
.contact__hours-title { color: #fff; margin-top: 40px; height: 40px; }

.hours { color: #fff; font-family: var(--font-body); font-size: 17px; line-height: 1.7; height: 192px; }
.hours__item { display: flex; align-items: baseline; }
.hours__item dt { font-weight: 700; white-space: nowrap; flex: 0 0 auto; }
.hours__item dd { font-weight: 400; white-space: nowrap; }
.contact__note { color: #fff; font-family: var(--font-body); font-size: 17px; line-height: 34px; font-weight: 700; height: 68px; }

/* Formulaire */
.contactForm { color: #fff; font-family: var(--font-body); font-size: 17px; height: 407px; }
.field { position: relative; padding: 0 5px; border: 2px solid transparent; }
.field label { display: block; padding: 5px 0; line-height: 18px; color: #fff; }
.field input[type="text"], .field input[type="email"], .field textarea {
  width: 100%; font-family: Arial, sans-serif; font-size: 16px;
  background-color: #fff; color: #3c3c3c;
  border: 1px solid #bbb; padding: 1px 8px; height: 30px;
}
.field textarea { height: 130px; padding: 7px 8px; display: block; resize: vertical; }
.field input:focus, .field textarea:focus { outline: 2px solid var(--accent-hover); }
.field .error { display: block; margin-left: 7px; color: #ffd3ce; font-weight: 700; font-size: 12px; line-height: 14px; min-height: 14px; }
.field.has-error { border-color: #ffd3ce; }
.field--honeypot { position: absolute; left: 0; top: -9999px; opacity: 0; pointer-events: none; z-index: -1; }
.field--submit { padding: 0; margin-top: 10px; }
.formStatus { margin-top: 10px; font-size: 14px; min-height: 20px; }
.formStatus.is-ok { color: #d9ffd4; }
.formStatus.is-ko { color: #ffd3ce; }

/* --------------------------- 14. Carte (400px) --------------------------- */
.location { line-height: 0; background-color: var(--main); }
.location iframe { display: block; width: 100%; height: 400px; border: 0; }

/* --------------------------- 15. Pied de page (70px) --------------------------- */
.footer { padding-bottom: 14px; }
.footer__row { height: 56px; }
.footer__col-logo { width: 300px; }
.footer__col-phone { width: 250px; margin-left: 100px; padding-top: 23px; }
.footer__col-social { width: 164px; margin-left: 236px; padding-top: 23px; }
.footer .logo { margin-top: 14px; }
.footer__phone { font-family: var(--font-body); font-size: 17px; color: #fff; text-decoration: none; line-height: 25px; }
.footer__phone:hover { color: var(--accent-hover); }
.social { display: flex; justify-content: space-between; align-items: center; height: 26px; }
.social a { display: block; width: 26px; height: 26px; }
.social svg { display: block; width: 26px; height: 26px; }
.social a:hover svg { opacity: .8; }

/* --------------------------- 15. Lightbox --------------------------- */
.lightbox {
  display: none; position: fixed; inset: 0; z-index: 9999;
  background-color: rgba(0, 0, 0, .88);
  align-items: center; justify-content: center;
}
.lightbox.is-open { display: flex; }
.lightbox__img { max-width: 88vw; max-height: 88vh; display: block; }
.lightbox__close, .lightbox__prev, .lightbox__next {
  position: absolute; background: none; border: 0; color: #fff;
  font-size: 48px; line-height: 1; cursor: pointer; padding: 10px 18px;
  font-family: var(--font-body); opacity: .85;
}
.lightbox__close:hover, .lightbox__prev:hover, .lightbox__next:hover { opacity: 1; }
.lightbox__close { top: 10px; right: 20px; font-size: 42px; }
.lightbox__prev { left: 10px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 10px; top: 50%; transform: translateY(-50%); }

/* =========================================================================
   17. Mode mobile (sous 651px)
   ========================================================================= */
@media (max-width: 650px) {
  body { min-width: 0; }

  /* Tout repasse en flux vertical */
  .section, .container, .row, .col, .card, .pellets-box, .contactForm, .hero__card {
    width: 100% !important; max-width: 100% !important;
    height: auto !important; min-height: 0 !important;
    position: static !important; float: none !important;
    margin-left: 0 !important; margin-right: 0 !important;
  }
  .container { padding-left: 15px !important; padding-right: 15px !important; }
  .about__logo, .about__eyebrow, .card__col-wide, .hero__title, .drivein__col .textsmall, .hero__bg {
    position: static !important; width: 100% !important; height: auto !important;
    margin-left: 0 !important; max-width: 100% !important;
  }
  .hero .container { height: auto !important; }

  /* Typographie mobile */
  .textheading1 { font-size: 40px; }
  .textheading2 { font-size: 28px; }
  .textheading3 { font-size: 24px; }
  .reason .textheading3, .hero__sub { font-size: 20px; }

  /* Entête */
  #Header { padding-bottom: 0; }
  .row--header { display: flex; align-items: center; height: auto; padding: 12px 15px; }
  .col--logo { width: auto !important; flex: 1 1 auto; }
  .col--menu { display: none; }
  .logo { margin-top: 0 !important; }
  .logo__text { font-size: 22px; }
  .burger {
    display: flex !important; flex-direction: column; gap: 5px; flex: 0 0 auto;
    position: static !important; width: auto !important;
    background: none; border: 0; cursor: pointer; padding: 12px 15px; margin-left: auto;
  }
  .burger span { display: block; width: 24px; height: 3px; background-color: #fff; transition: transform .25s, opacity .25s; }
  .burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
  .mobileMenu { display: block; max-height: 0; overflow: hidden; background-color: var(--accent); transition: max-height .3s ease-out; }
  .mobileMenu.is-open { max-height: 420px; }
  .mobileMenu ul { padding: 10px 15px 20px; }
  .mobileMenu a { display: block; padding: 10px 0; font-family: var(--font-body); font-size: 16px; line-height: 3; color: #fff; text-decoration: none; }
  .mobileMenu a.is-selected { color: #e2e6e7; }

  /* Bandeau d'accueil */
  .hero__bg { display: none; }
  .hero__card { background-color: rgba(60, 60, 60, .5); padding: 40px 20px !important; }
  .hero__card h1 { width: auto !important; margin-left: 0 !important; }
  .hero__sub { width: auto !important; margin: 20px 0 0 !important; }
  .hero__cta { width: 100% !important; max-width: 320px; height: 50px; margin: 30px auto 0 !important; }

  /* Espacements resserrés */
  .row--eyebrow, .products > .container > .row--eyebrow { margin-top: 45px !important; }
  .card, .about, .reasons, .services-detail, .gallery-section, .contact { padding-bottom: 40px !important; }
  .card--gasoil, .card--fuels, .card--pellets { margin-top: 45px !important; }
  .about__row-logo { margin-top: 25px !important; }
  .about__logo { max-width: 420px; margin: 0 auto !important; display: block; }
  .about__eyebrow { top: auto !important; }
  .about__col-text h2, .about__col-text p { margin-top: 20px !important; }
  .about__col-img img { width: 100% !important; height: auto !important; margin: 25px 0 0 !important; }
  .card__col-img img, .products__drivein, .drivein__brand { width: 100% !important; max-width: 320px; height: auto !important; margin: 20px auto 0 !important; }
  .card__col-text .textnormal, .services-detail__col, .contact__col-info, .contact__col-form, .hours, .contact__note { height: auto !important; overflow: visible !important; }
  .card__col-wide { margin-top: 20px !important; }
  .pellets-box { display: block; width: 100% !important; margin: 30px 0 0 !important; gap: 0; }
  .drivein__col { width: 100% !important; margin-top: 35px !important; }
  .drivein__col .textsmall { margin-top: 15px !important; }
  .reason + .reason { margin: 35px 0 0 !important; }
  .reason__icon { margin-bottom: 20px; }
  .reason .textheading3 { height: auto !important; }

  /* Galerie : 2 colonnes */
  .gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 15px; }
  .gallery__cell { width: auto; height: auto; aspect-ratio: 1 / 1; }

  /* Contact */
  .contact .row--eyebrow { margin-top: 40px !important; }
  .contact__row { margin-top: 30px !important; }
  .contact__line { height: auto !important; margin-bottom: 18px; display: block; }
  .contact__line + .contact__line { margin-top: 0 !important; height: auto !important; }
  .contact__hours-title { margin-top: 25px !important; height: auto !important; }
  .contact__note { font-size: 16px; line-height: 1.8; }
  .contact__col-form { margin-top: 35px !important; }
  .field { padding: 0 !important; }

  /* Pied de page */
  .footer__row { height: auto !important; padding-bottom: 20px; }
  .footer__col-phone, .footer__col-social { padding-top: 15px !important; }
  .social { justify-content: flex-start; gap: 20px; }
}

/* --------------------------- 17. Accessibilité --------------------------- */
:focus-visible { outline: 3px solid #000; outline-offset: 2px; }
#Header :focus-visible, .footer :focus-visible, .contact :focus-visible { outline-color: #fff; }
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
