/* ============================================
   VARIABLES & BASE
============================================ */
:root {
  --blanc: #ffffff;
  --noir: #111111;
  --gris-clair: #f5f5f5;
  --gris: #888888;
  --gris-fonce: #494948;
  --accent: #111111;
  --font-titre: 'Yanone Kaffeesatz', 'Arial Narrow', sans-serif;
  --font-corps: 'Inter', sans-serif;
  --max-width: 900px;
  --padding-section: 60px 20px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

html, body {
  width: 100%;
  background: var(--blanc);
  color: var(--noir);
  font-family: var(--font-corps);
  font-size: 16px;
  line-height: 1.6;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

h2 {
  font-family: var(--font-titre);
  font-size: 2.2rem;
  font-weight: 600;
  margin-bottom: 30px;
  letter-spacing: 0.02em;
}

h3 {
  font-family: var(--font-titre);
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  line-height: 1.2;
  color: var(--noir);
}

h4 {
  font-family: var(--font-titre);
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--noir);
}

/* ============================================
   SECTION 1 : BANNIÈRE
============================================ */
.banner {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 16;
  overflow: hidden;
}

.video-wrapper {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.video-wrapper video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.video-wrapper .poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  z-index: 2;
  transition: opacity 0.4s ease;
}

.video-wrapper .poster.hidden {
  opacity: 0;
  pointer-events: none;
}

/* Overlay par-dessus la vidéo */
.banner-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 28px 24px 36px;
}

/* Logo + titre en haut à gauche */
.banner-top {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
}

.logo {
  width: 30px;
  height: auto;
}

.site-title {
  font-family: var(--font-titre);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--gris-fonce);
  letter-spacing: 0.04em;
  /*text-shadow: 0 1px 8px rgba(0,0,0,0.4);*/
  line-height: 1.1;
}

/* Bouton en bas */
.banner-bottom {
  display: flex;
  justify-content: center;
  margin-bottom: 40%;
}

.btn-main {
  display: inline-block;
  background: var(--gris);
  color: var(--blanc);
  font-family: var(--font-titre);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 8px 32px;
  border-radius: 30px;
  border: 2px solid #494948;
  transition: background 0.2s, color 0.2s;
}

.btn-main:hover {
  background: var(--noir);
  color: var(--blanc);
}

/* ============================================
   SECTION 2 : PRÉSENTATION
============================================ */
/* === Réglages image de présentation — ajustez ces 2 valeurs === */
:root {
  --photo-largeur: 250px;   /* largeur en % de la section image */
  --photo-hauteur: auto;   /* hauteur en % de la section image */
  --texte-largeur: 70%; /* largeur en % de la section titres */
}

.section-presentation {
  padding: var(--padding-section);
  background: var(--gris-clair);
  position: relative;
  overflow: hidden;
  isolation: isolate; /* crée un contexte d'empilement propre */
}

/* Image positionnée à gauche, derrière le texte */
.photo-profil {
  position: absolute;
  top: 75%;
  left: -70px; /* compense le padding du .container */
  transform: translateY(-50%) translateX(-60px);
  width: var(--photo-largeur);
  height: var(--photo-hauteur);
  object-fit: cover;
  object-position: center;
  border-radius: 0;
  z-index: 1;
  opacity: 0;
  transition: opacity 1s ease, transform 1s ease;
}

.photo-profil.visible {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

/* Conteneur image + titres superposés */
.section-presentation .container {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
}

/* Titres en haut à droite, par-dessus l'image */
.presentation-titres {
  width: var(--texte-largeur);
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  padding: 24px 10px;
  border-radius: 4px;
  position: relative;
  z-index: 3;
}

.presentation-titres h2 {
  font-family: var(--font-titre);
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 6px;
  letter-spacing: 0.02em;
  text-align: end;
}

.presentation-titres h3 {
  font-family: var(--font-titre);
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--gris);
  letter-spacing: 0.02em;
  text-align: end;
}

/* Texte pleine largeur sous l'image et les titres */
.presentation-texte {
  padding: 0px 20px;
  max-width: var(--max-width);
  margin: 0 auto;
  margin-top: 170px;
}

.presentation-texte p {
  font-size: 0.8rem;
  color: var(--noir);
  line-height: 1.6;
  text-align: justify;
}

.section-avis {
  padding: var(--padding-section);
  background: var(--blanc);
}

