@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;600&display=swap');


/* ============================= */
/* VARIABLES DE COULEUR */
/* ============================= */
:root {
  --bleu-fonce: #2c3d50;           /* Couleur principale bleu foncé */
  --bleu-hover: #2d6471;           /* Couleur au survol */
  --beige: #f2d3b5;                /* Couleur beige */
  --beige-transparent: rgba(242, 211, 181, 0.4); /* Beige transparent */
  --texte-clair: #ffffff;          /* Texte clair (ex: menu) */
  --texte-fonce: #1d3557;          /* Texte sombre (ex: paragraphes) */
  --fond-section: #f8f9fa;         /* Fond des sections */
  --header-height: 72px;           /* Hauteur du menu */
}

/* ============================= */
/* RESET / BASE */
/* ============================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

body {
  margin: 0;
  padding: 0; /* ← plus de padding-top */
  color: var(--texte-fonce);
  background-color: #fff;
  line-height: 1.6;
  scroll-behavior: smooth;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ============================= */
/* MENU FIXE */
/* ============================= */
header {
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  background: rgba(13, 27, 42, 0.9); /* couleur + transparence */
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  z-index: 10; /* ← au-dessus de la vidéo */
}

header .logo img {
  height: 50px; /* Taille du logo */
}

nav ul { display: flex; gap: 2rem; margin: auto; }
nav ul li a {
  color: var(--texte-clair); /* ← Couleur du texte du menu */
  font-weight: 500;
  transition: color 0.3s;
}
nav ul li a:hover { color: var(--beige); /* ← Couleur au survol */ }

/* ============================= */
/* HERO SECTION */
/* ============================= */
/* ============================= */
/* HERO SECTION - Desktop & Responsive */
/* ============================= */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;       /* Hauteur pleine fenêtre */
  min-height: 500px;   /* Hauteur minimale */
  overflow: hidden;    /* Masque tout dépassement */
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: white;
  background: #1d3557; /* Fond par défaut si vidéo non chargée */
  z-index: 0;          /* Place le hero sous le menu */
}

/* ============================= */
/* VIDÉO DE FOND (Desktop uniquement) */
/* ============================= */
.hero-video {
  position: absolute;
  top: 0;              /* La vidéo touche le haut de l'écran */
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;   /* Recouvre entièrement la section */
  z-index: 0;          /* Sous overlay et logo */
}

/* ============================= */
/* OVERLAY (sombre au-dessus de la vidéo) */
/* ============================= */
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.35); /* ← Couleur overlay sombre */
  z-index: 1;                     /* Entre vidéo et logo */
}

/* ============================= */
/* CONTENEUR DU LOGO / ANIMATION */
/* ============================= */
.hero-logo-container {
  position: relative;
  z-index: 2;          /* Au-dessus de l'overlay */
  max-width: 900px;    /* ← Ajuste ici pour agrandir ou réduire le logo animé */
  width: 90%;
}

/* ============================= */
/* VIDÉO / ANIMATION DU LOGO */
/* ============================= */
.hero-logo-video {
  width: 100%;
  max-width: 900px;    /* ← Taille maximale de l'animation */
  height: auto;
  display: block;
  margin: 0 auto;      /* Centrage horizontal */
}

/* ============================= */
/* RESPONSIVE HERO - Tablette & Mobile */
/* ============================= */
@media (max-width: 991.98px) {
  /* Masque les vidéos sur tablette */
  .hero-video,
  .hero-logo-video { display: none; }

  /* Image de remplacement pour tablette */
  .hero {
    background: url("../images/tablette.png") center center/cover no-repeat;
  }

  /* Overlay masqué sur tablette */
  .hero-overlay { display: none; }
}

@media (max-width: 599.98px) {
  /* Image de remplacement pour mobile */
  .hero {
    background: url("../images/portable.png") center center/cover no-repeat;
  }

  /* Overlay masqué sur mobile */
  .hero-overlay { display: none; }
}



