/* HDFMS — page « site en construction » · une seule page plein écran · couleurs et police du dépliant */
@font-face {
  font-family: "Montserrat"; font-style: normal; font-weight: 500 800; font-display: swap;
  src: url(fonts/montserrat-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
:root {
  --noir: #1D1D1B;
  --or: #E9A811;
  --or-texte: #8F6608;
  --beige: #F3EEE4;
  --trait: #E4DCCB;
  --gris: #5B5A55;
  --blanc: #FFFFFF;
}
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--beige); color: var(--noir); font: 500 15px/1.5 "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif; }
img { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--or); outline-offset: 3px; }

.page { display: grid; grid-template-columns: 1.08fr 1fr; min-height: 100vh; min-height: 100svh; }

/* ——— Gauche : annonce + photos ——— */
.gauche { position: relative; overflow: hidden; background: var(--noir); color: var(--blanc); }
.fond { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% 40%; }
.gauche::before { content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(100deg, rgba(29,29,27,.97) 0%, rgba(29,29,27,.9) 45%, rgba(29,29,27,.55) 100%); }
.gauche-in { position: relative; z-index: 2; height: 100%; display: flex; flex-direction: column; justify-content: space-between; gap: 32px;
  padding: clamp(28px, 5vh, 56px) clamp(24px, 5vw, 72px); }
.logo { width: clamp(78px, 8vw, 104px); height: auto; }
.etiquette { display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px; border: 1px solid rgba(233,168,17,.55); border-radius: 999px;
  color: var(--or); font-size: 12px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.point { width: 8px; height: 8px; border-radius: 50%; background: var(--or); animation: pouls 2s infinite; }
@keyframes pouls { 0% { box-shadow: 0 0 0 0 rgba(233,168,17,.7); } 70% { box-shadow: 0 0 0 9px rgba(233,168,17,0); } 100% { box-shadow: 0 0 0 0 rgba(233,168,17,0); } }
h1 { margin: 18px 0 0; max-width: 13ch; font-size: clamp(32px, 4.1vw, 56px); font-weight: 800; line-height: 1.08; }
.devise { margin: 14px 0 0; color: var(--or); font-size: 13px; font-weight: 700; letter-spacing: .26em; text-transform: uppercase; }
.coord { display: grid; gap: 10px; margin: clamp(20px, 3.5vh, 34px) 0 0; font-size: 16px; font-weight: 700; }
.coord a, .coord span { display: inline-flex; align-items: center; gap: 12px; width: fit-content; text-decoration: none; }
.coord a:hover { color: var(--or); }
.coord img { width: 20px; height: 20px; }
.photos { display: grid; grid-template-columns: 1fr 1fr 1fr 1.6fr; gap: 10px; }
.photos img { width: 100%; height: clamp(84px, 15vh, 140px); object-fit: cover; border-radius: 10px; }

/* ——— Droite : formulaire ——— */
.droite { display: flex; flex-direction: column; justify-content: center; gap: 20px; padding: clamp(24px, 4vh, 48px) clamp(20px, 4.5vw, 64px); }
.formulaire { width: 100%; max-width: 560px; margin: 0 auto; }
h2 { margin: 0; font-size: clamp(24px, 2.2vw, 30px); font-weight: 800; line-height: 1.15; }
.intro { margin: 6px 0 18px; color: var(--gris); }

.metiers { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; padding: 0; border: 0; }
.metiers legend { margin-bottom: 9px; padding: 0; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--or-texte); }
.metiers label { position: relative; cursor: pointer; }
.metiers input { position: absolute; opacity: 0; }
.metiers span { display: inline-block; padding: 8px 14px; border: 1.5px solid var(--trait); border-radius: 999px; background: var(--blanc);
  font-size: 13px; font-weight: 700; transition: background .15s, border-color .15s, color .15s; }
.metiers label:hover span { border-color: var(--or); }
.metiers input:checked + span { background: var(--noir); border-color: var(--noir); color: var(--blanc); }
.metiers input:checked + span::before { content: "✓ "; color: var(--or); }
.metiers input:focus-visible + span { outline: 3px solid var(--or); outline-offset: 2px; }

