:root {
  --teal: #1f5c73;
  --teal-dark: #143d4e;
  --teal-mid: #2a6d86;
  --orange: #c25e12;
  --orange-hover: #a34e0e;
  --cream: #f6f3ee;
  --paper: #ffffff;
  --ink: #1c2a30;
  --muted: #5b6c73;
  --line: #d7e0e4;
  --shadow: 0 12px 32px rgba(20, 61, 78, 0.12);
  --header-h: 4.5rem;
  --max: 1120px;
  --font: "Outfit", system-ui, sans-serif;
  --serif: "Fraunces", Georgia, serif;
  --script: "Great Vibes", cursive;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
}

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

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 560;
  line-height: 1.15;
  margin: 0 0 0.6rem;
}

p {
  margin: 0 0 1rem;
}

.container {
  width: min(var(--max), calc(100% - 2rem));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 3px solid var(--orange);
  backdrop-filter: blur(8px);
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  min-height: var(--header-h);
  padding: 0.55rem 0;
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 48px;
  width: auto;
}

.nav {
  display: flex;
  gap: 0.25rem 0.15rem;
  flex-wrap: wrap;
}

.nav a {
  padding: 0.45rem 0.7rem;
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--teal-dark);
  border-bottom: 2px solid transparent;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--orange);
  border-bottom-color: var(--orange);
}

/* Hero */
.hero {
  position: relative;
  min-height: min(78vh, 720px);
  display: grid;
  align-items: end;
  color: white;
  background: var(--teal-dark) center / cover no-repeat;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(20, 61, 78, 0.28) 0%, rgba(20, 61, 78, 0.78) 70%),
    rgba(20, 61, 78, 0.35);
}

.hero-inner {
  position: relative;
  z-index: 1;
  padding: 4.5rem 0 3.2rem;
}

.hero .eyebrow {
  display: inline-block;
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  color: #ffffff;
  background: rgba(14, 36, 46, 0.78);
  padding: 0.4rem 0.75rem;
  margin-bottom: 0.85rem;
}

.hero h1 {
  font-size: clamp(2.1rem, 5vw, 3.6rem);
  max-width: 16ch;
}

.slogan {
  font-family: var(--script);
  font-size: clamp(1.8rem, 4vw, 2.7rem);
  color: #f3c49a;
  margin: 0.2rem 0 1rem;
}

.hero p.lead {
  max-width: 42rem;
  font-size: 1.08rem;
  color: #e8eef0;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.4rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.8rem 1.25rem;
  border-radius: 2px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  font-family: inherit;
}

.btn-primary {
  background: var(--orange);
  color: white;
}

.btn-primary:hover {
  background: var(--orange-hover);
}

.btn-ghost {
  background: transparent;
  color: white;
  border-color: rgba(255, 255, 255, 0.7);
}

.btn-ghost:hover {
  background: white;
  color: var(--teal-dark);
}

.btn-outline {
  background: transparent;
  color: var(--teal);
  border-color: var(--teal);
}

.btn-outline:hover {
  background: var(--teal);
  color: white;
}

.btn-danger {
  background: #9b2c2c;
  color: white;
}

.btn-danger:hover {
  background: #7a1f1f;
}

/* Sections */
.section {
  padding: 4rem 0;
}

.section-cream {
  background: var(--cream);
}

.section-teal {
  background: var(--teal-dark);
  color: white;
}

.kicker {
  color: var(--orange);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}

.section h2 {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
}

.intro {
  max-width: 40rem;
  color: var(--muted);
  margin-bottom: 2rem;
  line-height: 1.75;
}

.intro-wide {
  max-width: 48rem;
}

@media (min-width: 720px) {
  .intro,
  .year-card p,
  .mission p,
  .engagement-note p:not(.engagement-quote),
  .project-copy p,
  .hero p.lead {
    text-align: justify;
    hyphens: auto;
    -webkit-hyphens: auto;
    hyphenate-limit-chars: 7 3 3;
  }
}

.timeline {
  display: grid;
  gap: 1.2rem;
  margin: 2rem 0 0;
}

@media (min-width: 720px) {
  .timeline {
    grid-template-columns: repeat(3, 1fr);
  }
}

