/* ==========================================================================
   ocedev. — feuille de style
   Palette : Papier / Sable / Forêt / Encre / Ambre
   Typo    : Fraunces (titres) + Figtree (texte)
   ========================================================================== */

:root {
  --paper: #f5f0e8;
  --sand: #ebe3d5;
  --line: #d9cfbd;
  --forest: #264d3f;
  --ink: #1f2a25;
  --amber: #d98e2b;
  --amber-hover: #e6a044;
  --muted: #5e5b52;
  --muted-strong: #4e4c44;
  --forest-tint: #dce5df;
  --field-border: #b9ad97;
  --online: #2f8a5f;

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;

  --gutter: clamp(20px, 5vw, 64px);
  --max: 1200px;
}

/* ---------- Base ---------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3,
p {
  margin: 0;
  text-wrap: pretty;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 500;
}

a {
  color: var(--forest);
}

a:hover {
  color: var(--ink);
}

:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 3px;
}

[id] {
  scroll-margin-top: 24px;
}

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 10;
  padding: 12px 20px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
  font-weight: 600;
}

.skip-link:focus {
  top: 16px;
  color: var(--paper);
}

.eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.section-title {
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 680px;
}

.section-intro {
  font-size: 18px;
  color: var(--muted);
}

/* ---------- Boutons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 28px;
  border: 1.5px solid transparent;
  border-radius: 999px;
  font-family: inherit;
  font-size: 17px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.btn--primary {
  background: var(--amber);
  color: var(--ink);
}

.btn--primary:hover {
  background: var(--amber-hover);
  color: var(--ink);
}

.btn--outline {
  border-color: var(--forest);
  color: var(--forest);
}

.btn--outline:hover {
  background: var(--sand);
  color: var(--forest);
}

.btn--small {
  min-height: 44px;
  padding: 0 22px;
  font-size: 16px;
}

/* ---------- Logo ---------- */

.logo {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
}

.logo span {
  color: var(--amber);
}

.logo:hover {
  color: var(--ink);
}

.logo--header {
  font-size: 30px;
}

.logo--footer {
  font-size: 24px;
}

/* ---------- En-tête ---------- */

.site-header .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  padding-block: 24px;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 32px;
  font-size: 16px;
  font-weight: 500;
}

.site-nav a:not(.btn) {
  padding: 10px 0;
  color: var(--ink);
  text-decoration: none;
}

.site-nav a:not(.btn):hover {
  color: var(--forest);
  text-decoration: underline;
  text-underline-offset: 6px;
}

/* ---------- Hero ---------- */

.hero .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 56px;
  padding-top: 48px;
  padding-bottom: clamp(56px, 8vw, 96px);
}

.hero-text {
  flex: 1 1 480px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 28px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--sand);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
}

.badge::before {
  content: "";
  flex: none;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--online);
}

.hero h1 {
  font-size: clamp(40px, 5.4vw, 68px);
  line-height: 1.04;
  letter-spacing: -0.025em;
}

.lead {
  max-width: 540px;
  font-size: 20px;
  line-height: 1.55;
  color: var(--muted);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
}

.hero-photo {
  flex: 1 1 320px;
  min-width: 0;
  max-width: 460px;
  margin: 0 auto;
}

.hero-photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 30%;
  border-radius: 20px;
  background: var(--sand);
}

.hero-photo figcaption {
  margin-top: 14px;
  font-size: 15px;
  color: var(--muted);
}

/* ---------- Repères ---------- */

.stats {
  border-block: 1px solid var(--line);
}

.stats .container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
  gap: 32px;
  padding-block: 40px;
}

.stat dt {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 40px;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.stat dd {
  margin: 4px 0 0;
  font-size: 16px;
  color: var(--muted);
}

.stat {
  margin: 0;
}

/* ---------- Sections ---------- */

.section .container {
  display: flex;
  flex-direction: column;
  gap: 48px;
  padding-block: 96px 40px;
}

#prestations .container {
  padding-top: 112px;
}

/* ---------- Prestations ---------- */

.service-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--ink);
}

