/* ============================================
   Variables CSS - Design épuré
   ============================================ */
:root {
  /* Couleurs */
  --color-primary: #2e555e; /* Vert Foncé - pour titres */
  --color-accent: #93bba5; /* Bleu Rhône - pour liens */
  --color-text: #1a1a1a;
  --color-text-light: #666666;
  --color-background: #faf8f5;
  --color-border: #e0e0e0;
  --color-white: #ffffff;

  /* Typographies */
  --font-heading: "Montserrat", sans-serif;
  --font-body: "Lato", sans-serif;

  /* Espacements - Mobile first */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2.5rem;

  /* Breakpoints */
  --breakpoint-tablet: 768px;
  --breakpoint-desktop: 1024px;
}

/* ============================================
   Reset & Base
   ============================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  line-height: 1.6;
  background-color: var(--color-background);
  overflow-x: hidden;
}

/* ============================================
   Typographie - Mobile First
   ============================================ */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-primary);
}

h1 {
  font-size: 2rem;
  margin-bottom: var(--spacing-md);
}

h2 {
  font-size: 1.75rem;
  margin-bottom: var(--spacing-md);
}

h3 {
  font-size: 1.25rem;
  margin-bottom: var(--spacing-sm);
}

p {
  margin-bottom: var(--spacing-sm);
}

.highlight {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: var(--spacing-sm);
}

.small-text {
  font-size: 0.875rem;
  color: var(--color-text-light);
  font-style: italic;
}

/* ============================================
   Layout - Mobile First
   ============================================ */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

.section {
  min-height: 100vh;
  padding: var(--spacing-xl) 0;
  display: flex;
  align-items: center;
}

.section-title {
  font-size: 2rem;
  text-align: center;
  margin-bottom: var(--spacing-lg);
  color: var(--color-primary);
  font-weight: 700;
}

/* ============================================
   Navigation Sticky - Mobile First
   ============================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: var(--color-white);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  padding: var(--spacing-xs) 0;
  transform: translateY(-100%);
  transition: transform 0.3s ease;
}

.navbar.visible {
  transform: translateY(0);
}

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

.nav-brand {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.nav-logo {
  height: 40px;
  width: auto;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: var(--spacing-xs);
  margin: 0;
  padding: 0;
}

.nav-link {
  text-decoration: none;
  color: var(--color-text);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--color-accent);
  background-color: rgba(55, 199, 165, 0.1);
}

/* ============================================
   Hero Section - Mobile First
   ============================================ */
.hero {
  min-height: 100vh;
  min-height: 100dvh; /* Dynamic viewport pour mobile */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: var(--spacing-md);
  background-color: var(--color-white);
  position: relative;
  overflow-x: hidden;
}

/* Image de fond visible sur tous les écrans */
.hero[data-has-bg] {
  background-size: 0 0;
  background-position: center bottom;
  background-repeat: no-repeat;
}

.hero[data-has-bg]::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 20vh; /* Réduit sur mobile */
  background-image: inherit;
  background-size: cover;
  background-position: center bottom;
  background-repeat: no-repeat;
  z-index: 0;
}

.hero[data-has-bg]::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 20vh;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 1) 0%,
    rgba(255, 255, 255, 0.85) 20%,
    rgba(255, 255, 255, 0.6) 60%,
    rgba(255, 255, 255, 0.75) 100%
  );
  z-index: 1;
}

.hero > * {
  position: relative;
  z-index: 10;
}

/* Wrapper principal du hero */
.hero-wrapper {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  height: 100%;
  min-height: 0;
  padding: 0.5rem 0;
}

/* Header : Logo + Slogan */
.hero-header {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-sm);
  flex-shrink: 1;
}

