/* ===========================
   VARIABLES
=========================== */
:root {
  --bleu-nuit: #1F2746;
  --gris-anthracite: #2B2B2B;
  --gris-argent: #CFCFCF;
  --gris-clair: #F2F2F2;
  --blanc: #FFFFFF;

  --shadow: 0 6px 24px rgba(0,0,0,0.08);
}

/* ===========================
   RESET & BASE
=========================== */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Segoe UI', Arial, sans-serif;
  background: var(--gris-clair);
  color: var(--gris-anthracite);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* 🔵 LIENS GLOBAUX EN BLEU FONCÉ */
a,
a:visited {
  color: var(--bleu-nuit);
  text-decoration: underline;
}

a:hover,
a:focus {
  color: var(--bleu-nuit);
  opacity: 0.8;
}

/* ===========================
   HEADER
=========================== */
header {
  background: var(--blanc);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  gap: 20px;
}

.logo {
  height: 60px;
}

.header-text {
  flex: 1;
  text-align: center;
}

.header-text h1 {
  margin: 0;
}

/* ===========================
   NAVIGATION
=========================== */
nav {
  background: var(--bleu-nuit);
}

.nav-links {
  display: flex;
  justify-content: center;
  gap: 40px;
  padding: 16px;
}

/* Menu en blanc (exception volontaire) */
nav a,
nav a:visited {
  color: var(--blanc);
  text-decoration: none;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 6px;
}

nav a:hover,
nav a:focus {
  background: var(--blanc);
  color: var(--bleu-nuit);
}

/* ===========================
   MAIN & SECTIONS
=========================== */
main {
  background: var(--gris-clair);
}

section {
  padding: 60px 20px;
}

/* ===========================
   ACCUEIL / SLIDER
=========================== */
#accueil {
  position: relative;
  height: 80vh;
  overflow: hidden;
}

.slider-bg {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.slider-track {
  display: flex;
  height: 100%;
  transition: transform 0.7s ease;
}

.slide {
  flex-shrink: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(0,0,0,0.4);
  color: #fff;
  border: none;
  font-size: 2em;
  padding: 6px 14px;
  cursor: pointer;
  border-radius: 50%;
}

.slider-btn.prev { left: 16px; }
.slider-btn.next { right: 16px; }

/* Texte slider */
.slider-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(31,39,70,0.85);
  color: #fff;
  padding: 24px;
  border-radius: 14px;
  width: 60%;
  text-align: center;
}

.slider-text h2 {
  margin-top: 0;
}

/* ===========================
   TRAVAUX / GALERIES
=========================== */
#travaux,
#contact,
#a-propos-de-moi {
  background: var(--blanc);
  border-radius: 16px;
  box-shadow: var(--shadow);
  max-width: 1000px;
  margin: 40px auto;
}

#contact,
#a-propos-de-moi {
  max-width: 700px;
}

.gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}

.gallery img {
  width: 30%;
  border-radius: 10px;
  object-fit: cover;
  cursor: pointer;
}

/* ===========================
   FOOTER
=========================== */
footer {
  background: var(--bleu-nuit);
  color: var(--blanc);
  text-align: center;
  padding: 32px 16px;
}

.footer-content {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Liens du footer aussi en blanc */
footer a,
footer a:visited {
  color: var(--blanc);
  text-decoration: underline;
}

footer a:hover,
footer a:visited {
  color: var(--gris-clair);
  text-decoration: underline;
}

/* ===========================
   LIGHTBOX
=========================== */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.lightbox-content {
  background: #fff;
  border-radius: 14px;
  padding: 20px;
  max-width: 90vw;
  max-height: 90vh;
  text-align: center;
}

.lightbox-img {
  max-width: 80vw;
  max-height: 50vh;
  margin-bottom: 16px;
}

/* ===========================
   RESPONSIVE
=========================== */

/* Tablette */
@media (max-width: 768px) {

  .header-content {
    flex-direction: column;
    text-align: center;
  }

  .nav-links {
    flex-direction: column;
    gap: 12px;
  }

  .slider-text {
    width: 90%;
    padding: 16px;
  }

  .gallery img {
    width: 48%;
  }
}

/* Mobile */
@media (max-width: 480px) {

  section {
    padding: 40px 16px;
  }

  .slider-text h2 {
    font-size: 1.4em;
  }

  .gallery img {
    width: 100%;
  }

  .slider-btn {
    font-size: 1.5em;
  }
}