.avis-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
}

.google-logo {
  width: 32px;
  height: 32px;
}

.etoiles {
  color: #FBBC04;
  font-size: 1.4rem;
  letter-spacing: 2px;
}

.avis-note {
  font-size: 0.85rem;
  color: var(--gris);
  margin-top: 2px;
}

.avis-liste {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.avis-item {
  background: var(--blanc);
  border-radius: 4px;
  padding: 20px;
  border-left: 3px solid #FBBC04;
}

.avis-texte {
  font-size: 0.8rem;
  line-height: 1.6;
  color: var(--noir);
  font-style: italic;
  margin-bottom: 8px;
}

.avis-auteur {
  font-size: 0.8rem;
  color: var(--gris);
  font-family: var(--font-titre);
  letter-spacing: 0.04em;
}

.btn-avis {
  display: inline-block;
  font-family: var(--font-titre);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--noir);
  text-decoration: none;
  padding-bottom: 2px;
  transition: opacity 0.2s;
}

.btn-avis:hover {
  opacity: 0.5;
}

/* ============================================
   SECTION 3 : SERVICES / FORFAITS
============================================ */
.section-services {
  padding: var(--padding-section);
  background: var(--gris-clair);
}

.section-accroche {
  font-family: var(--font-titre);
  font-size: 1.2rem;
  font-weight: 300;
  color: var(--gris);
  letter-spacing: 0.04em;
  margin-bottom: 28px;
  margin-top: -16px; /* resserre avec le h2 */
}

.forfaits {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.forfait {
  background: var(--blanc);
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.forfait h4 {
  font-family: var(--font-titre);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.forfait-accroche {
  font-family: var(--font-titre);
  font-size: 1rem;
  font-weight: 300;
  font-style: italic;
  color: var(--gris);
  letter-spacing: 0.04em;
  border-left: 2px solid var(--noir);
  padding-left: 10px;
  margin: 4px 0 8px;
}

.forfait .prix {
  font-size: 1.4rem;
  font-weight: 500;
}

.forfait .description {
  font-size: 0.9rem;
  color: var(--gris);
  line-height: 1.6;
}

.forfait-liste {
  list-style: none;
  padding: 0;
  margin: 0 0 8px 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.forfait-liste li {
  font-size: 0.9rem;
  color: var(--noir);
  padding-left: 16px;
  position: relative;
}

.forfait-liste li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--gris);
}

.btn-forfait {
  display: inline-block;
  margin-top: 8px;
  background: var(--noir);
  color: var(--blanc);
  font-family: var(--font-titre);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 12px 24px;
  border-radius: 2px;
  text-align: center;
  transition: opacity 0.2s;
}

.btn-forfait:hover {
  opacity: 0.75;
}

.logiciels-section {
  margin-top: 40px;
  text-align: center;
}

.logiciels-titre {
  font-family: var(--font-titre);
  font-size: 1rem;
  font-weight: 300;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gris);
  margin-bottom: 16px;
}

.logiciels {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 20px;
}

.logiciel-item {
  height: 32px;
  width: auto;
  object-fit: contain;
  filter: grayscale(100%) drop-shadow(0px 1px 3px rgba(0,0,0,0.4));
  opacity: 0.5;
  transition: filter 0.3s, opacity 0.3s;
}

.logiciels a:active .logiciel-item {
  filter: grayscale(0%) drop-shadow(0px 1px 3px rgba(0,0,0,0.4));
  opacity: 1;
}

/* ============================================
   SECTION 4 : RÉALISATIONS & MARQUES
============================================ */
.section-realisations {
  padding: var(--padding-section);
  background: var(--blanc);
}

.carousel {
  width: 100%;
  overflow-x: scroll;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.carousel::-webkit-scrollbar {
  display: none;
}

.carousel-track {
  display: flex;
  gap: 12px;
}

.galerie-item {
  flex-shrink: 0;
  width: 80vw;
  max-width: calc(480px * 0.83);
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 4px;
  scroll-snap-align: start;
  cursor: pointer;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 20px;
  margin-bottom: 60px;
}

.dot {
  width: 20px;
  height: 2px;
  background: var(--gris);
  border-radius: 2px;
  transition: background 0.3s, width 0.3s;
}

.dot.actif {
  background: var(--noir);
  width: 32px;
}

.marques {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  justify-content: center;
}

.marque-item {
  height: 40px;
  width: auto;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.6;
  transition: filter 0.3s, opacity 0.3s;
}

.marque-item.actif {
  filter: grayscale(0%);
  opacity: 1;
}

.marques a {
  display: inline-flex;
  outline: none;
}

.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0);
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.3s ease, backdrop-filter 0.3s ease;
}

