/* Importation des polices Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Lato:wght@300;400;700&family=Raleway:wght@300;700&display=swap');

/* === Thème AUBE MARINE - CLAIR & ÉLÉGANT - ESTHÉTIQUE === */
:root {
  /* Couleurs de la lumière, de l'eau claire et du ciel d'été */
  --bg: #f8fcfc; /* Fond très clair, blanc cassé par le bleu-vert */
  --panel: #ffffff; /* Panneau/carte : blanc pur, léger comme un nuage */
  --muted: #62728f; /* Texte secondaire : gris-bleu doux (ombre légère) */
  --accent: #00bcd4; /* Bleu Cyan/Vert d'Eau Vif - accent "vague" */
  --accent-light: #50e3c2; /* Vert Mint très clair - pour les reflets */
  --text-dark: #2c3e50; /* Texte principal : bleu très sombre (profondeur) */

  /* Polices (Raleway pour les titres, Lato pour le corps) */
  --font-heading: 'Raleway', sans-serif; /* Titres : élégance moderne et lisible */
  --font-body: 'Lato', sans-serif; /* Corps : conservé pour sa lisibilité parfaite */
}

/* --- Fond global : Brume d'Aube --- */
body {
  font-family: var(--font-body);
  background-color: var(--bg);
  color: var(--text-dark);
  position: relative;
  overflow-x: hidden;

  /* Utilise un dégradé très léger pour la clarté */
  background: linear-gradient(135deg, #f8fcfc 0%, #f1f7f7 100%);
  background-size: cover;
  background-attachment: fixed;
  background-position: center center;
  background-repeat: no-repeat;
}

/* Pseudo-élément pour un effet de clarté ou de soleil */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* Légère teinte bleue/cyan pour l'ambiance "marine" */
  background: rgba(0, 188, 212, 0.05); 
  pointer-events: none;
  z-index: -1;
}
.main-nav a {
  border-radius: 6px;
}
.btn {
border-radius: 6px;
}
.pagination a, .pagination span {
  border-radius: 6px;
 } 
 .tag-cloud a {
   border-radius: 6px;
  } 
  .hero-content .btn {
    border-radius: 8px;
}
.sidebar {
  border-radius: 14px;
}
.contact {
  border-radius: 12px;
}
.contact .captcha img {
  border-radius: 6px;
 }
 .contact button {
   border-radius: 8px;
}
form {
border-radius: 10px;
}
input[type="text"],
input[type="email"],
textarea {
border-radius: 4px;
}


.card {
border-radius: 10px;
}
.hero-card {
  border-radius: 16px;
 }
.article-full::before {
    content: ""; 
    border-radius: 10px;
}
.article-photo img {
    border-radius: 8px;
}
.article-video-block .video-container {
    border-radius: 8px;
}
.article-video-block .video-container iframe {
    border-radius: 8px;
}
.article-link {
    border-radius: 8px;
}
@media (max-width: 768px) {
 .card { 
  border-radius:12px;
    }
}
/* --- Header : Barre de ciel --- */
.site-header {
  background: linear-gradient(90deg, var(--panel), #e0f7fa);
  border-bottom: 2px solid var(--accent-light);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05); /* Ombre très douce */
}

.header-inner { background: transparent !important; }
.site-title {
  color: var(--accent);
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
  font-family: var(--font-heading);
  font-weight: 300; /* Plus fin pour un look épuré */
  letter-spacing: 2px;
}
.main-nav a { 
  color: var(--text-dark); 
  text-decoration: none; 
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* 🤩 Effet "Vague Légère" sur les liens de navigation */
.main-nav a:hover {
  color: var(--accent);
  background: #e0f7fa;
  box-shadow: inset 0 -4px 0 0 var(--accent-light);
  transform: translateY(-2px);
}


/* === Bouton menu mobile === */
#menu-toggle {
  background: var(--accent);
  color: var(--panel);
  box-shadow: 0 4px 15px rgba(0, 188, 212, 0.3);
  transition: all 0.3s ease;
  border: none;
}
/* 🤩 Effet "Bulle qui monte" */
#menu-toggle:hover {
  background: var(--accent-light);
  box-shadow: 0 0 20px var(--accent-light), 0 5px 15px rgba(0, 0, 0, 0.2);
  transform: translateY(-2px) scale(1.05);
}

/* --- Sidebar : Nuage de coté --- */
.sidebar {
  background: var(--panel);
  box-shadow: 4px 0 20px rgba(0, 0, 0, 0.08), 
              inset 0 0 5px rgba(0, 188, 212, 0.05);
  border: 1px solid var(--accent-light);
  transition: transform 0.4s ease, opacity 0.4s ease;
}