.year-card {
  background: white;
  padding: 1.3rem 1.2rem;
  border-top: 3px solid var(--orange);
  box-shadow: var(--shadow);
}

.year-card strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.6rem;
  color: var(--teal);
  margin-bottom: 0.35rem;
}

.values {
  display: grid;
  gap: 0.8rem;
  margin-top: 2rem;
}

@media (min-width: 720px) {
  .values {
    grid-template-columns: repeat(2, 1fr);
  }
}

.value {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  background: white;
  padding: 1rem 1.1rem;
}

.value-mark {
  flex: none;
  width: 8px;
  height: 8px;
  margin-top: 0.5rem;
  background: var(--orange);
}

.value p {
  margin: 0;
  font-weight: 560;
}

/* Missions */
.missions {
  display: grid;
  gap: 1.1rem;
}

@media (min-width: 860px) {
  .missions {
    grid-template-columns: repeat(3, 1fr);
  }
}

.year-card p {
  margin: 0;
  line-height: 1.65;
}

.mission {
  background: white;
  padding: 1.5rem 1.35rem 1.6rem;
  border: 1px solid var(--line);
  border-bottom: 4px solid var(--orange);
  display: flex;
  flex-direction: column;
}

.mission .num {
  font-family: var(--serif);
  font-size: 1.9rem;
  color: var(--orange);
  line-height: 1;
  margin-bottom: 0.7rem;
}

.mission h3 {
  font-size: 1.25rem;
  min-height: 2.6rem;
}

.mission p {
  color: var(--muted);
  margin: 0;
  font-size: 0.96rem;
  line-height: 1.7;
}

.mission-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.mission-list li {
  position: relative;
  padding: 0.4rem 0 0.4rem 1.05rem;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.45;
  border-bottom: 1px solid var(--line);
}

.mission-list li:last-child {
  border-bottom: 0;
}

.mission-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.75em;
  width: 6px;
  height: 6px;
  background: var(--orange);
}

/* Project cards */
.cards {
  display: grid;
  gap: 1.2rem;
}

