/*
Theme Name: EMATEO — Polytech
Version: 4.0.2
Author: EMATEO
Description: Bureau d’ingénierie pluridisciplinaire. Ingénierie et projets, études et dossiers complexes.
Requires at least: 6.5
Requires PHP: 7.4
Text Domain: emateo-classique
License: GPL v2 or later (theme code)
*/
@font-face {
  font-family: Montserrat;
  src: url(assets/montserrat.ttf) format('truetype');
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}
:root {
  --ink: #0e2a3d;
  --link: #116665;
  --copper: #c56a2d;
  --ice: #cfe3e6;
  --paper: #f7f8f6;
  --line: #cdd9d9;
  --shell: min(88%, 1280px);
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 16px/1.58 Montserrat, Arial, sans-serif; }
h1,h2,h3,p,figure { margin: 0; }
a { color: var(--link); text-underline-offset: .22em; }
a:focus-visible, summary:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid currentColor; outline-offset: 4px; }
.wrap, .vcontainer { width: var(--shell); margin-inline: auto; }
.vskip { position: absolute; top: -120px; left: 1rem; z-index: 9; padding: 10px 16px; background: white; color: var(--ink); }
.vskip:focus { top: 5px; }
.vheader { position: relative; z-index: 3; background: var(--ink); color: white; }
.vbar { display: flex; align-items: center; min-height: 98px; gap: clamp(22px,3.5vw,56px); }
.vlogo { margin-right: auto; flex-shrink: 0; line-height: 0; }
.vlogo img { display: block; width: clamp(210px,16.2vw,244px); height: auto;
  aspect-ratio: 1044 / 240; object-fit: cover; object-position: center 25%; }