.sidebar ul li.menu-title {
  color: var(--accent);
  transition: all 0.25s ease-in-out;
  font-family: var(--font-heading);
  font-weight: 700;
}

.sidebar ul li.menu-title:hover {
  background: transparent;
  color: var(--accent);
  transform: none;
  text-shadow: 0 0 5px var(--accent-light);
}

.sidebar h3 {
  color: var(--text-dark);
  border-bottom: 1px solid rgba(0, 188, 212, 0.2);
  font-family: var(--font-heading);
  font-weight: 700;
}

.sidebar ul li a {
  color: var(--muted);
  transition: all 0.4s cubic-bezier(0.19, 1, 0.22, 1);
}

/* 🤩 Effet "Onde" sur les liens de sidebar */
.sidebar ul li a:hover {
  background: rgba(0, 188, 212, 0.08);
  color: var(--accent);
  transform: translateX(8px);
  text-shadow: 0 0 8px rgba(0, 188, 212, 0.4);
  font-weight: bold;
}
/* Scrollbar Aube Marine */
.sidebar::-webkit-scrollbar-track {
    background: var(--bg);
}
.sidebar::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 10px;
}
.sidebar::-webkit-scrollbar-thumb:hover {
    background: var(--accent-light);
}
/* Firefox */
.sidebar {
    scrollbar-color: var(--accent) var(--bg);
}


/* --- Cards (Effet Flottant / Ombre Portée) --- */
.card {
  background: var(--panel);
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(0, 188, 212, 0.1);
  transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* 🤩 Effet "Lévitation et Rayonnement" */
.card:hover {
  transform: translateY(-8px) rotateZ(-0.5deg); 
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15), 0 0 25px var(--accent-light);
}

.meta { color: var(--muted); }

/* --- TITRES D'ARTICLE (MISE À JOUR) --- */
article.card div.excerpt h3 a {
    color: var(--text-dark); 
    font-family: var(--font-heading); 
    font-weight: 700; 
    text-decoration: none;
    transition: color 0.4s ease-in-out, box-shadow 0.4s ease-in-out, transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    
    /* Ligne de flottaison par défaut */
    box-shadow: inset 0 -3px 0 0 rgba(0, 188, 212, 0.1); 
    display: inline-block; 
}

/* 🤩 Effet "Vague Montante" au survol */
article.card div.excerpt h3 a:hover {
    color: var(--accent); 
    transform: translateY(-2px); 
    box-shadow: inset 0 -4px 0 0 var(--accent-light); 
    text-shadow: 0 0 8px rgba(0, 188, 212, 0.3);
}
/* ------------------------------------- */

.btn {
  background: linear-gradient(45deg, var(--accent), var(--accent-light));
  color: white;
  box-shadow: 0 4px 15px rgba(0, 188, 212, 0.4);
  transition: all 0.4s ease;
}
/* 🤩 Effet "Pulsation" sur le bouton */
.btn:hover {
  background: linear-gradient(45deg, #50e3c2, #00bcd4);
  box-shadow: 0 0 20px var(--accent-light), 0 8px 20px rgba(0, 188, 212, 0.6);
  transform: scale(1.05);
}

/* === Footer : Vague au loin === */
.site-footer {
  background: #e0f7fa;
  color: var(--muted);
  border-top: 3px solid var(--accent);
  box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.05);
}
.footer-links a { color: var(--accent); }
.footer-links a:hover { text-decoration: underline; color: var(--text-dark); }

/* === Pagination : Galets lumineux --- */
.pagination a, .pagination span { transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1); border-radius: 50%; padding: 8px 12px; }

.pagination a {
  background: var(--panel);
  color: var(--text-dark);
  border: 1px solid rgba(0, 188, 212, 0.2);
}
/* 🤩 Effet "Reflet d'eau" */
.pagination a:hover {
  background: var(--accent-light);
  color: var(--text-dark);
  box-shadow: 0 0 15px var(--accent);
  border-color: var(--accent);
  transform: scale(1.1);
}
.pagination .current {
  background: var(--accent);
  color: white;
  font-weight: bold;
  box-shadow: 0 0 15px var(--accent-light);
}
.pagination .dots { color: #ccc; }

/* === Nuage de tags : Bulles d'oxygène === */
#tags h2 {
  color: var(--accent);
  text-shadow: 0 0 10px var(--accent-light);
  font-family: var(--font-heading);
  font-weight: 700;
}
.tag-cloud a {
  color: var(--muted);
  transition: all 0.5s ease;
  opacity: 0.8;
  /* Mouvement d'ascension */
  animation: bubbleFloat 12s ease-in-out infinite; 
}