/* ============================= */
/* CONTENU HERO POUR TABLETTE & MOBILE */
/* ============================= */
.hero-mobile-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 3; /* au-dessus de l’image de fond */
  display: none; /* masqué par défaut */
}

.hero-mobile-logo {
  width: 170px; /* Taille du logo sur mobile */
  max-width: 60vw; /* S’adapte à la taille de l’écran */
  height: auto;
  margin-bottom: 0.5rem;
}

.hero-mobile-text {
  font-family: 'Montserrat', sans-serif;
  font-weight: 300; /* ← Montserrat Light */
  font-size: 1.4rem;
  color: #ffffff;
  text-align: center;
  text-shadow: 0 2px 5px rgba(0,0,0,0.5);
  margin-top: 0.5rem;
  padding: 0 1.5rem;
}



/* Affichage sur tablette */
@media (max-width: 991.98px) {
  .hero-mobile-content {
    display: block;
  }
}

/* Ajustement sur téléphone */
@media (max-width: 599.98px) {
  .hero-mobile-logo {
    width: 120px;
  }

  .hero-mobile-text {
    font-size: 1rem;
    padding: 0 1rem;
  }
}


.hero-mobile-content {
  animation: fadeInMobile 1.5s ease forwards;
  opacity: 0;
}

@keyframes fadeInMobile {
  from { opacity: 0; transform: translate(-50%, -45%); }
  to { opacity: 1; transform: translate(-50%, -50%); }
}





/* ============================= */
/* TITRES DE SECTION */
/* ============================= */
section h2, .section-title h2 {
  text-align: center;
  margin-bottom: 2.3rem; /* Espace entre titre et contenu */
  color: var(--bleu-fonce);
  font-size: 2.5rem; /* ← Taille des titres, augmente si tu veux les grossir */
  line-height: 1.3;
}

/* ============================= */
/* SECTIONS - PADDING UNIFORME */
section {
  padding: 6rem 2rem; /* ← Espace autour du contenu des sections */
  position: relative;
}