@media (min-width: 700px) {
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1020px) {
  .cards.three,
  .cards.catalog {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card {
  background: white;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  min-height: 100%;
  overflow: hidden;
}

.card-media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: #cfd8dc;
  overflow: hidden;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.badges {
  position: absolute;
  left: 0.7rem;
  right: 0.7rem;
  bottom: 0.7rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.badge {
  background: var(--orange);
  color: white;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.28rem 0.55rem;
}

.badge.progress {
  background: var(--teal);
}

.badge.type {
  background: var(--teal-dark);
}

.badge.video {
  position: absolute;
  left: auto;
  right: 0.7rem;
  bottom: auto;
  top: 0.7rem;
  background: rgba(20, 61, 78, 0.88);
}

.card-body {
  padding: 1.05rem 1.1rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex: 1;
}

.card-body h3 {
  font-size: 1.2rem;
}

.meta {
  color: var(--muted);
  font-size: 0.9rem;
}

.card-body .btn {
  margin-top: auto;
  align-self: flex-start;
  padding: 0.5rem 0.85rem;
  font-size: 0.85rem;
}

.cta-band {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
}

.cta-band h2 {
  margin: 0;
}

.cta-band p {
  margin: 0.4rem 0 0;
  color: #d5e3e8;
}

.phones {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-weight: 600;
}

.phones a:hover {
  color: #f3c49a;
}

/* Page header (inner pages) */
.page-hero {
  background: var(--teal-dark);
  color: white;
  padding: 2.6rem 0 2.2rem;
}

.page-hero h1 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
}

.page-hero p {
  margin: 0;
  color: #d5e3e8;
  max-width: 38rem;
}

/* Project template */
.project-layout {
  display: grid;
  gap: 2rem;
}

@media (min-width: 900px) {
  .project-layout {
    grid-template-columns: 1.35fr 0.9fr;
    align-items: start;
  }
}

.gallery {
  display: grid;
  gap: 0.7rem;
}

.gallery-main {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #cfd8dc;
}

.gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.thumbs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.55rem;
}

.thumbs button {
  padding: 0;
  border: 2px solid transparent;
  background: none;
  cursor: pointer;
  display: block;
  width: 100%;
}

.thumbs button.is-active,
.thumbs button:hover {
  border-color: var(--orange);
}

.thumbs img {
  aspect-ratio: 4 / 3;
  width: 100%;
  object-fit: cover;
  object-position: center top;
  pointer-events: none;
}

.video-slot {
  margin-top: 0.7rem;
  aspect-ratio: 16 / 9;
  background: linear-gradient(160deg, #143d4e, #2a6d86);
  color: white;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 1.2rem;
}

.video-slot.has-video {
  position: relative;
  padding: 0;
  background: #000;
  overflow: hidden;
}

.video-slot video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.video-poster {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.video-play-btn {
  position: absolute;
  inset: 0;
  margin: 0;
  border: 0;
  background: rgba(20, 61, 78, 0.45);
  color: white;
  cursor: pointer;
  font: inherit;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 0.35rem;
}

.video-play-btn:hover {
  background: rgba(20, 61, 78, 0.58);
}

.video-slot.has-video .play {
  margin: 0 0 0.2rem;
}

.video-slot strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.3rem;
  margin-bottom: 0.35rem;
}

.video-slot span {
  color: #d5e3e8;
  font-size: 0.92rem;
}

.play {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: 2px solid white;
  display: grid;
  place-items: center;
  margin: 0 auto 0.8rem;
  font-size: 1.2rem;
}

.facts {
  background: var(--cream);
  padding: 1.4rem 1.3rem;
  display: grid;
  gap: 0.85rem;
}

.facts dt {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  font-weight: 600;
}

.facts dd {
  margin: 0.15rem 0 0;
  font-weight: 560;
}

.project-copy {
  margin-top: 1.4rem;
}

/* Contact */
.contact-form-wrap {
  max-width: 40rem;
}

form {
  display: grid;
  gap: 0.85rem;
  background: var(--cream);
  padding: 1.4rem;
}

label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.88rem;
  font-weight: 560;
}

label[hidden] {
  display: none !important;
}

input,
select,
textarea {
  font: inherit;
  padding: 0.7rem 0.75rem;
  border: 1px solid var(--line);
  background: white;
  color: var(--ink);
  width: 100%;
}

textarea {
  min-height: 8rem;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid var(--teal);
  border-color: var(--teal);
}

.form-success {
  display: none;
  background: #e7f4ea;
  border: 1px solid #9ccc9c;
  color: #215c2e;
  padding: 1rem 1.1rem;
}

.form-error {
  background: #fdeeee;
  border: 1px solid #e3b6b6;
  color: #7a1f1f;
  padding: 1rem 1.1rem;
}

.empty-catalog {
  background: var(--cream);
  padding: 1.6rem 1.3rem;
  color: var(--muted);
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.form-success.is-visible,
form.is-sent .form-success {
  display: block;
}

form.is-sent .form-fields {
  display: none;
}

.form-fields {
  display: grid;
  gap: 0.85rem;
}

.form-fields .btn[type="submit"] {
  margin-top: 1.1rem;
  justify-self: start;
}

/* Footer */
.site-footer {
  background: var(--teal-dark);
  color: #d5e3e8;
  padding: 2.2rem 0 1.4rem;
  font-size: 0.92rem;
}

.footer-grid {
  display: grid;
  gap: 1.2rem;
}

@media (min-width: 800px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
}

.site-footer a:hover {
  color: #f3c49a;
}

.site-footer .slogan-mini {
  font-family: var(--script);
  color: #f3c49a;
  font-size: 1.5rem;
  margin-top: 0.3rem;
}

.legal {
  margin-top: 1.6rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: #9bb4bd;
}

/* Engagement (mot du DG) */
.engagement-note {
  max-width: 46rem;
}

.engagement-note p {
  margin: 0 0 1.05rem;
  line-height: 1.75;
}

.engagement-quote {
  font-family: var(--serif);
  font-size: clamp(1.25rem, 2.4vw, 1.65rem);
  line-height: 1.4;
  color: var(--orange);
  text-align: left;
  hyphens: none;
}

.signoff {
  margin-top: 2.2rem;
  padding-top: 1.2rem;
  border-top: 3px solid var(--orange);
  max-width: 16rem;
}

.signoff .hand {
  font-family: var(--script);
  font-size: 2rem;
  color: var(--orange);
  line-height: 1.1;
}

.signoff .role {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}
