:root {
  --blue: #002c5b;
  --blue-dark: #001b38;
  --panel-blue: #033a73;
  --gold: #f2a322;
  --text-light: #ffffff;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Montserrat", sans-serif;
  color: var(--text-light);
  background-color: var(--blue-dark); /* fallback si la vidéo ne charge pas */
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Anta pour les éléments identitaires */
h1,
h2,
h3,
.nav-link,
.nav-logo,
.cta {
  font-family: "Anta", sans-serif;
}

/* --------- TOPBAR / MENU --------- */

header.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;

  background: rgba(0, 27, 56, 0.30); /* un poil moins opaque */
  backdrop-filter: blur(6px);        /* réduit (10px → 6px) */
  -webkit-backdrop-filter: blur(6px);

  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
  box-shadow: 0 2px 12px rgba(0,0,0,0.20); /* ombre plus courte */
  
  z-index: 1000;
}


.nav {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
}

.nav-group {
  display: flex;
  gap: 24px;
  align-items: center;
}

.nav-link {
  text-decoration: none;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  position: relative;
  padding-bottom: 4px;
}

.nav-link,
.nav-link:visited {
  color: var(--text-light);
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0%;
  height: 2px;
  background: var(--gold);
  transition: width 0.2s ease;
}

.nav-link:hover::after {
  width: 100%;
}

.nav-logo img {
  height: 40px;
  width: auto;
  display: block;
}

@media (max-width: 800px) {
  .nav {
    flex-direction: column;
    gap: 16px;
    padding: 16px 0;
  }

  .nav-group {
    gap: 16px;
  }

  .nav-link {
    font-size: 0.85rem;
  }

  .nav-logo img {
    height: 38px;
  }
}

/* --------- HERO VIDÉO PLEIN ÉCRAN (INDEX) --------- */

.hero-video {
  position: relative;
  flex: 1;
  width: 100%;
  min-height: calc(100vh - 90px); /* hauteur écran moins la navbar */
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

#bg-video {
  position: fixed;            /* au lieu de absolute */
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  transform: translate(-50%, -50%);
  object-fit: cover;
  filter: brightness(0.4);    /* assombrit un peu pour la lisibilité */
  z-index: -1;                /* passe derrière tout le contenu */
}


/* Contenu par-dessus la vidéo (INDEX) */
.layout {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1200px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  text-align: center;
}

.panel {
  border-radius: 24px;
  padding: 12px 20px 20px;
  background: transparent; /* pas de gros bloc, juste le contenu flottant */
}

.left-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.logo {
  max-width: 350px;
  width: 90%;
  height: auto;
  margin-bottom: 24px;
}

.baseline-main {
  font-size: 1.05rem;
  margin-bottom: 20px;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.7);
}

.socials {
  display: flex;
  gap: 18px;
  justify-content: center;
  flex-wrap: nowrap;
}

.socials img {
  width: 80px;
  height: 80px;
  filter: drop-shadow(0 0 6px rgba(0, 0, 0, 0.7));
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.socials img:hover {
  transform: scale(1.15);
  opacity: 0.85;
}

.cta-wrapper {
  display: flex;
  justify-content: center;
}

.cta {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 999px;
  text-decoration: none;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  background: var(--gold);
  color: #1a1a1a;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.6);
  transition: transform 0.1s ease, box-shadow 0.1s ease, background 0.1s ease;
}

.cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.65);
  background: #ffc25a;
}

@media screen and (min-width: 900px) {
  .layout {
    flex-direction: column; /* on garde tout centré en colonne, c'est ton identité */
  }
}

/* --------- BANDEAU BAS GLOBAL --------- */

/* --------- FOOTER TRANSLUCIDE --------- */

/* --------- FOOTER STYLE NAVBAR --------- */

.bottom-bar {
  width: 100%;
  background: rgba(0, 27, 56, 0.30);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);

  border-top: 1px solid rgba(255, 255, 255, 0.10);
  box-shadow: 0 -2px 12px rgba(0,0,0,0.20);

  text-align: center;
  font-size: 0.85rem;
  padding: 14px 10px 16px;

  position: relative;
  z-index: 1000;
}


.bottom-bar a {
  color: var(--text-light);
  text-decoration: none;
  border-bottom: 1px dotted rgba(255, 255, 255, 0.5);
  transition: 0.2s ease;
}

.bottom-bar a:hover {
  border-bottom-style: solid;
  opacity: 0.85;
}



/* MARGE SOUS LA NAVBAR POUR TOUTES LES PAGES INTERNES */
body.page-apropos,
body.page-contact,
body.page-portfolio,
body.page-merci {
    padding-top: 75px; /* Ajuste la valeur si besoin */
}


/* ================================================= */
/*                 PAGES INTERNES                    */
/* ================================================= */

/* ---------- PAGE A PROPOS ---------- */

body.page-apropos {
  background-color: var(--blue);
}

body.page-apropos .layout {
  flex: 1;
  max-width: 1000px;
  margin: 0 auto;
  padding: 32px 20px 24px;
  display: flex;
  align-items: stretch;
  text-align: left;
}

body.page-apropos .panel {
  width: 100%;
  background: var(--panel-blue);
  border-radius: 24px;
  padding: 32px 28px;
  line-height: 1.7;
  font-size: 1rem;
  opacity: 0.96;
}