.hero-logo {
  max-width: 90%;
  max-height: 25vh;
  width: auto;
  height: auto;
  min-height: 0;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.hero-slogan {
  font-family: var(--font-heading);
  font-size: clamp(0.875rem, 3vw, 1rem);
  font-weight: 400;
  color: var(--color-primary);
  margin: 0;
  line-height: 1.3;
  text-align: center;
  max-width: 100%;
}

.hero-slogan strong {
  display: inline;
  font-weight: 600;
}

/* Main : Photo de groupe */
.hero-main {
  width: 100%;
  display: flex;
  justify-content: center;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 1;
  flex-grow: 1;
  min-height: 0;
}

.hero-image {
  width: 100%;
  max-width: 900px;
  height: 100%;
  max-height: 100%;
  min-height: 0;
  object-fit: cover;
  object-position: center top;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.hero-image:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.2);
}

/* Footer : CTA + Lien secondaire */
.hero-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  padding-bottom: 0.5rem;
  flex-shrink: 0;
  min-height: 0;
  margin-top: auto;
}

.hero-cta-container {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
  justify-content: center;
  width: 100%;
  max-width: 400px;
}

.hero-cta-primary {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-white);
  text-decoration: none;
  padding: 0.875rem 2rem;
  border-radius: 12px;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
  width: 100%;
}

/* Premier bouton : accent */
.hero-cta-primary:first-child {
  background: linear-gradient(135deg, var(--color-accent) 0%, #7fb099 100%);
}

/* Second bouton : primary */
.hero-cta-primary:nth-child(2) {
  background: linear-gradient(135deg, var(--color-primary) 0%, #1f3d44 100%);
}

.hero-cta-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.hero-cta-primary:active {
  transform: translateY(-1px);
}

.hero-cta-primary:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* Lien secondaire discret */
.hero-secondary {
  margin-top: var(--spacing-sm);
}

.hero-secondary-link {
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--color-text-light);
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-bottom: 1px solid transparent;
  transition: all 0.2s ease;
}

.hero-secondary-link:hover {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
}

.hero-secondary-link:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Réseaux sociaux - Mobile : intégrés dans le flux */
.hero-social {
  display: flex;
  flex-direction: row;
  gap: var(--spacing-sm);
  justify-content: center;
}

.hero-social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: var(--color-primary);
  background-color: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.hero-social-link:hover {
  color: var(--color-white);
  background-color: var(--color-accent);
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.hero-social-link:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.hero-social-link svg {
  width: 20px;
  height: 20px;
}

/* ============================================
   Theme Groups & Cards - Mobile First
   ============================================ */
.theme-group {
  margin-bottom: var(--spacing-xl);
}

.theme-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-accent);
  margin-bottom: var(--spacing-md);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-lg);
}

.card {
  background-color: var(--color-white);
  border: none;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
}

/* Project cards - cliquables et simplifiées */
.card-project {
  cursor: pointer;
  position: relative;
}

.card-project .card-content {
  padding: var(--spacing-md);
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.98) 0%,
    rgba(255, 255, 255, 1) 20%
  );
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.card-cta {
  font-size: 0.875rem;
  color: var(--color-accent);
  font-weight: 600;
  text-align: right;
  transition: color 0.3s ease;
}

.card-project:hover .card-cta {
  color: var(--color-primary);
}

.card-image {
  width: 100%;
  height: 350px;
  object-fit: cover;
  display: block;
}

.card-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: var(--spacing-sm);
}

.card-text {
  margin-bottom: var(--spacing-sm);
  line-height: 1.7;
  color: var(--color-text);
}

.card-text > img {
  max-width: 100%;
}

.card-content {
  padding: var(--spacing-md);
}

.card-role {
  font-size: 0.875rem;
  color: var(--color-accent);
  font-weight: 600;
  margin-bottom: var(--spacing-xs);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.card-link {
  margin: auto var(--spacing-md) var(--spacing-md);
  padding: var(--spacing-xs) var(--spacing-sm);
  background-color: var(--color-accent);
  color: var(--color-white);
  text-decoration: none;
  border-radius: 4px;
  display: inline-block;
  font-weight: 600;
  transition: background-color 0.3s ease;
  align-self: flex-start;
}

.card-link:hover {
  background-color: var(--color-primary);
}

.card-info {
  padding: 10px;
  background-color: var(--color-white);
  border: none;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

/* Liens réseaux sociaux minimalistes */
.social-links-minimal {
  display: flex;
  gap: var(--spacing-md);
  justify-content: center;
  padding: var(--spacing-md);
}

.social-link-minimal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  color: var(--color-primary);
  transition: all 0.3s ease;
  border-radius: 50%;
  background-color: transparent;
}

.social-link-minimal:hover {
  color: var(--color-accent);
  background-color: rgba(55, 199, 165, 0.1);
  transform: translateY(-3px);
}

.social-link-minimal svg {
  width: 28px;
  height: 28px;
}

/* Section Projets */
#projets .container {
  display: block;
}

