/* =========================
   BASE
========================= */
:root{
  --bg:#2b2b2b;
  --text:#f1f1f1;
  --orange:#ff7a1a;
  --orangeLight:#ffae66;

  --headerH:380px;
  --tabsH:84px;
  --sideW:250px;

  --tabsFont:20px;
}

*{ box-sizing:border-box; }

body{
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
}

/* =========================
   HEADER (photo + voile + logo + phrase)
========================= */
.header{
  position: relative;
  height: 55vh;
  max-height: 450px;
  background: url("assets/photo-entete.jpg") center/cover no-repeat;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  overflow: hidden;
}

.header::after{
  content:"";
  position:absolute;
  inset:0;
  background: rgba(0,0,0,0.60);
  z-index:1;
}

.header .logo{
  position: relative;
  z-index: 2;
  max-height: 400px;
  width: auto;
  max-width: 80%;
  margin: 0;
  display: block;
}

.header .tagline{
  position: relative;
  z-index: 2;
  margin: 0;
  text-align: center;
  font-weight: bold;
  font-style: italic;
  color: #fff;
}

/* =========================
   ONGLET ORANGE
========================= */
nav.tabs{
  display: flex;
  justify-content: center;
  background: var(--orange);
  margin: 0;
  padding: 8px 0;
  width: 100%;
  position: relative;
  z-index: 1000;
  font-size: var(--tabsFont);
}

nav.tabs > a.tab{
  padding: 12px 30px;
  font-weight: 700;
  font-size: 1em;
  line-height: 1;
  color: #2b2b2b;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
}

nav.tabs > a.tab:hover{
  background: rgba(0,0,0,0.1);
}

/* =========================
   COLONNES (vidéos / carte / infos)
========================= */
.side{
  position: fixed;
  top: calc(var(--headerH) + var(--tabsH));
  bottom: 0;
  width: var(--sideW);
  background: var(--bg);
  overflow: hidden;
  z-index: 20;
}

.side.left{ left: 0; }
.side.right{ right: 0; }

.side-video{
  display: block;
  width: 100%;
  height: 300px;
  margin: 0;
  padding: 0;
  object-fit: cover;
  object-position: center;
}

/* Carte (page contact) */
.side-map{
  padding: 0;
  overflow: hidden;
}

