/* Ce site a été développé par Lancelot ERLER */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('fonts/montserrat.woff2') format('woff2');
}
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url('fonts/playfair.woff2') format('woff2');
}
@font-face {
  font-family: 'Playfair Display';
  font-style: italic;
  font-weight: 400 900;
  font-display: swap;
  src: url('fonts/playfair-italic.woff2') format('woff2');
}

:root {
  --blue: #1b4d8f;
  --blue-dark: #123a6e;
  --blue-deep: #0c2c54;
  --ink: #1a1f25;
  --grey: #5d6772;
  --line: #d9dee5;
  --paper: #ffffff;
  --red: #d8232a;
  --maxw: 1180px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Montserrat', system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  background: rgba(12, 44, 84, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
}

.main-nav a { color: #fff; }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 96px;
}
.brand { display: inline-block; line-height: 0; }
.brand-logo { height: 96px; width: auto; display: block; }
.main-nav { display: flex; gap: clamp(20px, 2.6vw, 46px); }
.main-nav a {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.82;
  transition: opacity 0.2s, color 0.3s;
}
.main-nav a:hover { opacity: 1; }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: none;
  border: 0;
  cursor: pointer;
}
.nav-toggle span {
  width: 24px; height: 2px;
  background: #fff;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.site-header.nav-open .nav-toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.site-header.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.site-header.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.cover {
  position: relative;
  min-height: 100vh;
  background: #fff;
  display: flex;
  align-items: center;
  padding: 120px 0 60px;
}
.cover-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(48px, 9vw, 140px);
}

.cover-left { flex: 1 1 0; max-width: 560px; }
.cover-left .sf-text { max-width: none; margin-bottom: 34px; }
.cover-left .sf-text p { font-size: 1rem; color: #3a434d; margin-bottom: 16px; }
.cover-left .sf-text strong { color: var(--blue-deep); }

.cover-right { flex: none; }

.cover-figure {
  position: relative;
  width: min(54vh, 460px);
  margin: 0;
}

.cover-photo { position: relative; z-index: 1; }
.cover-photo img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  filter: grayscale(100%) contrast(1.08);
}

.photo-baseline {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 600;
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1.05;
  color: var(--blue);
  margin: 4px 0 26px;
}
.photo-baseline em { font-style: italic; font-weight: 600; }

.cover-tags {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.cover-tags li {
  position: relative;
  padding-left: 32px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--ink);
  white-space: nowrap;
}
.cover-tags li::before {
  content: "";
  position: absolute; left: 0; top: 50%;
  width: 20px; height: 2px;
  background: var(--red);
  transform: translateY(-50%);
}
.cover-tags .made { display: flex; align-items: center; gap: 8px; padding-left: 32px; }
.flag {
  display: inline-block;
  width: 20px; height: 13px;
  background: linear-gradient(to right, #0055a4 33.3%, #fff 33.3% 66.6%, #ef4135 66.6%);
  flex: none;
}

section { padding: 110px 0; }

section, footer { scroll-margin-top: 125px; }
.kicker {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 14px;
  position: relative;
  padding-left: 34px;
}
.kicker::before {
  content: "";
  position: absolute; left: 0; top: 50%;
  width: 22px; height: 2px;
  background: var(--red);
  transform: translateY(-50%);
}
.kicker.light { color: #bcd6f2; }
.kicker.light::before { background: var(--red); }

.equipements { background: var(--paper); padding-top: 90px; }
.equipements .section-title {
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 600;
  color: var(--blue-deep);
  letter-spacing: 0.01em;
  margin-bottom: 20px;
}
.equipements .section-title.light { color: var(--blue-deep); }

.pole { margin-bottom: 72px; }

.pole-title {
  display: flex;
  align-items: center;
  gap: 26px;
  justify-content: flex-end;
  font-size: clamp(1rem, 2vw, 1.3rem);
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 36px;
}
.pole-title::before {
  content: "";
  flex: 1;
  height: 2px;
  background: var(--blue);
}

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.cards.two { grid-template-columns: repeat(2, 1fr); max-width: 760px; margin-left: auto; }
.cards.four { grid-template-columns: repeat(4, 1fr); gap: 22px; }
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.25s, transform 0.25s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 18px 34px rgba(12, 44, 84, 0.14); }
.card-media { aspect-ratio: 4 / 3; background: #e7ebf0; }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 22px 24px 26px; }
.card-body h4 {
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--blue-deep);
  margin-bottom: 4px;
  line-height: 1.3;
}
.card-sub {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--grey);
  margin-bottom: 12px;
}

.card-body ul { list-style: none; margin-top: 10px; }
.card-body li {
  font-size: 0.9rem;
  color: #44505c;
  padding: 3px 0 3px 16px;
  position: relative;
}
.card-body li::before {
  content: "–";
  position: absolute; left: 0; top: 3px;
  color: var(--blue);
  font-weight: 700;
}

.cao-note {
  margin-top: 30px;
  max-width: 640px;
  margin-left: auto;
  text-align: right;
  font-size: 1.02rem;
  font-weight: 300;
  font-style: italic;
  color: #44505c;
  border-top: 2px solid var(--line);
  padding-top: 22px;
}
.cao-note strong { font-weight: 700; font-style: normal; color: var(--blue-deep); }