/* Wrapper pour les cards (sections sans thème) */
.cards-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-md);
}

/* Sections avec cards directement */
#la-liste .container,
#informations-pratiques .container {
  display: block;
}

/* ============================================
   Informations pratiques - Section spéciale
   ============================================ */
#informations-pratiques {
  background-color: #fafafa;
}

#informations-pratiques .card-title {
  font-size: 1.5rem;
  margin-bottom: var(--spacing-sm);
}

#informations-pratiques .card-text {
  padding: 0;
  margin-bottom: var(--spacing-sm);
}

#informations-pratiques .card-link {
  margin: var(--spacing-sm) 0 0;
}

/* ============================================
   Footer avec réseaux sociaux
   ============================================ */
.footer {
  background-color: #fafafa;
  padding: var(--spacing-lg) 0;
  border-top: 1px solid var(--color-border);
}

.social-links {
  display: flex;
  gap: var(--spacing-md);
  justify-content: center;
  flex-wrap: wrap;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-xs);
  padding: var(--spacing-sm) var(--spacing-md);
  background-color: var(--color-primary);
  color: var(--color-white);
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.social-link:hover {
  background-color: var(--color-accent);
  transform: scale(1.05);
}

/* ============================================
   Responsive Design - Mobile First
   ============================================ */