/* 🤩 Effet "Bulle de Tag" */
.tag-cloud a:hover {
  color: var(--accent);
  opacity: 1;
  transform: scale(1.3) rotateZ(-3deg);
  text-shadow: 0 0 15px var(--accent-light);
}
@keyframes bubbleFloat {
  0%,100% { transform: translateY(0px) rotateZ(0deg); }
  33% { transform: translateY(-10px) rotateZ(2deg); }
  66% { transform: translateY(5px) rotateZ(-1deg); }
}


/* === Hero / Catégories : Dalles de verre d'eau === */
.categories-hero {
  background: linear-gradient(180deg, var(--bg) 0%, #e0f7fa 100%);
}
.hero-card {
  background: var(--panel);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15),
              inset 0 0 8px rgba(0, 188, 212, 0.05);
  border: 1px solid rgba(0, 188, 212, 0.1);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  animation: fadeUp 0.8s ease both;
}
/* 🤩 Effet "Miroir d'eau" */
.hero-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.2), 0 0 25px var(--accent);
}
.hero-card figure { background: #e0f7fa; }
.hero-content {
  background: linear-gradient(to top, var(--panel) 0%, #f1f7f7 100%);
  color: var(--text-dark);
}
.hero-content h3.cat-name {
  color: var(--accent);
  text-shadow: 0 0 8px var(--accent-light);
  font-family: var(--font-heading);
  font-weight: 700;
}
.hero-content h4 { color: var(--text-dark); }
.hero-content p { color: var(--muted); }
.hero-content .btn {
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  color: white;
  box-shadow: 0 4px 12px rgba(0, 188, 212, 0.4);
}
.hero-content .btn:hover {
  background: linear-gradient(135deg, var(--accent-light), var(--accent));
  transform: scale(1.08);
  box-shadow: 0 5px 16px rgba(0, 188, 212, 0.6);
}
@keyframes fadeUp { from { opacity:0; transform:translateY(20px);} to { opacity:1; transform:translateY(0);} }

/* --- Responsive général --- */
@media (max-width: 768px) {
  .card {
    background: var(--panel);
    border: 1px solid rgba(0, 188, 212, 0.15);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
}

/* === Sections Catégorie === */
.category-title {
  color: var(--accent);
  text-shadow: 0 0 10px var(--accent-light);
  font-family: var(--font-heading);
  font-weight: 700;
}
.no-article { color: var(--muted); }

/* === Formulaire de contact – Lumière sur l'eau === */
.contact {
  background: var(--panel);
  border: 1px solid rgba(0, 188, 212, 0.1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1),
              inset 0 0 8px rgba(0, 188, 212, 0.05);
  color: var(--text-dark);
  border-radius: 12px;
}

.contact h2 {
  color: var(--accent);
  font-family: var(--font-heading);
  font-weight: 700;
}

.contact input:focus,
.contact textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 10px var(--accent-light);
  outline: none;
}
.contact h2,
.category-title {
  color: var(--accent);
  text-shadow: 0 0 10px var(--accent-light);
  font-family: var(--font-heading);
  font-weight: 700;
}

/* Captcha */
.contact .captcha img {
  background: #eee;
  border: 1px solid var(--accent-light);
}

.contact .captcha a { color: var(--muted); }
.contact .captcha a:hover { color: var(--accent); }

/* Bouton d’envoi */
.contact button {
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  color: white;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 188, 212, 0.4);
}
/* 🤩 Effet "Vague de Soumission" */
.contact button:hover {
  background: linear-gradient(135deg, var(--accent-light), var(--accent));
  transform: scale(1.08);
  box-shadow: 0 5px 16px rgba(0, 188, 212, 0.6);
}

/* Messages de feedback */
.contact .feedback-success { color: #28a745; }
.contact .feedback-error { color: #dc3545; }

form {
  background: var(--panel);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1),
              inset 0 0 8px rgba(0, 188, 212, 0.05);
  border: 1px solid rgba(0, 188, 212, 0.1);
  border-radius: 8px;
}

label {
  color: var(--text-dark);
  text-shadow: 0 0 2px rgba(0, 188, 212, 0.1);
}

input[type="text"],
input[type="email"],
textarea {
  background: var(--bg);
  color: var(--text-dark);
  border: 1px solid #ddd;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

input:focus,
textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 10px var(--accent-light);
  outline: none;
}

button[type="submit"] {
  /* Réutilise le style du bouton .btn */
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  color: white;
  box-shadow: 0 4px 12px rgba(0, 188, 212, 0.4);
  transition: all 0.3s ease;
}

button[type="submit"]:hover {
  background: linear-gradient(135deg, var(--accent-light), var(--accent));
  transform: scale(1.08);
  box-shadow: 0 5px 16px rgba(0, 188, 212, 0.6);
}

section.contact form p.info-rgpd {
  color: var(--muted);
}

/* Style pour les Blockquotes (Citations) - OPTIMISATION */
blockquote {
    font-style: italic;
    padding: 15px 20px;
    margin: 20px 0;
    border-left: 5px solid var(--accent);
    background-color: #e0f7fa; /* Fond tres clair bleu/mint */
    color: var(--text-dark);
    border-radius: 0 10px 10px 0;
    box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.05);
}

blockquote footer {
    display: block;
    margin-top: 10px;
    font-size: 0.9em;
    color: var(--muted);
}

/* === ARTICLE HERO-LIKE CENTRÉ === */
.article-full {
    background: var(--panel);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border: 1px solid rgba(0, 188, 212, 0.1);
}

/* --- fond léger derrière l'article (effet aura) --- */
.article-full::before {
    background: linear-gradient(135deg, rgba(80, 227, 194, 0.08), rgba(255,255,255,0.05));
}

/* --- image/video centrée dans l’article --- */
.article-photo img,
.article-video-block img,
.article-video-block .video-container,
.article-video-block .video-container iframe {
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* --- texte et metadonnees inchanges --- */
article .result-meta {
    color: var(--muted);
}

.article-link {
    background: #f1f7f7;
    border-radius: 8px;
    border: 1px solid rgba(0, 188, 212, 0.15);
}

.article-link .link-comment {
    color: var(--muted);
}

.article-link .link-item a {
    color: var(--accent);
}

.article-link .link-item a:hover {
    text-decoration: underline;
    color: var(--accent-light);
}

.article-content p {
    color: var(--text-dark);
}

/* --- Partage social (Bulles) --- */
.social-share a {
  color: white;
  background-color: var(--muted);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
  transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.4s ease;
}

/* 🤩 Effet "Bulle Qui Éclate" */
.social-share a:hover {
  transform: scale(1.3) rotate(10deg); 
  box-shadow: 0 0 15px var(--accent);
}

/* Couleurs specifiques aux reseaux sociaux */
.facebook:hover { background-color: #3b5998; }
.twitter:hover  { background-color: #00acee; }
.linkedin:hover { background-color: #0077b5; }
.instagram:hover {
  background: radial-gradient(circle at 30% 107%, var(--accent-light) 0%, var(--accent) 45%, var(--accent-light) 60%, #e0f7fa 90%);
}

/* =========================================================
   news et timeline (Aube Marine Harmonisé)
   ========================================================= */

/* Le conteneur du fil d'actualité */
.sidebar-right.news-feed {
    background: #e0f7fa;
    border: 1px solid var(--accent-light); 
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); 
}

/* 2a. La ligne verticale de la timeline */
.sidebar-right.news-feed::before {
    background: var(--accent); 
}

/* 2d. L'horloge / Montre en haut de la timeline */
.sidebar-right.news-feed::after {
    color: var(--accent); 
    background: #e0f7fa; 
    text-shadow: 0 0 6px var(--accent-light);
}

/* 2c. Le point de la timeline (généré sur chaque li) */
.news-feed li::before {
    background: var(--panel); 
    border: 3px solid var(--accent); 
    box-shadow: 0 0 8px rgba(0, 188, 212, 0.5); 
    transition: all 0.3s ease;
}

/* 🤩 Effet "Goutte d'eau" */
.news-feed li:hover::before {
    background: var(--accent);
    transform: scale(1.2);
    box-shadow: 0 0 15px var(--accent);
}

/* Bordure de séparation des éléments de la liste */
.news-feed li {
    border-bottom: 1px dashed rgba(0, 188, 212, 0.15); 
}


/* 3. STYLES VISUELS ET TYPOGRAPHIE */
.news-feed h2 {
    color: var(--text-dark); 
    border-bottom: 2px solid var(--accent); 
    margin-bottom: 10px;
    padding-bottom: 5px;
    font-family: var(--font-heading);
    font-weight: 700;
}

.news-feed li strong {
    color: var(--text-dark); 
    font-weight: 700;
}

.news-feed li p {
    color: var(--muted); 
}