.vnav { display: flex; align-items: center; gap: clamp(18px,2.6vw,42px); }
.vnav a, .vmenu nav a { color: white; text-decoration: none; font-size: 14px; font-weight: 550; }
.vnav a:hover, .vmenu nav a:hover { text-decoration: underline; }
.vcontact, .vbutton { display: inline-flex; align-items: center; justify-content: center; border-radius: 30px; text-decoration: none; font-weight: 600; }
.vcontact { padding: 9px 22px; border: 1px solid #9caeb5; color: white; font-size: 14px; }
.vcontact:hover { color: var(--ink); background: white; }
.vmenu { display: none; }
.vhero { position: relative; overflow: hidden; isolation: isolate; background: #071626; color: white; }
.vhero::before, .vhero::after { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: -1; }
.vhero::before { background: url(assets/trame.webp) center 50% / cover no-repeat; }
.vhero::after { background: linear-gradient(90deg,rgba(5,16,31,.82),rgba(5,16,31,.58) 38%,rgba(5,16,31,.08) 72%); }
/* A fine plumb line hangs from the upper edge of the hero. */
.vhero-plumb {
  position: absolute;
  top: 0;
  right: clamp(24px, 12%, 225px);
  width: clamp(14px, 1.1vw, 21px);
  height: clamp(95px, 30%, 165px);
  color: #bd855c;
  pointer-events: none;
}
.vhero-plumb::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
  background: currentColor;
  opacity: .76;
}
.vhero-plumb::after {
  content: "";
  position: absolute;
  width: 100%;
  aspect-ratio: 10 / 17;
  left: 50%;
  top: calc(100% - 1px);
  transform: translateX(-50%);
  clip-path: polygon(43% 0, 57% 0, 57% 10%, 74% 15%, 74% 22%, 95% 34%, 77% 63%, 50% 100%, 23% 63%, 5% 34%, 26% 22%, 26% 15%, 43% 10%);
  background: linear-gradient(90deg,#845b44 0%,#dab08b 38%,#c79268 48%,#987150 51%,#8b6247 85%);
}
@media (max-width:620px) {
  .vhero-plumb { right: 5%; height: 20%; }
}
.vhero-inner { min-height: clamp(400px,31vw,515px); display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding-block: clamp(38px,4vw,68px); }
.vhero h1 { font-size: clamp(56px,5.7vw,91px); font-weight: 470; line-height: 1.035; letter-spacing: -.063em; text-wrap: balance; }
.vdot { color: var(--copper); }
.vhero p { max-width: min(49%,49ch); margin-top: 18px; font-size: clamp(16px,1.15vw,19px); font-weight: 450; line-height: 1.55; color: #f0f6f6; }
.vbutton { margin-top: 23px; padding: 12px 21px; background: #fff; color: var(--ink); font-size: 13px; }
.vbutton:hover { background: var(--ice); }
.vbutton:focus-visible { outline-color: white; }
.vdoors { padding-block: clamp(27px,2.6vw,43px) clamp(30px,3.2vw,55px); }
.vdoors h2 { font-size: clamp(21px,2vw,32px); line-height: 1.2; letter-spacing: -.045em; font-weight: 560; }
.vlinks { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: clamp(26px,5vw,90px); margin-top: 19px; }
.vdoor { position: relative; text-decoration: none; color: var(--ink); border-top: 1px solid #9bafb3; padding: 16px 44px 5px 0; }
.vdoor .vname { display: block; font-weight: 565; font-size: clamp(19px,1.65vw,26px); letter-spacing: -.035em; line-height: 1.32; }
.vdoor .vdesc { display: block; margin-top: 6px; line-height: 1.48; font-size: 14px; color: #405964; max-width: 57ch; }
.varr { position: absolute; right: 0; top: 15px; width: 29px; height: 29px; border: 1px solid #b2c5c6; border-radius: 50%; color: var(--link); text-align: center; line-height: 26px; }
.vdoor:hover { border-color: var(--copper); }
.vdoor:hover .vname { text-decoration: underline; }
.vdoor:hover .varr { background: var(--ink); color: white; }
.vfoot { background: var(--ink); color: var(--ice); }
.vfoot .vcontainer { display: flex; align-items: center; justify-content: space-between; gap: 10px 28px; flex-wrap: wrap; padding-block: 18px; font-size: 12px; font-weight: 500; }
.vfoot nav { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.vfoot a { color: var(--ice); }

.vannex .inner{padding:44px 0 48px;background:#f2f6f6}
.vannex .inner h1{font-size:clamp(2rem,4vw,3.8rem);font-weight:540;line-height:1.07;letter-spacing:-.053em;max-width:23ch}
.vannex h2{font-size:clamp(1.55rem,2.7vw,2.75rem);font-weight:560;line-height:1.16;letter-spacing:-.04em}
.vannex h3{font-size:1.1rem;line-height:1.4;font-weight:620}
.vannex .lead{font-size:clamp(1rem,1.3vw,1.17rem);line-height:1.65;max-width:71ch;margin-top:17px}
.vannex .section{padding:clamp(30px,4.5vw,62px) 0}
.vannex .crumb,.vannex .eyebrow,.vannex .small,.vannex .notice{font-size:.86rem;color:var(--link)}
.vannex .crumb,.vannex .eyebrow{margin-bottom:12px}.vannex .small{margin-top:10px}
.vannex .grid3,.vannex .grid2{display:grid;gap:24px;margin-top:24px}.vannex .grid3{grid-template-columns:repeat(3,1fr)}.vannex .grid2{grid-template-columns:repeat(2,1fr)}
.vannex .card{border-top:1px solid var(--link);padding-top:15px}.vannex .card p{margin:8px 0}.vannex .card a{font-weight:550}
.vannex .split{display:grid;grid-template-columns:minmax(0,.72fr) minmax(0,1.25fr);gap:clamp(22px,5vw,75px)}
.vannex .copy>*+*,.vannex .rowitem+.rowitem{margin-top:15px}.vannex .rowitem p{margin:4px 0}
.vannex .tint{background:#f4f8f8}.vannex .actions{display:flex;gap:15px 22px;align-items:center;flex-wrap:wrap;margin:20px 0 0}
.vannex .btn{display:inline-flex;padding:11px 19px;background:var(--ink);border:0;border-radius:50px;color:white;font:600 14px/1.4 Montserrat,Arial,sans-serif;text-decoration:none}
.vannex .tablebox{overflow-x:auto}.vannex table{border-collapse:collapse;width:100%;margin:16px 0;font-size:.9rem}.vannex th,.vannex td{text-align:left;padding:10px 8px;vertical-align:top;border-bottom:1px solid var(--line)}
.vannex th{color:var(--link);background:#f3f7f7}.vannex summary{cursor:pointer;font-weight:580}
.vannex .faq details{padding:11px 0;border-bottom:1px solid var(--line)}.vannex .faq details p{margin-top:8px}
.vannex form{display:grid;gap:14px}.vannex label{display:grid;gap:6px}
.vannex input,.vannex textarea{width:100%;padding:10px;border:1px solid #8b9da1;background:#fff;border-radius:3px;font:inherit}.vannex textarea{min-height:75px}.vannex .btn:disabled{justify-self:start;opacity:.7}
.vannex .record{padding:14px 18px;border-left:2px solid var(--copper);background:#f4f8f8}
.vannex .crumb a { display: inline-block; }
.vannex .inner { border-bottom: 1px solid var(--line); }
.vannex .crumb { color: #476267; }
.vannex .tint { background: #ebf1f1; }
.vannex .inner, .vannex .grid3, .vannex .copy { overflow-wrap: anywhere; }
@media (max-width: 910px) {
  :root { --shell: 89%; }
  .vbar { min-height: 77px; gap: 17px; }
  .vlogo img { width: 190px; }
  .vnav { display: none; }
  .vmenu { display: block; position: relative; }
  .vmenu summary { padding: 12px 1px; cursor: pointer; list-style: none; font-size: 14px; font-weight: 560; }
  .vmenu summary::-webkit-details-marker { display: none; }
  .vmenu summary::after { content: '☰'; font-size: 13px; margin-left: 7px; }
  .vmenu nav { position: absolute; right: 0; top: 100%; display: grid; padding: 10px 19px; min-width: 213px; background: var(--ink); border: 1px solid #59707c; box-shadow: 0 8px 25px #08192640; }
  .vmenu nav a { padding-block: 9px; }
  .vcontact { padding: 8px 14px; font-size: 13px; }
  .vannex .split, .vannex .grid2, .vannex .grid3 { grid-template-columns: 1fr; }
  .vannex .inner { padding-block: 30px; }
}
@media (max-width: 620px) {
  .vhero-inner { min-height: 0; padding-block: 42px 40px; }
  .vhero::before { background-position: 57% center; background-size: auto 100%; }
  .vhero::after { background: linear-gradient(90deg,rgba(5,16,30,.94),rgba(5,16,30,.88) 47%,rgba(5,16,30,.48) 82%,rgba(5,16,30,.20)); }
  .vhero h1 { font-size: clamp(40px,10.5vw,58px); }
  .vhero p { max-width: min(92%,34ch); font-size: 15px; }
  .vbutton { margin-top: 20px; }
  .vlinks { grid-template-columns: 1fr; gap: 10px; margin-top: 15px; }
  .vdoor { padding: 10px 39px 7px 0; }
  .varr { top: 10px; }
  .vdoor .vdesc { font-size: 13px; }
  .vfoot .vcontainer { flex-direction: column; align-items: flex-start; }
  .vannex table { font-size: .85rem; }
}
@media (max-width: 480px) {
  .vcontact { display: none; }
  .vbar { min-height: 72px; }
  .vlogo img { width: 181px; }
}