.lightbox.visible {
  display: flex;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

#lightbox-img {
  max-width: 92%;
  max-height: 88vh;
  object-fit: contain;
  border-radius: 4px;
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.lightbox.visible #lightbox-img {
  opacity: 1;
  transform: scale(1);
}

/* ============================================
   SECTION 5 : CONTACT & RÉSEAUX
============================================ */
.section-contact {
  padding: var(--padding-section);
  background: var(--gris-clair);
  text-align: center;
}

.section-contact p {
  margin-bottom: 30px;
  color: var(--gris);
  font-size: 0.9em;
}

.lien-rdv {
  color: var(--noir);
  font-weight: 500;
  text-decoration: none;
  padding-bottom: 1px;
  transition: opacity 0.2s;
}

.lien-rdv:active {
  opacity: 0.5;
}

.reseaux {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 50px;
}

.reseau-lien {
  font-family: var(--font-titre);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--noir);
  text-decoration: none;
  border-bottom: 2px solid var(--noir);
  padding-bottom: 2px;
  transition: opacity 0.2s;
}

.reseau-lien:hover {
  opacity: 0.5;
}

/* ============================================
   FOOTER
============================================ */
.footer {
  background: var(--noir);
  color: var(--blanc);
  padding: 30px 20px;
  text-align: center;
}

.footer .container {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
}

.footer p {
  font-size: 0.85rem;
  color: var(--gris);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.footer-nav a {
  font-size: 0.8rem;
  color: var(--gris);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-nav a:hover {
  color: var(--blanc);
}

.whatsapp-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 50;
  width: 50px;
  height: 50px;
  background: rgba(80, 80, 80, 0.50);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.whatsapp-btn:active {
  transform: scale(0.93);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.whatsapp-btn img {
  width: 28px;
  height: 28px;
  filter: brightness(0) invert(1);
}

.email-protect {
  font-style: italic;
  cursor: pointer;
  border-bottom: 1px dashed var(--gris);
  transition: color 0.2s;
}

.email-protect.revealed {
  font-style: normal;
  border-bottom: 1px solid var(--noir);
}

@media (min-width: 480px) {
  body {
    background: var(--gris-fonce);
  }

  body > * {
    max-width: 480px;
    margin: 0 auto;
  }

  .carousel {
    max-width: 480px;
    margin: 0 auto;
  }
}

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  background: rgba(20, 20, 20, 0.3);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: var(--blanc);
  padding: 25px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  z-index: 200;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.cookie-banner.masque {
  transform: translateX(-50%) translateY(100%);
  opacity: 0;
  pointer-events: none;
}

.cookie-banner p {
  font-size: 0.68rem;
  line-height: 1.4;
  color: rgba(255,255,255,0.8);
}

.cookie-banner p a {
  color: var(--blanc);
  text-underline-offset: 2px;
}

.cookie-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.cookie-btn {
  font-family: var(--font-titre);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border: none;
  border-radius: 2px;
  padding: 8px 14px;
  cursor: pointer;
  transition: opacity 0.2s;
}

.cookie-btn.refuser {
  background: transparent;
  color: rgba(255,255,255,0.6);
  border: 1px solid rgba(255,255,255,0.3);
}

.cookie-btn.accepter {
  background: var(--blanc);
  color: var(--noir);
}

.cookie-btn:active {
  opacity: 0.7;
}

.webview-banner {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  background: var(--noir);
  color: var(--blanc);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  z-index: 300;
  transition: opacity 0.3s ease;
}

.webview-banner.masque {
  opacity: 0;
  pointer-events: none;
}

.webview-banner p {
  font-size: 0.8rem;
  line-height: 1.5;
  color: rgba(255,255,255,0.85);
}

.webview-banner button {
  font-family: var(--font-titre);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: var(--blanc);
  color: var(--noir);
  border: none;
  border-radius: 2px;
  padding: 8px 14px;
  cursor: pointer;
  flex-shrink: 0;
}