/* ==== BASE ==== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Helvetica Neue", Arial, sans-serif;
  color: #fdf9ef; /* texte clair */
  background: #072e5b; /* bleu marine fond */
  line-height: 1.6;
}

a {
  color: #fdf9ef; /* couleur liens url */
  text-decoration: underline;
}

h1, h2, h3, h4 {
  color: #fdf9ef; /* couleur titres + nom */
  font-weight: 600;
}

p {
  color: #fdf9ef;
}
li {
  color: #082e46;
}

/* ==== HEADER ==== */
header {
  background: #002147;
  color: white;
  padding: 1rem 2rem;
  position: sticky;
  top: 0;
  z-index: 1000;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* nav ul normal (desktop) */
nav ul {
  display: flex;
  list-style: none;
  gap: 1rem;
}

/* les liens dans le header restent blancs */
nav a {
  color: white;
  text-decoration: none;
}

/* bouton langue */
#lang-toggle {
  background: white;
  color: #0b3954;
  border: none;
  padding: 0.4rem 0.8rem;
  border-radius: 5px;
  cursor: pointer;
}

/* ==== FOOTER ==== */
footer {
  background: #002147;
  color: white;
  text-align: center;
  padding: 1rem;
  margin-top: 3rem;
}

/* ==== MENU BURGER - styles de base ====
   (sera visible sur petits écrans via @media) */
.burger {
  display: none; /* visible uniquement en mobile via media query */
  flex-direction: column;
  justify-content: space-between;
  width: 1.6rem;
  height: 1.2rem;
  cursor: pointer;
  margin-left: 0.8rem;
}
.burger div {
  background: white;
  height: 3px;
  border-radius: 2px;
  transition: all 0.3s ease;
}
.burger.active div:nth-child(1) {
  transform: rotate(45deg) translate(4px, 4px);
}
.burger.active div:nth-child(2) {
  opacity: 0;
}
.burger.active div:nth-child(3) {
  transform: rotate(-45deg) translate(4px, -4px);
}

/* ==== HERO (ACCUEIL) ==== */
.hero {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  padding: 3rem 1rem;
  text-align: center;
}

/* Photo de profil — agrandie */
.hero img {
  width: 300px;          /* plus grande */
  height: 300px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1.5rem;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0,0,0,0.25);
  transition: transform 0.3s ease;
}
.hero img:hover { transform: scale(1.03); }

section, main {
  max-width: 900px;
  margin: auto;
  padding: 2rem;
}

/* ==== EXPERTISES ==== */
#expertise {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem;
}

#expertise h2 {
  text-align: center;
  color: #a3cfff;
  margin-bottom: 2rem;
}