.service {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 40px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

.service h3 {
  flex: 1 1 200px;
  font-size: 26px;
  line-height: 1.2;
}

.service p {
  flex: 2 1 320px;
  color: var(--muted);
}

.service .price {
  flex: 0 1 210px;
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
}

.fineprint {
  font-size: 15px;
  color: var(--muted);
}

/* ---------- Réalisations (carousel) ---------- */

.carousel-track {
  display: flex;
  gap: 32px;
  margin: 0;
  padding: 0 0 4px;
  list-style: none;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.carousel-track::-webkit-scrollbar {
  display: none;
}

.project {
  flex: 0 0 min(520px, 85%);
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.project-shot {
  aspect-ratio: 16 / 10;
  width: 100%;
  object-fit: cover;
  border-radius: 16px;
  background: var(--sand);
}

/* Emplacement vide : à remplacer par une <img class="project-shot"> */
.project-shot--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px dashed var(--field-border);
  font-size: 15px;
  color: var(--muted);
}

.project h3 {
  font-size: 28px;
  line-height: 1.2;
}

.project p {
  margin-top: 6px;
  color: var(--muted);
}

.project-link {
  align-self: flex-start;
  margin-top: -6px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.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;
}

.carousel-controls {
  display: flex;
  gap: 12px;
}

.arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  padding: 0;
  border: 1.5px solid var(--forest);
  border-radius: 50%;
  background: transparent;
  color: var(--forest);
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.arrow:hover {
  background: var(--sand);
}

.arrow svg {
  width: 22px;
  height: 22px;
}

/* ---------- Déroulé ---------- */

.process {
  margin-top: 96px;
  background: var(--sand);
}

.process .container {
  display: flex;
  flex-direction: column;
  gap: 56px;
  padding-block: 96px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
  gap: 40px 32px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.step {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 20px;
  border-top: 1px solid var(--ink);
}

.step-num {
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--forest);
}

.step h3 {
  font-size: 24px;
  line-height: 1.2;
}

.step p {
  color: var(--muted-strong);
}

/* ---------- Contact ---------- */

.contact {
  background: var(--forest);
  color: var(--paper);
}

.contact .container {
  display: flex;
  flex-wrap: wrap;
  gap: 56px 80px;
  padding-block: 104px;
}

.contact-text {
  flex: 1 1 380px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact h2 {
  font-size: clamp(34px, 4.4vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.contact-lead {
  max-width: 460px;
  font-size: 19px;
  color: var(--forest-tint);
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0;
  font-style: normal;
  color: var(--forest-tint);
}

.contact-details a {
  color: var(--paper);
}

.contact-form {
  flex: 1 1 380px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 32px;
  border-radius: 20px;
  background: var(--paper);
  color: var(--ink);
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field label {
  font-size: 15px;
  font-weight: 600;
}

.field input,
.field textarea {
  width: 100%;
  padding: 0 16px;
  border: 1.5px solid var(--field-border);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font-family: inherit;
  font-size: 16px;
}

.field input {
  min-height: 48px;
}

.field textarea {
  padding-block: 12px;
  line-height: 1.5;
  resize: vertical;
}

.contact-form .btn {
  align-self: flex-start;
}

/* ---------- Pied de page ---------- */

.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  padding-block: 40px;
  font-size: 15px;
  color: var(--muted);
}

.footer-brand,
.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

.footer-brand {
  gap: 16px;
}

.footer-links {
  gap: 8px 28px;
}

.footer-links a {
  padding: 8px 0;
}

/* Le attribut hidden doit l'emporter sur display:flex */
.carousel-controls[hidden] {
  display: none;
}

/* ---------- Pages légales ---------- */

.legal .container {
  max-width: 760px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-block: 48px 96px;
}

.legal h1 {
  font-size: clamp(34px, 4.4vw, 48px);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.legal h2 {
  margin-top: 16px;
  font-size: 24px;
}

.legal ul {
  margin: 0;
  padding-left: 1.2em;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.legal-updated {
  color: var(--muted);
  font-size: 15px;
}

.form-note {
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
}

/* Capture cadrée sur le haut de la page (en-tête visible) */
.project-shot--top {
  object-position: top;
}

/* Logo plutôt que capture : affiché en entier sur fond clair */
.project-shot--logo {
  object-fit: contain;
  padding: 12%;
  background: #fff;
  border: 1px solid var(--line);
}