/* Tablet (768px+) : Enrichissement progressif */
@media (min-width: 768px) {
  :root {
    --spacing-md: 2rem;
    --spacing-lg: 2.5rem;
    --spacing-xl: 4rem;
  }

  /* Navigation */
  .nav-logo {
    height: 45px;
  }

  .nav-menu {
    gap: var(--spacing-sm);
  }

  .nav-link {
    font-size: 0.875rem;
    padding: 0.375rem 0.75rem;
  }

  /* Typography */
  h1 {
    font-size: 2.25rem;
  }

  h2 {
    font-size: 2rem;
  }

  h3 {
    font-size: 1.5rem;
  }

  .section-title {
    font-size: 2.25rem;
  }

  /* Hero */
  .hero {
    height: 100vh;
    max-height: 100vh;
    padding: var(--spacing-md);
    overflow: hidden;
  }

  /* Image de fond visible sur tablet (réduite à 25vh) */
  .hero[data-has-bg]::before {
    display: block;
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 25vh;
    background-image: inherit;
    background-size: cover;
    background-position: center bottom;
    background-repeat: no-repeat;
    z-index: 0;
  }

  .hero[data-has-bg]::after {
    display: block;
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 25vh;
    background: linear-gradient(
      to bottom,
      rgba(255, 255, 255, 1) 0%,
      rgba(255, 255, 255, 0.85) 20%,
      rgba(255, 255, 255, 0.6) 60%,
      rgba(255, 255, 255, 0.75) 100%
    );
    z-index: 1;
  }

  .hero-wrapper {
    gap: clamp(0.5rem, 2vh, 1.5rem);
  }

  .hero-header {
    gap: var(--spacing-md);
  }

  .hero-logo {
    max-height: clamp(15vh, 18vh, 20vh);
  }

  .hero-slogan {
    font-size: clamp(1.125rem, 2.5vw, 1.75rem);
    max-width: 80%;
    line-height: 1.4;
  }

  .hero-main {
    gap: clamp(1rem, 2vh, 1.5rem);
    flex-grow: 0;
  }

  .hero-footer {
    margin-top: 0;
  }

  .hero-image {
    height: auto;
    max-height: clamp(32vh, 40vh, 45vh);
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  }

  .hero-cta-container {
    flex-direction: row;
    width: auto;
    max-width: none;
  }

  .hero-cta-primary {
    width: auto;
    font-size: 1.0625rem;
    padding: 0.95rem 2.25rem;
    min-width: 44px;
    min-height: 44px;
  }

  .hero-secondary-link {
    font-size: 1rem;
    min-width: 44px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  /* Réseaux sociaux - Tablet : colonne à droite en position absolue */
  .hero-social {
    position: absolute;
    bottom: var(--spacing-lg);
    right: var(--spacing-lg);
    transform: none;
    flex-direction: column;
  }

  .hero-social-link {
    width: 44px;
    height: 44px;
  }

  /* Cards - 2 colonnes sur tablet */
  .cards-grid,
  .cards-container {
    grid-template-columns: repeat(2, 1fr);
  }

  .theme-title {
    font-size: 1.625rem;
  }

  .card-title {
    font-size: 1.375rem;
  }

  #informations-pratiques .card-title {
    font-size: 1.625rem;
  }

  /* Modal - Tablet */
  .modal-overlay {
    padding: var(--spacing-md);
  }

  .modal-container {
    height: 92vh;
    max-height: 92vh;
    border-radius: 12px;
  }

  .modal-content {
    display: flex;
    flex-direction: row;
    overflow-y: hidden;
  }

  .modal-container::before {
    display: none;
  }

  .modal-image-container {
    width: 40%;
    min-width: 40%;
    max-height: none;
    height: 100%;
    min-height: auto;
    position: relative;
    top: auto;
    left: auto;
    right: auto;
  }

  .modal-image {
    min-height: 100%;
    height: 100%;
    object-fit: cover;
  }

  .modal-text {
    /* width: 60%; */
    /* max-width: 700px; */
    max-height: none;
    min-height: auto;
    margin-top: 0;
    border-radius: 0;
    box-shadow: none;
    overflow-y: auto;
  }

  .modal-title {
    font-size: 2rem;
  }

  .modal-description {
    font-size: 1.0625rem;
  }
}

/* Desktop (1024px+) : Enrichissement final */
@media (min-width: 1024px) {
  :root {
    --spacing-md: 2rem;
    --spacing-lg: 3rem;
    --spacing-xl: 5rem;
  }

  /* Navigation */
  .navbar {
    padding: var(--spacing-sm) 0;
  }

  .nav-logo {
    height: 50px;
  }

  .nav-menu {
    gap: var(--spacing-md);
  }

  .nav-link {
    font-size: 1rem;
    padding: var(--spacing-xs) var(--spacing-sm);
  }

  /* Typography */
  h1 {
    font-size: 2.5rem;
  }

  h2 {
    font-size: 2rem;
  }

  h3 {
    font-size: 1.5rem;
  }

  .highlight {
    font-size: 1.25rem;
  }

  .section-title {
    font-size: 2.5rem;
  }

  /* Hero */
  .hero {
    padding: 1rem 2rem;
  }

  /* Image de fond complète sur desktop (30vh) */
  .hero[data-has-bg]::before {
    height: 30vh;
  }

  .hero[data-has-bg]::after {
    height: 30vh;
  }

  .hero-wrapper {
    gap: clamp(0.75rem, 2vh, 1.5rem);
    justify-content: flex-start;
  }

  .hero-header {
    flex-shrink: 0;
  }

  .hero-logo {
    max-height: 28vh;
  }

  .hero-slogan {
    font-size: clamp(1.125rem, 2.5vw, 1.75rem);
    /* max-width: 70%; */
    line-height: 1.3;
  }

  .hero-main {
    gap: 0.5rem;
    flex-grow: 1;
    justify-content: center;
  }

  .hero-image {
    max-height: 40vh;
  }

  /* Mettre les CTAs et le lien secondaire sur la même ligne */
  .hero-footer {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-shrink: 0;
    margin-top: auto;
  }

  .hero-secondary {
    margin-top: 0;
  }

  .hero-cta-primary {
    font-size: 1.125rem;
    padding: 1rem 2rem;
  }

  .hero-secondary-link {
    font-size: 1rem;
    white-space: nowrap;
  }

  /* Cards - 3 colonnes sur desktop */
  .cards-grid,
  .cards-container {
    grid-template-columns: repeat(3, 1fr);
  }

  .theme-title {
    font-size: 1.75rem;
  }

  .card-title {
    font-size: 1.5rem;
  }

  #informations-pratiques .card-title {
    font-size: 1.75rem;
  }

  /* Informations pratiques - limiter la largeur */
  #informations-pratiques .cards-container {
    max-width: 800px;
    margin: 0 auto;
    grid-template-columns: 1fr;
  }
}