/* Conteneur principal */
.expertise-grid {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* Chaque bloc de compétence */
.expertise-grid > div {
  background-color: #dce8f2;   /* même pastel bleu que Timeline / Impact */
  color: #082e46;
  border-radius: 12px;
  padding: 1.5rem 2rem;
  box-shadow: 0 3px 10px rgba(0,0,0,0.25);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.expertise-grid > div:hover {
  transform: translateY(-4px);
  box-shadow: 0 5px 14px rgba(0,0,0,0.35);
}

.expertise-grid h3 {
  color: #05273e;
  margin-bottom: 0.7rem;
  font-size: 1.3rem;
}

.expertise-grid ul {
  margin-left: 1rem;
  line-height: 1.7;
  margin-top: 0.5rem;
}

.expertise-grid li {
  color: #0b3954;
  margin-bottom: 0.4rem;
}

/* Adaptation mobile */
@media (max-width: 700px) {
  .expertise-grid > div {
    padding: 1rem 1.2rem;
  }

  .expertise-grid h3 {
    font-size: 1.15rem;
  }
}
/* ==== PROJETS ==== */
#projects { display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 0rem;
}
.projects h2 { color: #f6f8fb; }
.project-card {
  background-color: #f6f8fb;
  color: #082e46;
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
.project-card img {
  width: 100%;
  max-width: 800px;
  border-radius: 10px;
  margin-bottom: 1rem;
  object-fit: cover;
}
.project-card h3 { color: #05273e; margin-bottom: 0.5rem; }
.project-card p { color: #05273e; text-align: center; max-width: 700px; }

/* ==== PUBLICATIONS ==== */
#publications { display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 0rem; }

#publications .intro {
  font-size: 1.1rem;
  text-align: center;
  margin-bottom: 2rem;
  color: #1e2d3d;
}
.publication-block {
  background-color: #f6f8fb;
  color: #082e46;
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.publication-block:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}
.publication-block h3 { color: #0b275f; margin-bottom: 0.5rem; }
.publication-block p { color: #09598c; line-height: 1.6; margin-bottom: 0.5rem; }
.publication-block a { color: #0b3954; text-decoration: underline; }
.publication-block img {
  width: 100%;
  max-width: 700px;
  border-radius: 10px;
  margin-top: 1rem;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* ==== TIMELINE (Parcours) ==== */
#timeline { margin: 3rem auto; max-width: 900px; }

.timeline {
  position: relative;
  margin: 2rem 0;
  padding-left: 25px;
  border-left: 3px solid #fdf9ef; /* Blanc cassé barre verticale */
}

.timeline-item { margin-bottom: 2rem; position: relative; }
.timeline h3 { color: #0b275f; }
.timeline p { color: #144d75; }

.timeline-date {
  font-weight: bold;
  color: #fdf9ef; /* Blanc cassé dates */
  margin-left: 10px;
  margin-bottom: 0.3rem;
}

.timeline-content {
  background-color: #dce8f2; /* Bleu très pastel blocs */
  border-radius: 10px;
  padding: 1rem 1.5rem;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  color: #082e46;
}

/* ==== IMPACT ==== */
#impact { text-align: center; margin: 3rem auto; }

.counters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2rem;
  margin-top: 1rem;
}

.counters p { color: #0b275f; }

.counters div {
  background-color: #dce8f2; /* Bleu très pastel blocs */
  color: #082e46;
  border-radius: 10px;
  padding: 1rem 2rem;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.counters .count {
  display: block;
  font-size: 2rem;
  font-weight: bold;
  color: #0b275f; /* lisible sur fond clair */
}

/* ==== FUN FACTS ==== */
#funfacts-page {
  background-color: #e8f5e3; /* vert amande/pistache */
  color: #2d402d;
  min-height: 100vh;
}

#funfacts-page header,
#funfacts-page footer { background-color: #6aa56a; }

#funfacts {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem;
}

/* titre */
#funfacts h2 {
  color: #2d402d;
  text-align: center;
  margin-bottom: 2rem;
  font-size: 1.8rem;
}

/* rubriques empilées verticalement */
#funfacts ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-bottom: 3rem;
  padding: 0;
}

#funfacts li {
  background-color: #d4edcc;
  border-radius: 10px;
  padding: 0.8rem 1.2rem;
  font-size: 1.1rem;
  width: 80%;
  max-width: 600px;
  text-align: center;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
#funfacts li:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

/* galerie : empilée verticalement (mobile & desktop) */
#funfacts .gallery {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}



/* conteneur chaque image (taille fixe responsive) */
#funfacts .photo-wrapper {
  position: relative;
  width: 90%;
  max-width: 600px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
#funfacts .photo-wrapper:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

/* image : harmonisation portrait/paysage */
#funfacts .photo-wrapper img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}

/* watermark centré en travers (85% transparent => alpha 0.15) */
#funfacts .photo-wrapper::after {
  content: "© Antoine Dubois";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-30deg);
  color: rgba(255, 255, 255, 0.15);  /* 15% visible (85% transparent) */
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: 2px;
  user-select: none;
  pointer-events: none;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.4);
}

/* ==== PETIT PLONGEUR (Fun Facts) ==== */
#diver-icon {
  position: fixed;
  width: 50px;
  height: auto;
  pointer-events: none;
  z-index: 9999;
  transition: transform 0.05s linear;
  animation: swim 2s infinite ease-in-out;
}
@keyframes swim {
  0% { transform: rotate(5deg) translateY(0px); }
  50% { transform: rotate(-5deg) translateY(3px); }
  100% { transform: rotate(5deg) translateY(0px); }
}

/* ==== ADAPTATION MOBILE & BURGER ==== */
@media (max-width: 900px) {
  /* menu burger layout */
  .burger { display: flex; }
  nav ul {
    flex-direction: column;
    position: absolute;
    top: 64px;
    right: 0;
    background: #0b3954;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
    text-align: center;
    padding: 0;
    margin: 0;
  }
  nav ul.active { max-height: 400px; padding: 1rem 0; }

  /* header layout tweaks */
  nav { align-items: center; gap: 0.5rem; }

  /* hero responsive */
  .hero { flex-direction: column; padding: 2rem 1rem; }
  .hero img { width: 45vw; max-width: 250px; height: auto; }

  /* counters vertical */
  .counters { flex-direction: column; align-items: center; }

  /* timeline tighter */
  .timeline { padding-left: 15px; border-left-width: 2px; }
  .timeline-date { font-size: 0.95rem; }

  /* funfacts watermark and gallery sizing */
  #funfacts .photo-wrapper::after { font-size: 1.6rem; }
  #funfacts .photo-wrapper { max-width: 90%; }
}

/* petits écrans */
@media (max-width: 600px) {
  h1 { font-size: 1.4rem; }
  h2 { font-size: 1.2rem; }
  nav ul { gap: 0.6rem; }
  #lang-toggle, #theme-toggle { font-size: 0.9rem; padding: 0.3rem 0.6rem; }
  .hero img { width: 180px; height: 180px; }
  .expertise-grid > div, .project-card, .publication-block { padding: 0.8rem; }
  #funfacts li { width: 95%; font-size: 0.95rem; }
  #funfacts .photo-wrapper::after { font-size: 1.2rem; }
}

@media (min-width: 901px) {
  nav ul {
    display: flex !important;
    position: static !important;
    background: none !important;
    width: auto !important;
    max-height: none !important;
    overflow: visible !important;
    padding: 0 !important;
  }

  .burger {
    display: none !important;
  }
}

/* ==== SECTION PORTRAIT GALLERY ==== */
#portrait-gallery {
  text-align: center;
  margin: 4rem auto;
  max-width: 900px;
  padding: 2rem;
}

#portrait-gallery h3 {
  color: #9cd0ff;
  margin-bottom: 2rem;
  font-size: 1.6rem;
}

/* ==== STYLE DES PHOTOS ==== */
.mini-gallery {
  display: flex;
  flex-direction: column; /* empile verticalement */
  align-items: center;
  gap: 2rem; /* espace entre chaque image */
}

.mini-gallery img {
  width: 90%;
  max-width: 600px;
  aspect-ratio: 4 / 3; /* format paysage */
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.mini-gallery img:hover {
  transform: scale(1.03);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

/* ==== ADAPTATION MOBILE ==== */
@media (max-width: 700px) {
  #portrait-gallery {
    padding: 1.5rem 1rem;
  }

  .mini-gallery img {
    width: 95%;
    max-width: 100%;
    aspect-ratio: auto; /* garde la bonne hauteur selon image */
  }
}

/* ==== CARROUSEL EXPERTISE ==== */
.expertise-carousel {
  position: relative;
  overflow: hidden;
  max-width: 900px;
  margin: 3rem auto;
  background-color: #1f2f46;
  border-radius: 12px;
  padding: 2rem 3rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.expertise-slide {
  display: none;
  text-align: center;
  color: #e6e6e6;
}

.expertise-slide.active {
  display: block;
  animation: fadeIn 0.6s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateX(10px); }
  to { opacity: 1; transform: translateX(0); }
}

.expertise-content h3 {
  color: #0b3954;
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.expertise-content ul {
  list-style: none;
  padding: 0;
  margin-bottom: 2rem;
}
.expertise-content li {
  color: #0b3954;
  margin: 0.4rem 0;
}

.expertise-images {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.expertise-images img {
  width: 45%;
  max-width: 350px;
  aspect-ratio: 1/1;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 3px 8px rgba(0,0,0,0.3);
  transition: transform 0.2s ease;
}

.expertise-images img:hover {
  transform: scale(1.03);
}

/* flèches de navigation */
.nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.1);
  border: none;
  color: #9cd0ff;
  font-size: 2rem;
  cursor: pointer;
  padding: 0.5rem 0.8rem;
  border-radius: 50%;
  transition: background 0.3s ease;
  z-index: 10;
}

.nav-btn:hover {
  background: rgba(255,255,255,0.25);
}

.prev-btn { left: 1rem; }
.next-btn { right: 1rem; }

/* responsive */
@media (max-width: 700px) {
  .expertise-carousel { padding: 1.5rem; }
  .expertise-images img { width: 80%; }
  .nav-btn { font-size: 1.6rem; }
}

/* ==== PAGE MON FUTUR ==== */
#futur {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem;
  color: #f8e8e8;
}

#futur section {
  margin-bottom: 3rem;
  background-color: #1f3a5f; /* bleu marine légèrement éclairci */
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.3);
}

