/* VitroVision — site vitrine */

/* Fonts personnalisées */
@font-face {
  font-family: "Cake";
  src: url("/static/fonts/cakebold.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
}

@font-face {
  font-family: "Cake";
  src: url("/static/fonts/cakethin.otf") format("opentype");
  font-weight: 300;
  font-style: normal;
}


:root {
  --bleu-fonce: #0a3d62;
  --bleu-clair: #1e90ff;
  --cyan: #00d2ff;
  --blanc: #ffffff;
  --gris-texte: #4a5568;
  --gris-clair: #f7fafc;
  --ombre: 0 4px 24px rgba(10, 61, 98, 0.12);
  --nav-hauteur: 72px;
  --scroll-offset: 88px;
}
.service-card__media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Cake", "Segoe UI", system-ui, sans-serif;
  font-weight: 300;
  background: #fff;
}

/* Titres en bold */
.section__title,
.hero__tagline,
.service-card__body h3,
.contact__panel-title,
.stat__number,
.nav__links a,
.contact__item-value {
  font-family: "Cake", sans-serif;
  font-weight: 700; /* cakebold */
}

/* Textes normaux en thin */
.section__subtitle,
.service-card__body p,
.stat__label,
.contact__item-label,
.contact__zone-note,
.footer {
  font-family: "Cake", sans-serif;
  font-weight: 300; /* cakethin */
}

/* Labels de formulaire en bold */
.devis-form label,
.devis-form button,
.devis-form__checkbox {
  font-family: "Cake", sans-serif;
  font-weight: 700;
}

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

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

/* Navigation (apparaît au scroll) */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-hauteur);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  box-shadow: var(--ombre);
  transform: translateY(-100%);
  opacity: 0;
  transition: transform 0.4s ease, opacity 0.4s ease;
  pointer-events: none;
}

.nav--visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.nav__logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.nav__logo-img {
  height: 2.25rem;
  width: auto;
  display: block;
}

.nav__menu {
  margin-left: auto;
}

.nav__spacer,
.nav__toggle {
  display: none;
}


.nav__links {
  display: flex;
  gap: 1.75rem;
  list-style: none;
}

.nav__links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--bleu-fonce);
  transition: color 0.2s;
}

.nav__links a:hover,
.nav__links a:focus-visible {
  color: var(--bleu-clair);
}

.nav__toggle {
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: none;
  background: transparent;
  cursor: pointer;
  border-radius: 8px;
  flex-shrink: 0;
}

.nav__toggle span {
  display: block;
  height: 3px;
  width: 100%;
  background: var(--bleu-fonce);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.nav__toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.nav__toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav__toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Hero plein écran */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: #1a1a1a;
}

.hero__media img,
.hero__media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.25) 0%,
    rgba(0, 0, 0, 0.45) 100%
  );
}
.hero__media img,
.hero__media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  user-select: none;
}


.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 2rem;
}

.hero__logo-heading {
  margin: 0 0 1.5rem;
}

.hero__logo {
  max-height: min(65vh, 520px);
  max-width: 90vw;          /* ← ajoute cette ligne */
  width: auto;
  margin: 0 auto;
  display: block;
  filter: drop-shadow(0 8px 32px rgba(0, 0, 0, 0.35));
  transform: rotate(-90deg);
  opacity: 0;
  animation: fadeIn 1.4s ease 0.3s forwards;
}


@keyframes fadeIn {
  from {
    opacity: 0;
    transform: rotate(-90deg) translateY(24px);
  }
  to {
    opacity: 1;
    transform: rotate(-90deg) translateY(0);
  }
}

@media (max-width: 768px) {
  .hero__logo {
    max-height: 80vw;
  }
}


.hero__tagline {
  font-size: clamp(1rem, 2.5vw, 1.35rem);
  color: rgba(255, 255, 255, 0.92);
  max-width: 32rem;
  margin: 0 auto 2rem;
}

.hero__scroll {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--blanc);
  font-size: 0.85rem;
  opacity: 0.9;
  animation: bounce 2s ease-in-out infinite;
}

.hero__scroll svg {
  width: 28px;
  height: 28px;
}

@keyframes bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(8px);
  }
}

