/* ==========================================================================
   A. Tolleneer – version statique
   Reprise fidèle du thème WordPress d'origine (Stockholm / Qode) :
   cadre « passe-partout » blanc, en-tête fixe centré, Lato + Asap, rouge #c90623.
   ========================================================================== */

/* ---------- Polices (auto-hébergées) ---------- */
@font-face { font-family: "Lato"; src: url("../fonts/lato-400-latin.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Lato"; src: url("../fonts/lato-700-latin.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Lato"; src: url("../fonts/lato-900-latin.woff2") format("woff2"); font-weight: 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Asap"; src: url("../fonts/asap-latin.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }

:root {
  --red: #c90623;
  --red-band: #c90624;
  --red-shader: #c60923;
  --red-footer-link: #eb0012;
  --text: #4f4f4f;
  --grey-title: #6a6a6a;
  --menu: #3f3f3f;
  --icon-title: #393939;
  --footer-bg: #eadcdc;
  --footer-text: #4c4c4c;
  --footer-bottom: #8c8c8c;
  --frame: 2vw;               /* passe-partout : 27px à 1366px */
  --header-h: calc(var(--frame) + 290px);
  --container: 1100px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: #fff;
  font-family: "Lato", sans-serif;
  font-size: 14px;
  line-height: 23px;
  font-weight: 400;
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}
::selection { background: #00a099; color: #fff; }
img { max-width: 100%; height: auto; display: block; border: 0; }
a { color: var(--red); text-decoration: none; transition: color .15s ease-out; }
p { font-family: "Asap", sans-serif; font-size: 14px; line-height: 18px; margin: 0 0 18px; }
p:last-child { margin-bottom: 0; }
h1, h2, h3, h4, h5, h6 { margin: 0; font-family: "Lato", sans-serif; }
h2 { font-size: 30px; line-height: 29px; font-weight: 600; letter-spacing: 2px; color: var(--red); }
h3 { font-size: 30px; line-height: 29px; font-weight: 700; letter-spacing: 1px; color: var(--red); }
h4 { font-size: 20px; line-height: 21px; font-weight: 500; letter-spacing: 1px; color: var(--grey-title); }
h4 strong { font-weight: 700; }
ul { margin: 18px 0 0; padding: 0 0 0 20px; list-style: disc; }
li { font-size: 14px; line-height: 23px; }
.text-center { text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.spacer { display: block; }

/* ---------- Passe-partout (cadre blanc fixe) ---------- */
.paspartu {
  position: fixed; inset: 0; z-index: 90; pointer-events: none;
  border: var(--frame) solid #fff; border-top: 0;
}
.wrapper { padding: var(--header-h) var(--frame) var(--frame); }
.container { width: var(--container); max-width: 100%; margin: 0 auto; }

/* ---------- En-tête ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding-top: var(--frame);
  background: #fff;
}
.header-inner {
  position: relative; height: 290px;
  background: #fff;
  box-shadow: 0 2px 3px -1px rgba(0, 0, 0, .11);
  margin: 0 var(--frame);
}
.header-brand { display: flex; height: 188px; }
.header-badge { width: 370px; flex: none; padding: 0 15px; text-align: center; }
.header-badge img { width: 340px; height: 177px; margin: 0 auto; }
.header-logo { flex: 1; display: flex; justify-content: center; padding-top: 53px; }
.header-logo img { width: 458px; height: 100px; }

.main-nav { text-align: center; height: 102px; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: inline-flex; }
.main-nav li { line-height: 100px; }
.main-nav a {
  display: block; padding: 0 15px;
  font-family: "Lato", sans-serif; font-size: 16px; font-weight: 600; text-transform: uppercase;
  color: var(--menu);
}
.main-nav a span { position: relative; display: inline-block; height: 100px; }
.main-nav a span::before {
  content: ""; position: absolute; left: 50%; bottom: 0; height: 4px; width: 0;
  background: var(--red); transform: translateX(-50%); transition: width .2s ease-out;
}
.main-nav a:hover, .main-nav li.active a { color: var(--red); }
.main-nav a:hover span::before, .main-nav li.active a span::before { width: 100%; }
.nav-toggle { display: none; }

/* ---------- Contenu ---------- */
.content { background: #fff; }

/* Bannières (ex-Revolution Slider) */
.banner { height: min(19.6vw, 268px); background: #ddd center / cover no-repeat; }
.banner-societe { height: min(16.5vw, 225px); background-position: center 57%; }
.slider { width: 100%; object-fit: cover; }
/* Le slider d'origine passe 50px sous l'en-tête fixe : on reproduit le même cadrage. */
.slider-crop { height: calc(min(31.55vw, 606px) - 50px); overflow: hidden; display: flex; align-items: flex-end; }
.slider-vitodens { height: min(31.55vw, 606px); flex: none; }
.slider-clim { height: min(56.22vw, 810px); }

/* Titres de page */
.page-title { padding: 64px 0; text-align: center; }
.page-title h4 { margin-top: 20px; }

/* Grilles de colonnes (gouttière 30px comme Visual Composer) */
.row { display: grid; gap: 30px; align-items: start; }
.row-6-6 { grid-template-columns: 1fr 1fr; }
.row-8-4 { grid-template-columns: 2fr 1fr; }
.col { min-width: 0; }
.col-pad-top { padding-top: 24px; padding-bottom: 24px; }
.block + .block { margin-top: 24px; }
.block h4 + ul, .block h4 + p { margin-top: 18px; }
.block p + ul { margin-top: 36px; }
.block ul + p { margin-top: 18px; }
.section-end { height: 64px; }

/* ---------- Accueil : services ---------- */
.home-services { padding: 70px 0 42px; }
.home-services .intro { text-align: center; }
.home-services .intro h4 { margin-top: 18px; }
.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; padding-top: 40px; }
.service { padding-bottom: 18px; }
.service-head { display: flex; align-items: center; min-height: 84px; }
.service-icon {
  flex: none; width: 84px; height: 84px; margin-right: 25px; border-radius: 50%;
  background: var(--red); display: flex; align-items: center; justify-content: center;
  transition: background .3s ease;
}
.service-icon svg { width: 34px; height: 34px; fill: #fff; }
.service:hover .service-icon { background: #a60520; }
.service h6 { font-size: 18px; line-height: 26px; font-weight: 600; text-transform: uppercase; color: var(--icon-title); }
.service a.service-text { display: block; margin-top: 35px; font-size: 14px; line-height: 23px; color: var(--red); }

/* ---------- Société ---------- */
.about { padding: 100px 0; text-align: center; }
.about h2 { margin: 20px 0 30px; line-height: 29px; }
.about p { text-align: center; }
.band { background: var(--red-band); color: #fff; text-align: center; padding: 100px 15px 98px; }
.band-line1 { font-size: 28px; line-height: 28px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; }
.band-line2 { font-size: 30px; line-height: 36px; font-weight: 700; letter-spacing: 1px; margin-top: 26px; }
.vision { width: 535px; max-width: 100%; margin: 0 auto; padding-top: 100px; text-align: center; }
.vision h2 { margin-bottom: 64px; }
.vision p { text-align: center; margin-bottom: 23px; }

/* ---------- Réalisations ---------- */
.projects { padding: 8px 0 122px; }
.projects h2 { text-align: center; }
.projects h2.second { margin-top: 90px; }
.separator { border-bottom: 1px solid #d3d3d3; margin: 20px 0; }
.portfolio { display: grid; grid-template-columns: repeat(3, 1fr); column-gap: 22px; row-gap: 24px; align-items: start; }
.portfolio-item { position: relative; display: block; overflow: hidden; }
.portfolio-item img { width: 100%; transition: transform .3s ease-in-out; }
.portfolio-item .shader {
  position: absolute; inset: 0; background: var(--red-shader); opacity: 0;
  transition: opacity .3s ease-in-out;
}
.portfolio-item h3 {
  position: absolute; left: 30px; right: 30px; top: 50%; transform: translateY(-50%);
  font-size: 20px; line-height: 29px; font-weight: 800; letter-spacing: 1px; color: #fff; text-align: center;
  opacity: 0; transition: opacity .3s ease-in-out;
}
.portfolio-item:hover .shader, .portfolio-item:focus-visible .shader,
.portfolio-item:hover h3, .portfolio-item:focus-visible h3 { opacity: 1; }

/* Fiche projet */
.project-image img { width: auto; max-width: 100%; }
.project-text { padding: 46px 45px 26px; width: 75%; }
.project-text h2 { margin-bottom: 40px; }
.project-text p { margin: 0; }
.project-text .gap { height: 18px; }
.project-text ul { margin-top: 0; }
.project-nav { position: relative; padding: 40px 0 50px; height: 123px; }
.project-nav a { position: absolute; top: 40px; width: 30px; height: 33px; color: #00a099; display: flex; align-items: center; justify-content: center; }
.project-nav a svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2.2; }
.project-nav .prev { left: 0; }
.project-nav .next { right: 0; }

/* ---------- Contact ---------- */
.contact-title { padding: 64px 0 32px; text-align: center; }
.contact-row { padding-top: 32px; padding-bottom: 64px; }
.coords { font-size: 14px; line-height: 23px; }
.coords h4 { margin: 20px 0 20px; }
.coords .line-gap { height: 20px; }
.coords .addr { margin-top: 23px; }
.map { margin-top: 64px; padding: 0 5px; }
.map iframe { display: block; width: 100%; height: 450px; border: 0; }

/* Colonne de droite : coordonnées à la place du formulaire (même gabarit visuel) */
.contact-panel .field { margin-bottom: 15px; }
.contact-panel .label { font-family: "Asap", sans-serif; font-size: 14px; line-height: 18px; color: #000; margin: 0; }
.contact-panel .value {
  display: block; background: #f7f7f7; border: 1px solid #fff; padding: 10px 17px;
  font-family: "Asap", sans-serif; font-size: 14px; line-height: 18px; color: var(--text);
}
.contact-panel a.value { color: var(--red); }
.contact-panel a.value:hover { background: #efefef; }
.contact-panel .value.tall { padding: 15px 17px; }
.contact-panel .note { font-family: "Asap", sans-serif; font-size: 14px; line-height: 18px; color: #000; margin: 4px 0 18px; }
.btn {
  display: inline-block; height: 41px; padding: 0 22px; border: 2px solid var(--red);
  background: var(--red); color: #fff;
  font-family: "Asap", sans-serif; font-size: 12px; line-height: 37px; letter-spacing: 2px; text-transform: uppercase;
  transition: color .15s, background .15s;
}
.btn:hover { background: #fff; color: var(--red); }
.btn + .btn { margin-left: 8px; }

/* ---------- Pied de page ---------- */
.footer-top { background: var(--footer-bg); padding: 82px 0 76px; color: var(--footer-text); font-size: 16px; }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); }
.footer-col:nth-child(1) { padding-right: 30px; }
.footer-col:nth-child(2) { padding: 0 30px; border-left: 1px solid #fff; }
.footer-col:nth-child(3) { padding-left: 30px; border-left: 1px solid #fff; }
.footer-col h4 { font-size: 20px; line-height: 21px; font-weight: 500; letter-spacing: 1px; color: var(--menu); margin-bottom: 15px; }
.footer-col p { font-size: 16px; line-height: 18px; color: var(--footer-text); }
.footer-col a { color: var(--red-footer-link); }
.footer-col a:hover { color: var(--red); }
.footer-col ul { list-style: none; margin: 0 0 0 10px; padding: 0; }
.footer-col li { font-family: "Lato", sans-serif; font-size: 16px; line-height: 23px; }
.footer-bottom {
  background: var(--footer-bottom); color: #fff; text-align: center;
  font-family: "Asap", sans-serif; font-size: 13px; line-height: 22px; font-weight: 500;
}
.footer-bottom a { color: #fff; }

/* ---------- Retour en haut ---------- */
.back-to-top {
  position: fixed; right: calc(var(--frame) + 10px); bottom: 65px; z-index: 95;
  width: 46px; height: 46px; background: var(--red); color: #fff;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s, background .15s;
}
.back-to-top.is-visible { opacity: 1; visibility: visible; }
.back-to-top:hover { background: #a60520; color: #fff; }
.back-to-top svg { width: 12px; height: 12px; stroke: currentColor; fill: none; stroke-width: 2.4; }

/* ==========================================================================
   Responsive (le thème d'origine bascule en mobile sous 1000px)
   ========================================================================== */
@media (max-width: 1160px) {
  :root { --container: 950px; }
  .header-badge { width: 300px; }
  .header-badge img { width: 270px; height: auto; }
  .header-logo img { width: 400px; height: auto; }
  .main-nav a { padding: 0 10px; font-size: 15px; }
}

@media (max-width: 1000px) {
  :root { --frame: 0px; --container: 768px; }
  .paspartu { display: none; }
  .wrapper { padding-top: 0; }
  .site-header { position: relative; padding-top: 0; }
  .header-inner { height: auto; margin: 0; padding: 15px 20px 0; }
  .header-brand { height: auto; flex-direction: column; align-items: center; gap: 15px; }
  .header-badge { width: auto; padding: 0; }
  .header-badge img { width: 220px; height: auto; }
  .header-logo { padding: 0 0 15px; }
  .header-logo img { width: 360px; height: auto; }
  .nav-toggle {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    width: 100%; height: 50px; margin: 0; border: 0; border-top: 1px solid #eee; background: #fff; cursor: pointer;
    font: 600 15px/1 "Lato", sans-serif; text-transform: uppercase; color: var(--menu);
  }
  .nav-toggle svg { width: 20px; height: 20px; fill: currentColor; }
  .main-nav { height: auto; display: none; }
  .main-nav.is-open { display: block; }
  .main-nav ul { display: block; }
  .main-nav li { line-height: 46px; border-top: 1px solid #eee; }
  .main-nav a { padding: 0 20px; }
  .main-nav a span { height: auto; }
  .main-nav a span::before { display: none; }
  .container { padding-left: 20px; padding-right: 20px; }
  .services-grid { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .portfolio { grid-template-columns: 1fr 1fr; }
  .banner, .banner-societe { height: 30vw; }
  .slider-crop { height: auto; }
  .back-to-top { right: 15px; bottom: 20px; }
}

@media (max-width: 760px) {
  .row-6-6, .row-8-4 { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .service a.service-text { margin-top: 20px; }
  .footer-cols { grid-template-columns: 1fr; row-gap: 40px; }
  .footer-col:nth-child(n) { padding: 0; border: 0; }
  .footer-top { padding: 50px 0; }
  .project-text { width: 100%; padding: 30px 0 10px; }
  .about { padding: 60px 0; }
  .band { padding: 60px 15px; }
  .band-line1 { font-size: 22px; line-height: 26px; }
  .band-line2 { font-size: 20px; line-height: 28px; }
  .vision { padding-top: 60px; }
  .footer-bottom { padding: 6px 10px; }
}

@media (max-width: 480px) {
  h2, h3 { font-size: 24px; line-height: 28px; }
  h4 { font-size: 17px; line-height: 22px; }
  .header-logo img { width: 100%; }
  .portfolio { grid-template-columns: 1fr; }
  .page-title, .contact-title { padding: 40px 0; }
  .btn + .btn { margin: 10px 0 0; }
}

@media print {
  .site-header { position: static; }
  .wrapper { padding-top: 0; }
  .paspartu, .back-to-top, .main-nav, .nav-toggle, .map { display: none !important; }
}