#studio { background-color: var(--fond-section); }
#profiles { background-color: var(--beige-transparent); }
#services { background-color: var(--fond-section); }
.portfolio { background-color: #f5f5f5; }
#contact { background-color: var(--fond-section); }

@media (max-width: 768px) {
  section { padding: 4rem 1.5rem; }
  section h2 { margin-bottom: 1.5rem; }
}

/* ============================= */
/* ANIMATIONS HERO */
@keyframes fadeIn { to { opacity: 1; } }
@keyframes fadeInUp { from { transform: translateY(30px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

/* ============================= */
/* SECTION STUDIO */
.presentation {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  font-size: 1.2rem;
}

/* ============================= */
/* SECTION PROFILS */
#profiles .profiles-container { max-width: 1000px; margin: 0 auto; display: flex; flex-direction: column; gap: 3rem; }
.profile {
  display: flex; align-items: center; gap: 2rem;
  border-radius: 12px;
  background-color: white;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  padding: 2rem;
}
.profile.reverse { flex-direction: row-reverse; }
.profile-image { display: flex; flex-direction: column; align-items: center; text-align: center; }
.profile img {
  width: 180px; height: 180px; object-fit: cover; border-radius: 50%;
  border: 3px solid var(--bleu-fonce); margin-bottom: 0.8rem;
}
.social-icons { display: flex; justify-content: center; gap: 1.2rem; }
.social-icons a { font-size: 1.8rem; color: var(--bleu-fonce); transition: transform 0.3s, color 0.3s; }
.social-icons a:hover { transform: scale(1.2); color: var(--bleu-hover); }
.profile-text { flex: 1; text-align: left; }
.profile-text h3 { margin-bottom: 0.5rem; color: var(--bleu-fonce); font-size: 1.6rem; }
.profile-text p { font-size: 1rem; line-height: 1.6; }

@media (max-width: 768px) {
  .profile { flex-direction: column; text-align: center; }
  .profile.reverse { flex-direction: column; }
  .profile-text { text-align: center; }
}

/* ============================= */
/* SECTION SERVICES */
.services-container { display: flex; flex-wrap: wrap; justify-content: center; gap: 2rem; max-width: 1000px; margin: 0 auto; }
.service {
  flex: 0 0 calc(50% - 1rem);
  max-width: 490px;
  box-sizing: border-box;
  background-color: var(--beige-transparent);
  padding: 2.5rem 2rem;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0,0,0,0.12);
  transition: transform 0.3s, box-shadow 0.3s;
}
.service:hover { transform: translateY(-5px); box-shadow: 0 10px 25px rgba(0,0,0,0.15); }
.icon-circle { display: inline-flex; justify-content: center; align-items: center; width: 75px; height: 75px; margin-bottom: 1rem; border-radius: 50%; border: 2px solid var(--bleu-fonce); color: var(--bleu-fonce); font-size: 2rem; transition: all 0.3s ease; }
.service:hover .icon-circle { border-color: var(--bleu-hover); color: var(--bleu-hover); }

@media (max-width: 992px) { .service { flex: 0 0 100%; max-width: 100%; } }
@media (max-width: 767px) {
  .services-container { flex-direction: column; align-items: stretch; }
  .service { width: 100%; max-width: none; margin: 0 auto 1.5rem auto; }
  .service:last-child { margin-bottom: 0; }
}

/* ============================= */
/* PORTFOLIO */
.section-title p { text-align: center; }
.portfolio .portfolio-filters { padding: 0; margin: 0 auto 20px auto; list-style: none; text-align: center; }
.portfolio .portfolio-filters li { cursor: pointer; display: inline-block; padding: 8px 20px; font-size: 15px; font-weight: 500; margin: 0 5px 5px 5px; border-radius: 50px; transition: all 0.3s ease-in-out; background-color: var(--beige-transparent); color: var(--bleu-fonce); }
.portfolio .portfolio-filters li:hover, .portfolio .portfolio-filters li.filter-active { background-color: var(--bleu-fonce); color: var(--beige); }
.portfolio .portfolio-item { position: relative; overflow: hidden; margin-bottom: 2rem; }
.portfolio .portfolio-item img { width: 100%; display: block; transition: transform 0.3s ease; }
@media (min-width: 768px) { .portfolio .portfolio-item:hover img { transform: scale(1.05); } }
.portfolio .portfolio-item .portfolio-info { opacity: 1; position: absolute; left: 0; right: 0; bottom: 0; padding: 15px 10px; background-color: rgba(255, 255, 255, 0.95); text-align: center; transition: all 0.4s ease; }
@media (min-width: 768px) { .portfolio .portfolio-item .portfolio-info { opacity: 0; } .portfolio .portfolio-item:hover .portfolio-info { opacity: 1; } }
.portfolio .portfolio-item .portfolio-info h4 { font-size: 1.1rem; color: var(--bleu-fonce); margin-bottom: 0.5rem; }
.portfolio .portfolio-item .portfolio-info p { font-size: 0.9rem; color: var(--texte-fonce); margin-bottom: 10px; }
.portfolio .portfolio-item .portfolio-info a { font-size: 1.5rem; color: var(--bleu-fonce); margin: 0 5px; transition: color 0.3s, transform 0.3s; }
.portfolio .portfolio-item .portfolio-info a:hover { color: var(--bleu-hover); transform: scale(1.2); }


/* ============================= */
/* PORTFOLIO - MOBILE OPTIMISÉ & ELEGANT */
/* ============================= */
@media (max-width: 767px) {

  /* Chaque item prend toute la largeur */
  .portfolio .portfolio-item {
    position: relative;
    display: block;
    margin-bottom: 2rem;
    overflow: hidden;
    border-radius: 8px; /* coins arrondis */
  }

  .portfolio .portfolio-item img {
    width: 100%;
    display: block;
    transition: transform 0.3s ease;
  }

  /* Overlay semi-transparent au survol */
  .portfolio .portfolio-item .portfolio-info {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.25); /* overlay léger */
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    cursor: pointer;
    z-index: 2;
  }

  /* Affiche overlay au survol / tap */
  .portfolio .portfolio-item:hover .portfolio-info,
  .portfolio .portfolio-item:active .portfolio-info {
    opacity: 1;
  }

  /* Loupe centrale */
  .portfolio .portfolio-item .portfolio-info a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    background: rgba(242, 211, 181, 0.9); /* cercle beige */
    border-radius: 50%;
    color: #2c3d50; /* couleur icône loupe */
    font-size: 1.5rem;
    text-decoration: none;
    transition: transform 0.3s, background 0.3s;
  }

  .portfolio .portfolio-item .portfolio-info a:hover {
    transform: scale(1.1);
    background: rgba(242, 211, 181, 1);
  }

  /* Supprime texte descriptif */
  .portfolio .portfolio-item .portfolio-info h4,
  .portfolio .portfolio-item .portfolio-info p {
    display: none;
  }
}


/* ============================= */
/* CONTACT */
#contact { text-align: center; }
.contact-icons { display: flex; justify-content: center; gap: 4rem; margin: 2rem 0 1rem 0; flex-wrap: wrap; }
.contact-item { display: flex; flex-direction: column; align-items: center; text-align: center; }
.contact-item a { color: var(--bleu-fonce); text-decoration: none; font-weight: 500; transition: color 0.3s; }
.contact-item a:hover { color: var(--bleu-hover); }
.icon-circle-contact { display: flex; justify-content: center; align-items: center; width: 70px; height: 70px; border-radius: 50%; border: 2px solid var(--bleu-fonce); color: var(--bleu-fonce); font-size: 1.8rem; margin-bottom: 0.5rem; transition: all 0.3s ease; }
.icon-circle-contact:hover { border-color: var(--bleu-hover); color: var(--bleu-hover); }
.contact-form { max-width: 600px; margin: 0 auto; display: flex; flex-direction: column; gap: 1rem; }
.contact-form input, .contact-form textarea { padding: 1rem; border-radius: 8px; border: 1px solid #ccc; width: 100%; font-size: 1rem; }
.contact-form button { padding: 1rem; background-color: var(--bleu-fonce); color: var(--beige); font-size: 1.2rem; border: none; border-radius: 8px; }

/* ============================= */
/* FOOTER */
footer { background-color: #2c3d50; color: #ffffff; text-align: center; padding: 2rem 1rem; font-size: 0.9rem; letter-spacing: 0.5px; }
footer p { margin: 0; font-weight: 400; }
footer a { color: var(--beige); text-decoration: underline; margin-left: 0.3rem; }
footer a:hover { color: var(--bleu-hover); }
@media (max-width: 768px) { footer { font-size: 0.8rem; padding: 1.5rem 1rem; } }

/* ============================= */
/* MENU BURGER */
.menu-toggle { display: none; flex-direction: column; justify-content: space-between; width: 30px; height: 22px; cursor: pointer; z-index: 1001; }
.menu-toggle span { display: block; height: 4px; width: 100%; background: var(--texte-clair); border-radius: 2px; transition: 0.3s; }
.menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translateY(9px); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translateY(-9px); }

@media screen and (max-width: 992px) {
  .menu-toggle { display: flex; position: absolute; top: 20px; right: 25px; }
  nav ul.nav-list { 
    position: fixed; top: 0; left: -100%; height: 100vh; width: 80%; 
    background: rgba(13, 27, 42, 0.97); /* ← Couleur menu mobile */ 
    backdrop-filter: blur(6px); flex-direction: column; justify-content: center; align-items: flex-start; 
    padding-left: 2rem; gap: 2rem; transition: left 0.4s ease; z-index: 1000; 
  }
  nav ul.nav-list.active { left: 0; }
  nav ul.nav-list li a { 
    font-size: 1.4rem; 
    color: var(--beige); 
    width: 100%; display: block; position: relative; transition: all 0.3s ease; 
  }
  nav ul.nav-list li a::after { content: ""; position: absolute; bottom: 0; left: 0; height: 2px; width: 0; background: var(--beige); transition: width 0.3s ease; }
  nav ul.nav-list li a:hover::after { width: 100%; }
}