#futur h2 {
  color: #ffffff;
  margin-bottom: 1rem;
  text-align: center;
  font-size: 1.8rem;
}

#futur p {
  line-height: 1.6;
  text-align: justify;
  color: #e0e8ef;
}

#map {
  height: 420px;
  width: 100%;
  border-radius: 10px;
  margin-top: 1rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

/* Adaptation mobile */
@media (max-width: 768px) {
  #map {
    height: 300px;
  }
  #futur section {
    padding: 1rem;
  }
}

/* ==== STYLE ATTRIBUTION LEAFLET ==== */
.leaflet-control-attribution {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.6);
  background: none;
  text-shadow: none;
  border: none;
  bottom: 5px !important;
  right: 8px !important;
}

/* ==== SLIDESHOW ACCUEIL ==== */
#portrait-gallery {
  text-align: center;
  margin: 4rem auto;
  max-width: 900px;
  padding: 0 1rem;
}

#portrait-gallery h3 {
  color: #a3cfff;
  margin-bottom: 1.5rem;
  font-size: 1.6rem;
  font-weight: 500;
}

/* Conteneur principal */
.slideshow-container {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.3);
}

/* Slides */
.slide {
  display: none;
}

.slide img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 10px;
}

/* Flèches de navigation */
.prev, .next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  padding: 0.5rem;
  margin-top: -22px;
  color: rgba(255, 255, 255, 0.8);
  font-weight: bold;
  font-size: 1.8rem;
  transition: 0.3s ease;
  user-select: none;
}

