/* ==========================================================================
   /css/global.css - STYLE GLOBAL "CUBIQUE, CHIC & COLORÉ"
   ========================================================================== */
:root {
  --blue-dark: rgb(1, 0, 14);
  --blue-light: rgb(3, 57, 117);
  
  /* NOUVEAU : Rouge Théâtre vibrant pour remplacer le jaune (très élégant avec le bleu) */
  --accent: #e63946; 
  
  /* NOUVEAU : On utilise le bleu clair du header pour remplacer le noir brut */
  --primary-border: var(--blue-light); 

  --white: #ffffff;
  --bg-color: #fcfcfd; /* Fond très légèrement bleuté/cassé pour la douceur */
  --text-color: #1a1a1a;
}

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

body {
  font-family: Arial, sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main { flex: 1; }

h1, h2, h3, h4 {
  font-weight: bold;
  text-transform: uppercase;
  color: var(--blue-dark);
}

.titre-principal {
  font-size: 2.5rem;
  margin-bottom: 20px;
  border-left: 12px solid var(--accent); /* La touche de rouge */
  padding-left: 15px;
  line-height: 1.1;
}

.titre-section {
  font-size: 2rem;
  margin-bottom: 40px;
  text-align: center;
  border-bottom: 5px solid var(--primary-border); /* Bleu royal au lieu de noir */
  display: inline-block;
  padding-bottom: 5px;
  text-transform: uppercase;
  color: var(--blue-light);
}

.container { max-width: 1100px; margin: 0 auto; padding: 50px 20px; }

/* ==========================================================================
   LES UTILITAIRES CUBIQUES (Avec la nouvelle harmonie de bleus)
   ========================================================================== */
.box-cubique {
  border: 4px solid var(--primary-border);
  background-color: var(--white);
  padding: 30px;
  box-shadow: 10px 10px 0px var(--primary-border); /* Ombre pleine en bleu royal */
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.box-cubique:hover {
  transform: translate(-4px, -4px);
  box-shadow: 14px 14px 0px var(--primary-border);
}

.btn-cubique {
  display: inline-block;
  background-color: var(--blue-light);
  color: var(--white);
  padding: 12px 24px;
  text-decoration: none;
  font-weight: bold;
  border: 3px solid var(--primary-border);
  text-transform: uppercase;
  transition: all 0.3s ease;
  cursor: pointer;
  box-shadow: 5px 5px 0px var(--blue-dark); /* Ombre plus foncée pour le bouton */
}

.btn-cubique:hover {
  background-color: var(--accent); /* Devient rouge au survol ! */
  border-color: var(--accent);
  color: var(--white);
  transform: translate(-2px, -2px);
  box-shadow: 7px 7px 0px var(--blue-dark);
}

.grille-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.grille-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }

/* ==========================================================================
   LOADER & FOOTER
   ========================================================================== */
.loader-container {
    position: fixed; top: 0; left: 0; width: 100%; height: 100vh;
    background: linear-gradient(167deg, var(--blue-dark) 0%, var(--blue-light) 100%);
    display: flex; justify-content: center; align-items: center;
    z-index: 9999; transition: opacity 0.8s ease-out;
}

.loader-logo {
    width: 250px; height: auto;
    border: 5px solid var(--accent);
    box-shadow: 15px 15px 0px var(--blue-dark);
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.main-footer {
  background-color: var(--white);
  border-top: 5px solid var(--primary-border);
  margin-top: 50px;
}

.footer-content { padding: 50px 20px; }
.footer-logo { max-width: 150px; margin-bottom: 20px; border: 3px solid var(--primary-border); }

.titre-footer {
  font-size: 1.2rem; margin-bottom: 20px;
  border-bottom: 3px solid var(--accent);
  display: inline-block; padding-bottom: 5px;
  color: var(--blue-light);
}

.footer-links { list-style: none; }
.footer-links li { margin-bottom: 12px; }
.footer-links a { color: var(--text-color); text-decoration: none; font-weight: bold; transition: color 0.2s; }
.footer-links a:hover { color: var(--accent); }

.footer-social { display: flex; gap: 15px; margin-bottom: 15px; }
/* Les icônes passent en bleu foncé plutôt qu'en noir */
.social-icon-footer { width: 35px; height: 35px; transition: transform 0.2s; filter: invert(9%) sepia(50%) saturate(6011%) hue-rotate(233deg) brightness(85%) contrast(106%); }
.social-icon-footer:hover { transform: scale(1.1); }

.footer-bottom {
  text-align: center; padding: 20px;
  background-color: var(--blue-dark);
  color: var(--white);
  border-top: 3px solid var(--primary-border);
  font-weight: bold;
}
.footer-bottom a { color: var(--accent); text-decoration: none; }

@media (max-width: 850px) {
  .grille-2, .grille-3 { grid-template-columns: 1fr; }
}