/* ===============================
   🌐 STYLE GLOBAL – Canigue Draw
   Contient UNIQUEMENT :
   - Reset global
   - Variables
   - Styles communs (navbar, boutons, etc.)
   - Styles partagés (cartes cohérentes, boutons partage)
================================ */

/* RESET GLOBAL */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  background-color: #fff;
  color: #222;
}

/* VARIABLES */
:root {
  --color-primary: #b30000;
  --color-dark: #222;
  --color-light: #fff;
  --color-grey: #eee;
}

/* ===============================
   HEADER + NAVBAR
================================ */
.site-header {
  background: var(--color-light);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.8rem 1rem;
}

.logo-img {
  height: 50px;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 1.5rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--color-dark);
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: var(--color-primary);
}

/* 🔹 Lien actif */
.nav-links a[aria-current="page"] {
  color: var(--color-primary);
  font-weight: bold;
}

/* Burger menu */
.burger {
  display: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
}

.burger .bar {
  width: 25px;
  height: 3px;
  background: var(--color-dark);
}

/* Responsive navbar */
@media (max-width: 768px) {
  .burger {
    display: flex;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    background: var(--color-light);
    position: absolute;
    top: 70px;
    right: 0;
    width: 200px;
    padding: 1rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  }

  .nav-links.active {
    display: flex;
  }
}

/* ===============================
   BOUTONS GLOBAUX
================================ */
.insta-btn {
  display: inline-block;
  background: var(--color-primary);
  color: var(--color-light);
  padding: 0.5rem 1.2rem;
  border-radius: 5px;
  text-decoration: none;
  transition: background 0.3s ease;
}

.insta-btn:hover {
  background: #900000;
}

/* ===============================
   CARTES COHÉRENTES (Portfolio, Boutique, Étudiants)
================================ */
.card {
  background: var(--color-light);
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  padding: 1rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
}

.card img {
  width: 100%;
  border-radius: 8px;
}

/* ===============================
   BOUTONS PARTAGE
================================ */
.share-buttons {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.share-buttons button {
  border: 1px solid #ddd;
  background: var(--color-light);
  padding: 0.4rem 0.8rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.share-buttons button:hover {
  background: var(--color-primary);
  color: var(--color-light);
  border-color: var(--color-primary);
}

/* Assure une pile au-dessus du contenu */
.site-header{
  position: relative;   /* ou sticky si tu veux qu'il colle en haut */
  z-index: 3000;
}

/* Le conteneur de référence pour le menu absolu en mobile */
.navbar{ position: relative; }

/* Menu mobile au-dessus de tout + scrollable si long */
@media (max-width: 768px){
  .nav-links{
    position: absolute;
    top: 70px;
    right: 1rem;
    z-index: 3500;               /* ↑ au-dessus des sections/vidéos */
    display: none;
    flex-direction: column;
    width: 38%;
    max-width: 220px;            /* un peu plus confortable */
    max-height: calc(100vh - 90px);
    overflow-y: auto;            /* si la liste dépasse la hauteur */
    padding: 1rem;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
  }
  .nav-links.active{ display: flex; }
}

/* === Burger mobile : toute la ligne cliquable + texte à gauche === */
@media (max-width: 768px){

  /* On réduit l'espacement et on corrige la position */
  .nav-links{
    gap: .25rem;
    right: 1.5rem; /* Corrigé ici */
  }

  .nav-links li{
    width: 100%;
  }

  .nav-links li a{
    display: block;              /* toute la ligne cliquable */
    width: 150%;                  /* ne dépasse plus */
    padding: 1rem -1rem;         /* espace intérieur, texte vers la gauche */
    border-radius: 9px;
    line-height: 2.5;
    text-decoration: none;
    text-align: left;             /* texte aligné à gauche */
  }

  .nav-links li a:hover{
    background-color: rgba(0,0,0,0.05);
  }

  .nav-links li a:focus-visible{
    outline: 2px solid rgba(179,0,0,.35);
    outline-offset: 2px;
  }

  /* Décalage du bouton burger lui-même */
  .burger{
    transform: translateX(-10px); /* Ajuste la valeur si besoin */
  }
}

/* Empêche tout scroll horizontal indésirable */
html, body {
  max-width: 100%;
  overflow-x: hidden;
}




/* ===============================
   FOOTER (optionnel si tu l’as global)
================================ */
footer {
  text-align: center;
  padding: 1rem;
  font-size: 0.9rem;
  color: #666;
}