.map-iframe{
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* Colonne infos (page contact) */
.side-info{
  padding: 12px;
  overflow: hidden;
}

.side-box{
  height: 100%;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 10px;
  padding: 14px;
}

.side-box h3{
  margin: 0 0 8px;
  color: var(--orangeLight);
  font-size: 16px;
}

.side-box p{
  margin: 0 0 14px;
  color: #e6e6e6;
  line-height: 1.4;
}

/* =========================
   CONTENU CENTRAL
========================= */
.content{
  margin-left: var(--sideW);
  margin-right: var(--sideW);
  padding: 20px;
  background: var(--bg);
}

/* =========================
   TITRE DE PAGE
========================= */
.page-title{
  text-align: center;
  font-size: 42px;
  font-weight: 700;
  margin: 40px 0 60px;
  color: #fff;
  position: relative;
}

.page-title::after{
  content: "";
  display: block;
  width: 280px;
  height: 4px;
  background: var(--orange);
  margin: 15px auto 0;
  border-radius: 2px;
}

/* =========================
   TEXTE + TRAIT ORANGE
========================= */
.history-wrap{
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 20px 40px 40px;
  line-height: 1.7;
}

.history-wrap::before{
  content: "";
  position: absolute;
  left: 0;
  top: 40px;
  bottom: 40px;
  width: 6px;
  background: var(--orange);
  border-radius: 3px;
}

/* =========================
   FORMULAIRE CONTACT
========================= */
.contact-form{
  max-width: 750px;
  margin: 30px auto;
  background: rgba(255,255,255,0.03);
  padding: 30px;
  border-radius: 10px;
}

.form-group{
  display: flex;
  flex-direction: column;
  margin-bottom: 18px;
}

.form-group label{
  margin-bottom: 6px;
  font-weight: 750;
}

.form-group input,
.form-group textarea{
  padding: 10px;
  border-radius: 6px;
  border: none;
  font-size: 15px;
}

.form-group input[type="file"]{
  padding: 6px;
  background: #fff;
}

.btn-submit{
  background: var(--orange);
  color: #2b2b2b;
  border: none;
  padding: 12px 20px;
  font-size: 16px;
  font-weight: bold;
  border-radius: 6px;
  cursor: pointer;
}

.btn-submit:hover{
  background: var(--orangeLight);
}

/* =========================
   Mentions légales / pages texte
========================= */
.legal-wrap{
  position: relative;
  max-width: 900px;
  margin: 40px auto;
  padding: 40px 30px 40px 50px;
  line-height: 1.8;
}

.legal-wrap::before{
  content: "";
  position: absolute;
  left: 20px;
  top: 40px;
  bottom: 40px;
  width: 6px;
  background: var(--orange);
  border-radius: 3px;
}

.legal-wrap h1{
  margin-top: 0;
  font-size: 28px;
}

.legal-wrap h2{
  margin-top: 30px;
  color: var(--orangeLight);
}

/* =========================
   FOOTER GLOBAL
========================= */
.footer{
  width: 100%;
  margin-top: 30px;
  padding: 18px 12px;
  background: var(--bg);
  display: flex;
  justify-content: center;
}

.footer .footer-box{
  border: 2px solid var(--orange);
  color: var(--orange);
  padding: 12px 18px;
  border-radius: 10px;
  text-align: center;
  font-weight: bold;
  line-height: 1.4;
  max-width: 700px;
  width: calc(100% - 40px);
}

.footer a{
  color: var(--orange);
  text-decoration: none;
}

.footer a:hover{
  text-decoration: underline;
}

/* =========================
   PRESTATIONS
========================= */
.services{
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 20px;
}

.service{
  display: flex;
  align-items: center;
  gap: 40px;
  margin-bottom: 60px;
}

.service.reverse{
  flex-direction: row-reverse;
}

.service-img{
  flex: 1;
}

.service-img img{
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: 8px;
}

.service-text{
  flex: 1;
  position: relative;
  padding-left: 25px;
}

.service-text::before{
  content: "";
  position: absolute;
  left: 0;
  top: 5px;
  bottom: 5px;
  width: 4px;
  background: var(--orange);
  border-radius: 2px;
}

.service-text h2{
  margin: 0 0 10px;
  color: #fff;
  font-size: 22px;
}

.service-text p{
  margin: 0;
  color: #ddd;
  line-height: 1.6;
}

@media (max-width: 900px){
  .service,
  .service.reverse{
    flex-direction: column;
  }

  .service-img img{
    height: 220px;
  }
}

/* =========================
   GALERIE
========================= */
.gallery{
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 60px;
}

.gallery img{
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 8px;
  border: 3px solid var(--orange);
  transition: transform .3s ease, box-shadow .3s ease;
}

.gallery img:hover{
  transform: scale(1.03);
  box-shadow: 0 10px 25px rgba(0,0,0,.4);
}
/* =========================
   RESPONSIVE MOBILE / TABLETTE
========================= */
@media (max-width: 900px){

  :root{
    --sideW: 0px;        /* plus de marges latérales */
    --tabsFont: 16px;    /* onglets plus petits */
  }

  /* Contenu central pleine largeur */
  .content{
    margin-left: 0;
    margin-right: 0;
    padding: 16px;
  }

  /* Header plus compact */
  .header{
    height: 38vh;
    max-height: 320px;
  }
  .header .logo{
    max-height: 220px;
    max-width: 85%;
  }
  .header .tagline{
    padding: 0 14px;
    font-size: 14px;
  }

  /* Tabs: on autorise le retour à la ligne */
  nav.tabs{
    flex-wrap: wrap;
    gap: 6px;
    padding: 10px 10px;
  }
  nav.tabs > a.tab{
    padding: 10px 14px;
    font-size: 1em;
    justify-content: center;
  }

  /* Par défaut: on enlève les colonnes fixes (vidéos) */
  .side{
    position: static;
    top: auto;
    bottom: auto;
    width: 100%;
    height: auto;
    z-index: auto;
  }

  /* Colonnes vidéo (accueil) -> on les masque sur mobile */
  .side:not(.side-map):not(.side-info){
    display: none;
  }

  /* Page Contact : on affiche carte + infos en pleine largeur */
  .side-map{
    display: block;
    height: 260px;      /* hauteur de carte sur mobile */
    padding: 0;
    margin: 0;
  }
  .side-info{
    display: block;
    padding: 12px 16px 0;
  }
  .side-box{
    height: auto;
  }

  /* Titres plus adaptés */
  .page-title{
    font-size: 30px;
    margin: 24px 0 36px;
  }
  .page-title::after{
    width: 180px;
  }

  /* Texte avec trait orange: moins de padding */
  .history-wrap{
    padding: 28px 16px 28px 26px;
  }
  .history-wrap::before{
    top: 28px;
    bottom: 28px;
    width: 5px;
  }

  .legal-wrap{
    padding: 28px 16px 28px 26px;
  }
  .legal-wrap::before{
    left: 10px;
    top: 28px;
    bottom: 28px;
    width: 5px;
  }

  /* Galerie: vignettes plus petites */
  .gallery{
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 14px;
  }
  .gallery img{
    height: 170px;
  }

  /* Prestations: déjà en colonne <900px chez toi, on affine juste */
  .services{
    padding: 24px 16px;
  }
  .service{
    gap: 18px;
    margin-bottom: 34px;
  }
  .service-img img{
    height: 200px;
  }

  /* Footer: un peu plus compact */
  .footer{
    padding: 14px 10px;
  }
  .footer .footer-box{
    padding: 10px 12px;
  }
}

/* Extra petit mobile */
@media (max-width: 420px){
  nav.tabs > a.tab{
    width: 100%;
  }
  .header .logo{
    max-height: 180px;
  }
}
.photos {
  position: relative;
}
.photos img {
  position: relative;
}
/* Légendes au survol - Galerie */
.gallery .shot{
  position: relative;
  margin: 0;
  border-radius: 8px;
  overflow: hidden;
}

.gallery .shot img{
  display: block;
  width: 100%;
  height: 220px;
  object-fit: cover;
  border: 3px solid var(--orange);
  border-radius: 8px;
  transition: transform .3s ease, box-shadow .3s ease;
}

.gallery .shot:hover img{
  transform: scale(1.03);
  box-shadow: 0 10px 25px rgba(0,0,0,.4);
}

/* =========================
   GALERIE – LÉGENDES PRO
========================= */
.gallery .shot{
  position: relative;
  margin: 0;
  border-radius: 8px;
  overflow: hidden;
}

/* Image */
.gallery .shot img{
  display: block;
  width: 100%;
  height: 220px;
  object-fit: cover;
  border: 3px solid var(--orange);
  border-radius: 8px;
  transition: transform .3s ease, box-shadow .3s ease;
}

/* Effet zoom desktop */
.gallery .shot:hover img{
  transform: scale(1.03);
  box-shadow: 0 10px 25px rgba(0,0,0,.4);
}

/* Légende */
.gallery .shot::after{
  content: attr(data-cap);
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 10px 12px;
  background: rgba(0,0,0,0.75);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  line-height: 1.3;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .25s ease, transform .25s ease;
  pointer-events: none;
}

/* Desktop : apparition au survol */
.gallery .shot:hover::after{
  opacity: 1;
  transform: translateY(0);
}

/* =========================
   MOBILE : légende TOUJOURS visible
========================= */
@media (max-width: 900px){
  .gallery .shot::after{
    opacity: 1;
    transform: none;
    font-size: 13px;
    padding: 9px 10px;
  }
}