/* Sections */
.section {
  padding: 5rem 1.5rem;
  scroll-margin-top: var(--scroll-offset);
}

.section--alt {
  background: var(--gris-clair);
}

.container {
  max-width: 1100px;
  margin: 0 auto;
}

.section__title {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  color: var(--bleu-fonce);
  margin-bottom: 0.75rem;
  text-align: center;
}

.section__subtitle {
  text-align: center;
  max-width: 36rem;
  margin: 0 auto 3rem;
  color: var(--gris-texte);
}

.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.about__text p + p {
  margin-top: 1rem;
}

.about__stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.stat {
  background: var(--blanc);
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: var(--ombre);
  text-align: center;
}

.stat__number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--bleu-clair);
}

.stat__label {
  font-size: 0.9rem;
  margin-top: 0.25rem;
}

.services__grid {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 960px;
  margin: 0 auto;
}

.service-card {
  display: flex;
  flex-direction: row;
  min-height: 240px;
  background: var(--blanc);
  border-radius: 16px;
  box-shadow: var(--ombre);
  overflow: hidden;
  transition: transform 0.25s, box-shadow 0.25s;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(10, 61, 98, 0.15);
}

.service-card__media {
  flex: 0 0 42%;
  min-height: 0;
  background: linear-gradient(135deg, var(--bleu-fonce) 0%, var(--bleu-clair) 100%);
}

.service-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-card__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1.75rem 2rem;
}

.service-card__body h3 {
  color: var(--bleu-fonce);
  margin-bottom: 0.65rem;
  font-size: 1.2rem;
  line-height: 1.25;
}

.service-card__body p {
  font-size: 0.95rem;
  line-height: 1.55;
}

.zone__content {
  text-align: center;
  max-width: 40rem;
  margin: 0 auto;
}

.zone__list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 1.5rem;
  margin-top: 1.5rem;
}

.zone__list li {
  background: var(--blanc);
  padding: 0.5rem 1.25rem;
  border-radius: 999px;
  font-weight: 500;
  color: var(--bleu-fonce);
  box-shadow: var(--ombre);
}

.section--alt .zone__list li {
  background: var(--gris-clair);
}

.devis-form {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.devis-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.devis-form label {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--bleu-fonce);
  display: block;
  margin-bottom: 0.35rem;
}

.devis-form input,
.devis-form select,
.devis-form textarea {
  padding: 0.75rem 1rem;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font: inherit;
  width: 100%;
  background: var(--blanc);
}

.devis-form__services {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 1rem 1.25rem;
  margin: 0;
  background: var(--blanc);
}

.devis-form__services legend {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--bleu-fonce);
  padding: 0 0.35rem;
}

.devis-form__services-hint {
  font-size: 0.85rem;
  color: var(--gris-texte);
  margin-bottom: 0.75rem;
}

.devis-form__checkboxes {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.devis-form__checkbox {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--bleu-fonce);
  cursor: pointer;
  margin-bottom: 0;
}

.devis-form__checkbox input[type="checkbox"] {
  width: 1.1rem;
  height: 1.1rem;
  margin: 0;
  accent-color: var(--bleu-clair);
  cursor: pointer;
  flex-shrink: 0;
}

.devis-form__services-error {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: #c53030;
}

.devis-form__services--invalid {
  border-color: #fc8181;
  outline: 1px solid #fc8181;
}

.devis-form input:focus,
.devis-form select:focus,
.devis-form textarea:focus {
  outline: 2px solid var(--bleu-clair);
  outline-offset: 0;
  border-color: transparent;
}

.devis-form button {
  padding: 0.9rem 1.5rem;
  background: linear-gradient(135deg, var(--bleu-fonce), var(--bleu-clair));
  color: var(--blanc);
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.2s;
  align-self: flex-start;
}

.devis-form button:hover {
  opacity: 0.95;
  transform: translateY(-1px);
}

.devis-form button:disabled {
  cursor: wait;
  opacity: 0.7;
  transform: none;
}

.devis-form__status {
  min-height: 1.35rem;
  font-size: 0.95rem;
  font-weight: 700;
}

.devis-form__status--info {
  color: var(--bleu-fonce);
}

.devis-form__status--success {
  color: #047857;
}

.devis-form__status--error {
  color: #c53030;
}

