/* css/styles.css - Version améliorée */

/* Variables CSS pour thème Noël */
:root {
  --noel-red: #c41e3a;
  --noel-green: #2d5016;
  --noel-gold: #d4af37;
  --noel-white: #ffffff;
  --noel-bg: #f8f5f0;
  --noel-dark: #1a1a1a;
}

/* Base */
body {
  background: linear-gradient(to bottom, var(--noel-bg) 0%, #fff 100%);
  min-height: 100vh;
}

/* En-tête festive */
.center.w80 {
  position: relative;
  padding-top: 20px;
}

/* Effet de bordure décorative */
.center.w80::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--noel-red), var(--noel-green), var(--noel-gold));
}

/* Image principale améliorée */
img[src*="noel_midjourney_ld.jpg"] {
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(196, 30, 58, 0.25);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  max-width: 100%;
}

img[src*="noel_midjourney_ld.jpg"]:hover {
  transform: scale(1.02);
  box-shadow: 0 12px 40px rgba(196, 30, 58, 0.35);
}

/* Titres festifs */
h1 {
  color: var(--noel-red) !important;
  font-weight: 700;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
  position: relative;
}

h1::after {
  content: "🎄";
  margin-left: 10px;
}

h1:nth-child(3)::after {
  content: "✨";
}

/* Texte statistique mis en valeur */
p[class*="txtcenter"][style*="#D9534F"] {
  background: rgba(196, 30, 58, 0.08);
  border-radius: 8px;
  padding: 16px;
  border-left: 4px solid var(--noel-red);
}

/* Classes personnalisées */
.grasvert {
  font-weight: 600;
  color: var(--noel-green);
  position: relative;
}

.grasvert::before {
  content: "🎁 ";
}

/* Formulaires stylisés */
input[type="text"],
input[type="email"],
input[type="password"] {
  border: 2px solid #ddd;
  border-radius: 6px;
  padding: 12px 16px;
  width: 100%;
  max-width: 350px;
  margin-bottom: 12px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

input:focus {
  outline: none;
  border-color: var(--noel-red);
  box-shadow: 0 0 0 3px rgba(196, 30, 58, 0.15);
}

input[type="submit"] {
  background: linear-gradient(135deg, var(--noel-red), #a0152f);
  color: white;
  border: none;
  border-radius: 6px;
  padding: 14px 28px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

input[type="submit"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(196, 30, 58, 0.35);
}

/* Liens accentués */
a {
  color: var(--noel-green);
  font-weight: 500;
}

a:hover {
  color: var(--noel-red);
}

/* Alertes améliorées */
.alert--warning {
  background: #fff3cd;
  border-left: 4px solid #ffc107;
  border-radius: 4px;
  padding: 12px 16px;
}

.alert--success {
  background: #d4edda;
  border-left: 4px solid var(--noel-green);
  border-radius: 4px;
  padding: 12px 16px;
}

/* Liste des dates mise en avant */
ul {
  background: rgba(45, 80, 22, 0.08);
  border-radius: 8px;
  padding: 16px 16px 16px 32px;
  border-left: 4px solid var(--noel-green);
}

li {
  margin-bottom: 8px;
  position: relative;
}

li::before {
  content: "★";
  color: var(--noel-gold);
  margin-right: 8px;
}

/* Footer stylisé */
footer {
  background: var(--noel-dark);
  color: white;
  margin-top: 40px;
  padding: 24px;
}

/* Responsive */
@media (max-width: 768px) {
  .grid-2.has-gutter {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }
  
  h1 {
    font-size: 1.5em !important;
  }
  
  img[src*="noel_midjourney_ld.jpg"] {
    max-height: 250px;
  }
}

/* Animation neige optionnelle (décommenter si souhaité) */

.snow {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1000;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 10 10"><circle cx="5" cy="5" r="1" fill="white" opacity="0.3"/></svg>');
  background-size: 50px 50px;
  animation: snowfall 10s linear infinite;
}

@keyframes snowfall {
  from { background-position: 0 0; }
  to { background-position: 0 100px; }
}