body.page-apropos .right-panel {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

body.page-apropos .right-header h1 {
  font-size: 2rem;
  margin-bottom: 12px;
}

body.page-apropos .right-header h2 {
  font-size: 1.4rem;
  margin-top: 16px;
  margin-bottom: 12px;
}

body.page-apropos .intro-text {
  font-size: 1rem;
  margin-bottom: 6px;
}

body.page-apropos .services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

@media (max-width: 900px) {
  body.page-apropos .services-grid {
    grid-template-columns: 1fr;
  }
}

body.page-apropos .service-card {
  background: rgba(0, 0, 0, 0.12);
  border-radius: 16px;
  padding: 16px 18px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

body.page-apropos .service-card h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

/* ---------- PAGE CONTACT ---------- */

body.page-contact {
  background-color: var(--blue);
}

body.page-contact .layout {
  flex: 1;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: 32px 20px 24px;
  display: flex;
  align-items: stretch;
  text-align: left;
}

body.page-contact .panel {
  background: var(--panel-blue);
  border-radius: 24px;
  padding: 32px 28px;
  width: 100%;
  opacity: 0.96;
}

body.page-contact .panel h1 {
  font-size: 2rem;
  margin-bottom: 10px;
  text-align: center;
}

body.page-contact .contact-intro {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 16px;
  line-height: 1.6;
  opacity: 0.9;
  font-size: 0.98rem;
}

body.page-contact .contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 10px;
}

body.page-contact .field-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
}

body.page-contact .field-group label {
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.9;
}

body.page-contact .field-group input,
body.page-contact .field-group textarea {
  padding: 10px 12px;
  border-radius: 10px;
  border: none;
  font-family: inherit;
  font-size: 0.95rem;
  color: #102030;
}

body.page-contact .field-group textarea {
  resize: vertical;
  min-height: 140px;
}

body.page-contact .cta {
  display: inline-block;
  padding: 13px 30px;
  border-radius: 999px;
  background-color: var(--gold);
  color: #102030;
  text-decoration: none;
  font-size: 1rem;
  letter-spacing: 0.03em;
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.35);
  border: none;
  cursor: pointer;
  align-self: flex-start;
  margin-top: 8px;
}

body.page-contact .cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.45);
  opacity: 0.95;
}

body.page-contact .contact-extra {
  font-size: 0.85rem;
  opacity: 0.85;
  margin-top: 10px;
  text-align: left;
}

body.page-contact .contact-extra a {
  color: var(--gold);
  text-decoration: none;
  border-bottom: 1px dotted rgba(242, 163, 34, 0.6);
}

body.page-contact .contact-extra a:hover {
  border-bottom-style: solid;
}

/* ---------- PAGE PORTFOLIO ---------- */

body.page-portfolio {
  background-color: var(--blue);
}

body.page-portfolio .layout {
  flex: 1;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 40px;
  text-align: left;
}

body.page-portfolio h1 {
  font-size: 2.2rem;
  margin-bottom: 6px;
  text-align: center;
}

body.page-portfolio .subtitle {
  text-align: center;
  opacity: 0.85;
  font-size: 1rem;
  margin-bottom: 4px;
}

body.page-portfolio .hint {
  text-align: center;
  font-size: 0.85rem;
  opacity: 0.8;
  margin-bottom: 16px;
}

/* SLIDERS */

body.page-portfolio .slider-box {
  background: var(--panel-blue);
  padding: 28px;
  border-radius: 24px;
}

body.page-portfolio .slider-box h2 {
  margin-bottom: 16px;
  text-align: left;
  font-size: 1.5rem;
  color: var(--gold);
}

body.page-portfolio .slider {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
}

body.page-portfolio .slides {
  display: flex;
  width: 300%;
  transition: transform 0.5s ease;
}

body.page-portfolio .slide {
  width: 100%;
  flex-shrink: 0;
  text-align: center;
  background: #0003;
  padding: 20px;
}

body.page-portfolio .slide iframe,
body.page-portfolio .slide video,
body.page-portfolio .slide img {
  width: 100%;
  max-height: 420px;
  border-radius: 12px;
  object-fit: cover;
}

body.page-portfolio .nav-buttons {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 16px;
}

body.page-portfolio .nav-btn {
  width: 16px;
  height: 16px;
  background: #ffffff55;
  border-radius: 50%;
  cursor: pointer;
  transition: 0.3s;
}

body.page-portfolio .nav-btn.active {
  background: var(--gold);
  transform: scale(1.2);
}

/* ---------- PAGE MERCI ---------- */

body.page-merci {
  background-color: var(--blue);
}

body.page-merci .layout {
  flex: 1;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: 32px 20px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

body.page-merci .panel {
  background: var(--panel-blue);
  border-radius: 24px;
  padding: 32px 28px;
  line-height: 1.7;
  font-size: 1rem;
  opacity: 0.97;
  width: 100%;
}

body.page-merci .panel h1 {
  font-size: 2rem;
  margin-bottom: 16px;
}

body.page-merci .panel p {
  max-width: 620px;
  margin: 0 auto 8px;
}

body.page-merci .cta {
  display: inline-block;
  margin-top: 20px;
  padding: 13px 30px;
  border-radius: 999px;
  background-color: var(--gold);
  color: #102030;
  text-decoration: none;
  font-size: 1rem;
  letter-spacing: 0.03em;
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.35);
  border: none;
  cursor: pointer;
}

body.page-merci .cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.45);
  opacity: 0.95;
}