/* ============================================
   Paysage smartphone - Hero scrollable
   ============================================ */
@media (orientation: landscape) and (max-height: 500px) {
  .hero {
    min-height: 100dvh;
    height: 100dvh;
    padding: 0.5rem;
    overflow: hidden;
  }

  .hero[data-has-bg]::before,
  .hero[data-has-bg]::after {
    height: 15vh;
  }

  .hero-wrapper {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    grid-template-rows: 1fr auto;
    gap: 0.5rem;
    padding: 0.25rem 0;
    align-items: center;
    height: 100%;
  }

  /* Col 1 : Logo */
  .hero-header {
    grid-column: 1;
    grid-row: 1;
    gap: 0.25rem;
    align-self: center;
  }

  .hero-logo {
    max-height: 50vh;
    max-width: 100%;
  }

  /* Col 2 : Photo centrée, bien visible */
  .hero-main {
    grid-column: 2;
    grid-row: 1;
    min-height: 0;
    align-self: center;
    justify-content: center;
  }

  .hero-image {
    max-height: 70vh;
    width: auto;
    max-width: 100%;
  }

  /* Col 3 : Slogan */
  .hero-slogan {
    grid-column: 3;
    grid-row: 1;
    align-self: center;
    font-size: 0.7rem;
    line-height: 1.3;
    text-align: center;
  }

  /* Footer : boutons + réseaux sur une seule ligne, centré */
  .hero-footer {
    grid-column: 1 / -1;
    grid-row: 2;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    padding-bottom: 0.25rem;
    margin-top: 0;
  }

  .hero-cta-container {
    flex-direction: row;
    gap: 0.5rem;
    max-width: none;
    width: auto;
  }

  .hero-cta-primary {
    font-size: 0.75rem;
    padding: 0.4rem 0.75rem;
    width: auto;
  }

  .hero-secondary {
    margin-top: 0;
  }

  .hero-secondary-link {
    font-size: 0.7rem;
  }

  .hero-social {
    position: static;
    flex-direction: row;
    gap: 0.4rem;
  }

  .hero-social-link {
    width: 28px;
    height: 28px;
  }

  .hero-social-link svg {
    width: 14px;
    height: 14px;
  }
}

/* ============================================
   Informations pratiques - toujours en colonne
   ============================================ */
@media (min-width: 768px) {
  #informations-pratiques .cards-container {
    grid-template-columns: 1fr;
    max-width: 800px;
    margin: 0 auto;
  }

  /* Modal - Desktop : image peut prendre plus de place sur grands écrans */
  .modal-container {
    height: 90vh;
    max-height: 90vh;
  }

  .modal-content {
    flex-direction: row;
  }

  .modal-image-container {
    width: 45%;
    min-width: 45%;
  }

  .modal-text {
    /* width: 55%; */
  }

  .modal-title {
    font-size: 2.25rem;
  }

  .modal-close {
    width: 40px;
    height: 40px;
    top: var(--spacing-md);
    right: var(--spacing-md);
  }
}

/* ============================================
   Modal Project - Mobile First
   ============================================ */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.85);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.3s ease,
    visibility 0.3s ease;
  padding: var(--spacing-sm);
  overflow-y: auto;
}