.finitions { background: var(--paper); padding: 80px 0 110px; }
.finitions .container {
  background: var(--blue);
  color: #fff;
  padding: 64px 56px;
}
.finitions .section-title.light {
  color: #fff;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  margin-bottom: 30px;
}
.finitions-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, max-content);
  gap: 16px 64px;
}
.finitions-list li {
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  position: relative;
  padding-left: 28px;
}
.finitions-list li::before {
  content: "";
  position: absolute; left: 0; top: 50%;
  width: 16px; height: 2px;
  background: var(--red);
  transform: translateY(-50%);
}

.contact { background: var(--blue); color: #fff; padding: 0; }
.contact-inner { padding: 90px 28px 60px; }
.contact-brand { margin-bottom: 54px; }
.footer-logo { height: 180px; margin-top: 24px; }
.contact-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 44px; }
.contact-col h5 {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #bcd6f2;
  margin-bottom: 14px;
  position: relative;
  padding-left: 26px;
}
.contact-col h5::before {
  content: "";
  position: absolute; left: 0; top: 50%;
  width: 16px; height: 2px;
  background: var(--red);
  transform: translateY(-50%);
}
.contact-col p { font-size: 0.96rem; margin-bottom: 4px; }
.contact-col a { transition: opacity 0.2s; }
.contact-col a:hover { opacity: 0.7; text-decoration: underline; }
.contact-bottom {
  background: var(--blue-deep);
  padding: 20px 0;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.7);
}

.realisations {
  background: var(--paper);
  padding: 72px 0 80px;
  text-align: center;
}
.realisations .kicker { display: inline-block; padding-left: 0; }
.realisations .kicker::before { display: none; }
.realisations .section-title.light { color: var(--blue-deep); }
.realisations .kicker.light { color: var(--blue); }

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 18px auto 0;
  max-width: 820px;
}
.gallery-item {
  position: relative;
  margin: 0; padding: 0; border: 0;
  background: #e7ebf0;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  cursor: pointer;
  border-radius: 3px;
}
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.gallery-item::after {
  content: "";
  position: absolute; inset: 0; z-index: 1;
  background: rgba(7, 16, 30, 0);
  transition: background 0.4s ease;
}

.gallery-item::before {
  content: "+";
  position: absolute; z-index: 2;
  top: 50%; left: 50%;
  width: 56px; height: 56px;
  display: grid; place-items: center;
  font-size: 1.9rem; font-weight: 300; line-height: 1;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 50%;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.7);
  transition: opacity 0.4s ease, transform 0.4s ease;
  pointer-events: none;
}
.gallery-item:hover img,
.gallery-item:focus-visible img { transform: scale(1.09); }
.gallery-item:hover::after,
.gallery-item:focus-visible::after { background: rgba(7, 16, 30, 0.42); }
.gallery-item:hover::before,
.gallery-item:focus-visible::before { opacity: 1; transform: translate(-50%, -50%) scale(1); }

.lightbox {
  position: fixed; inset: 0; z-index: 100;
  display: flex; align-items: center; justify-content: center;
  background: rgba(5, 11, 22, 0.95);
  backdrop-filter: blur(4px);
  opacity: 0; visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox-img {
  max-width: 88vw; max-height: 84vh;
  object-fit: contain;
  border-radius: 3px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.7);
  animation: lbIn 0.35s ease;
}
@keyframes lbIn { from { opacity: 0; transform: scale(0.96); } to { opacity: 1; transform: scale(1); } }
.lightbox button {
  position: absolute;
  background: none; border: 0; color: #fff;
  cursor: pointer; line-height: 1;
  opacity: 0.75; transition: opacity 0.2s, transform 0.2s;
}
.lightbox button:hover { opacity: 1; }
.lightbox-close { top: 22px; right: 28px; font-size: 2.6rem; }
.lightbox-prev, .lightbox-next { top: 50%; transform: translateY(-50%); font-size: 3.2rem; padding: 6px 16px; }
.lightbox-prev { left: 1.5%; }
.lightbox-next { right: 1.5%; }
.lightbox-prev:hover { transform: translateY(-50%) translateX(-3px); }
.lightbox-next:hover { transform: translateY(-50%) translateX(3px); }
.lightbox-counter {
  position: absolute; bottom: 22px; left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.8rem; letter-spacing: 0.18em;
}
@media (max-width: 900px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) {
  .gallery { grid-template-columns: 1fr; }
  .lightbox-prev, .lightbox-next { font-size: 2.4rem; }
}

@media (max-width: 900px) {
  .cards, .cards.two, .cards.four { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 880px) {
  .header-inner { height: 72px; }
  .brand-logo { height: 72px; }
  .nav-toggle { display: flex; }
  .main-nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--blue-deep);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
  }
  .site-header.nav-open .main-nav { max-height: 340px; }
  .main-nav a {
    padding: 16px 28px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }
  section, footer { scroll-margin-top: 88px; }
  .cover { padding: 104px 0 48px; }
  .footer-logo { height: 140px; }
}
@media (max-width: 700px) {

  .cover-inner { flex-direction: column; gap: 40px; }
  .cover-left { text-align: center; }
  .cover-figure { width: min(70vw, 300px); }
  .cover-tags { align-items: center; }
}
@media (max-width: 600px) {
  section { padding: 70px 0; }
  .cards, .cards.two, .cards.four { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .finitions-list { grid-template-columns: 1fr; }
  .finitions .container { padding: 44px 28px; }
  .cao-note { text-align: left; }
}