.champs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.champs textarea { grid-column: 1 / -1; resize: vertical; min-height: 84px; }
.champs input, .champs textarea { width: 100%; padding: 12px 14px; border: 1.5px solid var(--trait); border-radius: 10px; background: var(--blanc);
  color: var(--noir); font: 500 14.5px/1.4 "Montserrat", sans-serif; transition: border-color .15s, box-shadow .15s; }
.champs ::placeholder { color: #8A877E; }
.champs input:focus, .champs textarea:focus { outline: none; border-color: var(--or); box-shadow: 0 0 0 3px rgba(233,168,17,.22); }
.erreur { border-color: #C2410C !important; }

.joindre { display: flex; align-items: center; gap: 10px; margin: 10px 0 0; padding: 11px 14px; border: 1.5px dashed #CFC4AE; border-radius: 10px;
  background: rgba(255,255,255,.55); cursor: pointer; font-size: 14px; font-weight: 700; }
.joindre:hover { border-color: var(--or); }
.joindre input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.joindre:focus-within { outline: 3px solid var(--or); outline-offset: 2px; }
.joindre img { width: 20px; height: 20px; }
.joindre small { color: var(--gris); font-weight: 500; }

.accord { display: flex; gap: 10px; align-items: flex-start; margin: 14px 0 16px; color: var(--gris); font-size: 12.5px; line-height: 1.45; cursor: pointer; }
.accord input { flex: none; width: 17px; height: 17px; margin: 1px 0 0; accent-color: var(--noir); }
.btn { width: 100%; padding: 15px 22px; border: 0; border-radius: 999px; background: var(--or); color: var(--noir); cursor: pointer;
  font: 800 15px/1 "Montserrat", sans-serif; transition: background .15s, box-shadow .15s, transform .15s; }
.btn:hover { background: #F2B52A; box-shadow: 0 8px 22px rgba(233,168,17,.35); transform: translateY(-1px); }
.btn[disabled] { opacity: .6; cursor: wait; }
.piege { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.retour { margin: 12px 0 0; padding: 12px 14px; border-radius: 10px; font-size: 14px; font-weight: 600; }
.retour:empty { display: none; }
.retour.ok { background: #E6F2E2; color: #23561A; }
.retour.ko { background: #FBE7DD; color: #8A2D0B; }

.pied { display: flex; align-items: center; justify-content: center; gap: 14px; color: var(--gris); font-size: 12px; }
.pied img { width: 30px; height: auto; }
.pied a { text-decoration-color: var(--or); text-underline-offset: 3px; }

/* Écrans peu hauts : on resserre pour tout garder dans l'écran */
@media (min-width: 901px) and (max-height: 780px) {
  .intro { margin-bottom: 12px; }
  .metiers { margin-bottom: 12px; }
  .metiers span { padding: 6px 12px; font-size: 12.5px; }
  .champs input, .champs textarea { padding: 10px 12px; }
  .champs textarea { min-height: 64px; }
  .accord { margin: 10px 0 12px; }
  .btn { padding: 13px 20px; }
  .photos img { height: 80px; }
}

/* Mobile et tablette : l'un sous l'autre */
@media (max-width: 900px) {
  .page { grid-template-columns: 1fr; }
  .gauche-in { gap: 26px; padding: 28px 20px; }
  .gauche::before { background: linear-gradient(180deg, rgba(29,29,27,.92), rgba(29,29,27,.8)); }
  .photos { grid-template-columns: repeat(4, 1fr); gap: 6px; }
  .photos img { height: 74px; border-radius: 8px; }
  .droite { padding: 30px 16px 24px; }
}
@media (max-width: 480px) {
  .champs { grid-template-columns: 1fr; }
  .coord { font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* ——— Page des mentions légales ——— */
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.btn-or { display: inline-flex; width: auto; padding: 12px 20px; border-radius: 999px; background: var(--or); color: var(--noir); font-weight: 800; font-size: 14px; text-decoration: none; }
.pied-bas { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 18px; padding-bottom: 22px; font-size: 13px; color: #A9A69D; }
body:has(.legal) { background: var(--blanc); }
body:has(.legal) > .pied { display: block; background: var(--noir); }
body:has(.legal) > .pied a { text-decoration: none; }