.contact__layout {
  display: grid;
  grid-template-columns: minmax(280px, 340px) 1fr;
  gap: 2rem;
  align-items: stretch;
}

.contact__panel {
  background: var(--blanc);
  border-radius: 16px;
  box-shadow: var(--ombre);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact__panel-title {
  font-size: 1.35rem;
  color: var(--bleu-fonce);
  margin: 0;
}

.contact__items {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact__item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1rem 1.25rem;
  border-radius: 12px;
  background: var(--gris-clair);
  transition: background 0.2s, transform 0.2s;
}

.contact__item:hover {
  background: #edf6ff;
  transform: translateX(4px);
}

.contact__item-label {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--gris-texte);
}

.contact__item-value {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--bleu-clair);
  word-break: break-word;
}

.contact__zone-note {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid #e2e8f0;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--gris-texte);
}

.contact__map-wrap {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.contact__map {
  width: 100%;
  height: 100%;
  min-height: 480px;
  border-radius: 16px;
  box-shadow: var(--ombre);
  z-index: 0;
}

.contact__map .leaflet-control-attribution {
  font-size: 0.7rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer {
  background: var(--bleu-fonce);
  color: rgba(255, 255, 255, 0.85);
  text-align: center;
  padding: 2rem 1.5rem;
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  .nav {
    display: grid;
    grid-template-columns: 44px 1fr 44px;
    align-items: center;
    height: var(--nav-hauteur);
    padding: 0 1rem;
  }

  .nav__toggle {
    display: flex;
    grid-column: 1;
    justify-self: start;
  }

  .nav__logo {
    grid-column: 2;
    justify-self: center;
  }

  .nav__logo-img {
    height: 2rem;
    max-width: min(70vw, 280px);
    object-fit: contain;
  }

  .nav__spacer {
    display: block;
    grid-column: 3;
    width: 44px;
  }

  .nav__menu {
    position: absolute;
    inset: 0;
    margin-left: 0;
    pointer-events: none;
  }

  .nav__links {
    pointer-events: auto;
    position: fixed;
    top: var(--nav-hauteur);
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--blanc);
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
    box-shadow: var(--ombre);
  }

  .nav__links--open {
    max-height: 400px;
    padding: 0.5rem 0 1rem;
  }

  .nav__links li {
    border-bottom: 1px solid #edf2f7;
  }

  .nav__links a {
    display: block;
    padding: 1rem 1.5rem;
    font-size: 1.05rem;
  }

  /* Sections */
  .section {
    padding: 3rem 1.1rem;
  }

  /* À propos & contact */
  .about__grid,
  .contact__layout,
  .devis-form__row {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  /* Stats 2x2 → 1 colonne sur très petits écrans */
  .about__stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }

  .stat {
    padding: 1.1rem;
  }

  .stat__number {
    font-size: 1.6rem;
  }

  /* Carte */
  .contact__map {
    min-height: 300px;
  }

  /* Services */
  .services__grid {
    gap: 1.25rem;
  }

  .service-card {
    flex-direction: column;
    min-height: unset;
  }

  .service-card__media {
    flex: none;
    width: 100%;
    height: 220px;
  }

  .service-card__body {
    padding: 1.25rem 1.5rem;
  }

  /* Formulaire devis */
  .devis-form button {
    width: 100%;
    align-self: stretch;
    text-align: center;
  }

  /* Hero logo sur mobile */
  .hero__logo {
    max-height: 55vw;
    max-width: 85vw;
  }

  .hero__tagline {
    font-size: 0.95rem;
    padding: 0 0.5rem;
  }

  .hero__content {
    padding: 1.25rem;
  }
}

/* Très petits écrans (< 400px) */
@media (max-width: 400px) {
  .section {
    padding: 2.5rem 1rem;
  }

  .about__stats {
    grid-template-columns: 1fr 1fr;
  }

  .service-card__media {
    height: 180px;
  }

  .section__title {
    font-size: 1.5rem;
  }

  .hero__logo {
    max-height: 50vw;
  }

  .contact__map {
    min-height: 260px;
  }

  .devis-form input,
  .devis-form select,
  .devis-form textarea {
    font-size: 1rem; /* évite le zoom auto sur iOS */
  }
}