.modal-overlay.modal-active {
  opacity: 1;
  visibility: visible;
}

.modal-container {
  background-color: var(--color-white);
  border-radius: 8px;
  max-width: 1400px;
  width: 100%;
  height: 95vh;
  max-height: 95vh;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  transform: scale(0.9);
  transition: transform 0.3s ease;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.modal-active .modal-container {
  transform: scale(1);
}

.modal-close {
  position: absolute;
  top: var(--spacing-sm);
  right: var(--spacing-sm);
  width: 36px;
  height: 36px;
  border: none;
  background-color: transparent;
  color: var(--color-text-light);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: all 0.3s ease;
  opacity: 0.6;
}

.modal-close:hover {
  background-color: rgba(0, 0, 0, 0.08);
  color: var(--color-primary);
  opacity: 1;
  transform: rotate(90deg);
}

.modal-close:focus {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
  opacity: 1;
}

.modal-content {
  display: block;
  overflow-y: scroll;
  overflow-x: hidden;
  height: 100%;
  position: relative;
  scroll-behavior: smooth;
}

.modal-image-container {
  width: 100%;
  overflow: hidden;
  height: 70vh;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1;
  pointer-events: none;
}

.modal-image {
  width: 100%;
  height: 100%;
  min-height: 300px;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

.modal-text {
  padding: var(--spacing-lg);
  background-color: var(--color-white);
  position: relative;
  z-index: 2;
  border-radius: 20px 20px 0 0;
  margin-top: 70vh;
  min-height: calc(95vh - 70vh + 100px);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
}

/* Dégradé d'opacité en haut quand on scroll */
.modal-container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 150px;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 1) 0%,
    rgba(255, 255, 255, 0.95) 15%,
    rgba(255, 255, 255, 0.8) 40%,
    rgba(255, 255, 255, 0.4) 70%,
    transparent 100%
  );
  z-index: 10;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.modal-container.modal-scrolled::before {
  opacity: 1;
}

.modal-title {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: var(--spacing-md);
  line-height: 1.3;
}

.modal-description {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--color-text);
}

.modal-description p {
  margin-bottom: var(--spacing-sm);
}

/* ============================================
   Page en construction
   ============================================ */
.construction-page {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  gap: var(--spacing-lg);
  padding: var(--spacing-md);
}

.construction-logo {
  max-width: 90%;
  width: 400px;
  height: auto;
  object-fit: contain;
}

.construction-text {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  color: var(--color-primary);
  text-align: center;
  margin: 0;
}

/* ============================================
   Utilities
   ============================================ */
.text-center {
  text-align: center;
}

.mb-1 {
  margin-bottom: var(--spacing-sm);
}

.mb-2 {
  margin-bottom: var(--spacing-md);
}

.mt-1 {
  margin-top: var(--spacing-sm);
}

.mt-2 {
  margin-top: var(--spacing-md);
}

/* ============================================
   Lazy Loading Images
   ============================================ */

/* Image en cours de chargement */
.lazy-image.lazy-loading {
  background: linear-gradient(90deg, #f0f0f0 0%, #e0e0e0 50%, #f0f0f0 100%);
  background-size: 200% 100%;
  animation: loading-shimmer 1.5s infinite;
  min-height: 200px;
}

/* Thumbnail chargé, en attente de l'image complète */
.lazy-image.lazy-thumbnail-loaded {
  filter: blur(5px);
  transition: filter 0.3s ease-in-out;
}

/* Image complètement chargée */
.lazy-image.lazy-loaded {
  filter: blur(0);
  animation: fade-in 0.4s ease-in-out;
}

/* Erreur de chargement */
.lazy-image.lazy-error {
  background: #f5f5f5;
  position: relative;
}

.lazy-image.lazy-error::after {
  content: "⚠️ Image non disponible";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #999;
  font-size: 0.9rem;
}

/* Animation de shimmer pour le loading */
@keyframes loading-shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

/* Animation de fade-in pour l'apparition */
@keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