.next { right: 10px; }
.prev { left: 10px; }

.prev:hover, .next:hover {
  color: white;
  text-shadow: 0 0 8px rgba(255,255,255,0.9);
}

/* Points indicateurs */
.dots-container {
  text-align: center;
  margin-top: 1rem;
}

.dot {
  height: 12px;
  width: 12px;
  margin: 0 5px;
  background-color: rgba(255,255,255,0.3);
  border-radius: 50%;
  display: inline-block;
  transition: background-color 0.3s;
  cursor: pointer;
}

.active, .dot:hover {
  background-color: #a3cfff;
}

/* Effet fondu */
.fade {
  animation-name: fade;
  animation-duration: 1s;
}

@keyframes fade {
  from { opacity: 0.3; }
  to { opacity: 1; }
}

/* Responsive */
@media (max-width: 600px) {
  .slideshow-container {
    max-width: 95%;
  }

  .slide img {
    aspect-ratio: 16/10;
  }

  .prev, .next {
    font-size: 1.5rem;
  }

  .dot {
    height: 10px;
    width: 10px;
  }
}

/* ==== SECTION PARTENAIRES ==== */
#partners {
  text-align: center;
  margin: 5rem auto;
  max-width: 1000px;
  padding: 0 1rem;
}

#partners h2 {
  color: #a3cfff;
  margin-bottom: 1rem;
  font-size: 1.8rem;
}

#partners p {
  color: #d0e7ff;
  font-size: 1rem;
  margin-bottom: 2rem;
  line-height: 1.5;
}

/* grille de logos */
.logo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 2rem;
  align-items: center;
  justify-items: center;
}

/* style de base des logos */
.logo-grid img {
  width: 120px;
  height: auto;
  filter: grayscale(100%) brightness(90%);
  opacity: 0.85;
  transition: all 0.3s ease;
  mix-blend-mode: lighten;
}

/* effet au survol */
.logo-grid img:hover {
  filter: none;
  opacity: 1;
  transform: scale(1.08);
}

/* pour mobile */
@media (max-width: 600px) {
  #partners h2 {
    font-size: 1.5rem;
  }

  .logo-grid {
    gap: 1.5rem;
  }

  .logo-grid img {
    width: 90px;
  }
}

/* === Correction couleur lien nav === */
nav a {
  color: white !important;
  text-decoration: none !important;
}
nav a:hover {
  text-decoration: underline;
}
nav a.active {
  color: white !important;
}
