@charset "utf-8";
/* === MODE SOMBRE GLOBAL === */
:root {
    --background-color: #2c3e50;  /* Fond sombre */
    --text-color: white; /* Texte clair */
    --link-color: #1abc9c; /* Couleur des liens */
    --hover-color: #000000; /* Couleur des liens au survol */
}

/*body {
    background-color: var(--background-color);
    color: var(--text-color);
}*/


* {
  box-sizing: border-box;
  max-width: 100%;
}

/*body {
  margin: 0;
  padding: 0;
  font-family: sans-serif;
  background: #1e2c38;
  color: #fff;
}*/


.pentecote-message {
  font-weight: bold;
  padding: 10px;
  text-align: center;
}

@media (prefers-color-scheme: dark) {
  .pentecote-message {
    color: #f0e68c; /* jaune dorÃ© sur fond foncÃ© */
  }
}

@media (prefers-color-scheme: light) {
  .pentecote-message {
    color: #444444; /* gris foncÃ© sur fond clair */
  }
}

a {
    color: var(--link-color);
    text-decoration: none;
}

a:hover {
    color: var(--hover-color);
}

/* Si certains blocs ont encore un fond blanc, les assombrir */
.section, .article-preview, .articles-section {
    background: #34495e; /* Fond un peu plus clair que le body */
    color: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* === AUTRES STYLES ICI === */
/* ... (Garde ton CSS habituel aprÃ¨s Ã§a) */



body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif; /* ou sans-serif si tu prfres */
    background-color: var(--background-color);
    color: var(--text-color);
}




.light-mode .nav-wrapper h1 { color: black; }
.light-mode .welcome-message h2 { color: white; }
.light-mode .mode-toggle .label { color: black;
}


.nav-wrapper {
    max-width: 1150px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.nav-menu {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 10px;
	
}

.nav-wrapper h1 {
    color: white;
    font-size: 2em;
    margin: 0;
}

.nav-button {
	background: #1abc9c;
    padding: 12px 18px;
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: bold;
    /*transition: background 0.3s ease-in-out;*/
	margin: 12px; /* Ajoute un lÃ©ger espacement autour des boutons */
	box-shadow: 0 0 5px rgba(0, 0, 0, 1);
  	text-shadow: 2px 2px 2px black;
	transition: transform 1s ease, box-shadow 1s ease; /* Transition plus fluide */
	
}

.nav-button:hover {
    background: #16a085;
	transform: scale(1.10);
	text-shadow: 2px 2px 2px black;
	transition: transform 1s ease, box-shadow 1s ease; /* Transition plus fluide */
}

/* --- MODE SOMBRE (par défaut) ------------------------------------ */
body:not(.light-mode) .nav-button:hover {
  background-color: #12c29b;   /* ton vert ICN */
  color: #ffffff;              /* texte blanc => lisible */
}

/* --- MODE CLAIR -------------------------------------------------- */
.light-mode .nav-button {
  background-color: #ffffff;   /* fond blanc pro */
  color: #0b2a33;              /* texte foncé lisible */
  border: 1px solid #cfd9df;   /* contour élégant */
}

.light-mode .nav-button:hover {
  background-color: #12c29b;   /* même vert que hover dans big-button → cohérence */
  color: #ffffff;              /* texte blanc bien visible */
  border-color: #12c29b;
}


/* Style normal (inchangé, au cas où) */
.big-button {
  transition: background-color .20s ease, color .20s ease, transform .12s ease;
}

/* Effet "pression" quand on clique */
.big-button:active {
  transform: scale(0.97);
	
}

/* --- MODE SOMBRE (par défaut) ---------------------------------------- */
body:not(.light-mode) .big-button:hover {
  background-color: #1ce0b4; /* vert un peu plus vivant */
  color: #ffffff; /* texte bien lisible */
}

/* --- MODE CLAIR ------------------------------------------------------ */
.light-mode .big-button {
  background-color: #ffffff;     /* bouton blanc propre */
  color: #0b2a33;                /* texte foncé lisible */
  border: 1px solid #cfd9df;     /* contour soft, élégant */
}

.light-mode .big-button:hover {
  background-color: #12c29b;     /* ton vert ICN mais doux */
  color: #ffffff;                /* texte blanc bien visible */
  border-color: #12c29b;
}


.login-button {
    background: #e74c3c;
    padding: 10px 15px;
    color: white;
    border-radius: 5px;
    cursor: pointer;
}

.main-container {
    max-width: 1150px;
    margin: auto;
    padding: 20px;
}

.section {
    /* background: #1abc9c; */ /* Fond sombre */
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

	.journal-articles-container {
  	display: flex;
  	gap: 20px;
  	align-items: stretch; /* âœ… Magie ici */
	height: auto; /* ou une hauteur fixe si besoin, genre 500px */

}

.journal-section {
  background-color: #2c3e50;
  flex: 1;
  padding: 30px;
  border-radius: 20px;
  border: 1px solid #1abc9c;
  box-shadow: 0 0 12px rgba(0,0,0,0.3);
  transition: transform 0.2s ease;
  /* height: 100%; */ /* ðŸ” Ã  Ã©viter si le parent est en auto */
  /* margin: auto; */  /* ðŸ” mieux de le virer */
  min-height: 400px; /* âœ… optionnel mais efficace */
  text-align: center;
}

	.journal-section:hover {
  	transform: scale(1.01);
  	box-shadow: 0 0 15px #1abc9c; /* glow vert */
}

.articles-section {
	background-color: #34495e;
	border-radius: 20px;
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 15px;
	margin-left: 20px;
}

.journal-image {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
	box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  	margin-top: 10px;
}

.article-preview {
	var(--background-color)
	var(--text-color)
    display: flex;
    flex-direction: column;
    padding: 10px;
    border-radius: 5px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    margin-bottom: 10px;	
}

.article-preview h4 {
	var(--background-color)
	var(--text-color)
    margin: 0;
    font-size: 16px;
    font-weight: bold;
}

.article-preview p {
	var(--background-color)
	var(--text-color)
    font-size: 14px;
    margin: 10px 0;
}

.article-preview:hover {
	var(--background-color)
	var(--text-color)
    transform: scale(1.02); /* RÃ©duit l'agrandissement pour un effet plus doux */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15); /* Ombre plus lÃ©gÃ¨re */
    transition: transform 0.5s ease, box-shadow 0.4s ease; /* Transition plus fluide */
}

.article-image {
	var(--background-color)
	var(--text-color)
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 5px;
    margin-bottom: 10px;
}

.article-content {
	var(--background-color)
	var(--text-color)
	display: flex;
    flex-direction: column;
}

.article-content h4 {
    margin: 0;
    font-size: 16px;
}

.article-content p {
    font-size: 14px;
    color: #555;
}

.article-button {
    display: block;
    text-align: center;
    padding: 8px 12px;
    background: #1abc9c;
    color: white;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    margin-top: 10px; /* Espacement entre le texte et le bouton */
    width: fit-content;
    align-self: center; /* Centre le bouton */
}

.article-button:hover {
    background: #16a085;
}

.empty-block {
    width: 100%;
    height: 100px;
    margin-bottom: 30px;
}


/* Wrapper centré */
.mode-toggle{
  display:flex; align-items:center; justify-content:center;
  gap:12px; margin:22px 0;
}

/* Libellés */
.mode-toggle .label{
  font-weight:600; font-size:.95rem; opacity:.65; color:#e9eef2;
}

/* Switch métal */
.switch{ position:relative; width:60px; height:30px; display:inline-block; }
.switch input{ position:absolute; opacity:0; inset:0; }

/* Rail “metal” */
.switch .track{
  position:absolute; inset:0; border-radius:999px;
  background: linear-gradient(180deg,#c7ced6,#9aa3ad);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.7),
    inset 0 -1px 0 rgba(0,0,0,.18),
    0 3px 8px rgba(0,0,0,.25);
  transition: background .25s ease, box-shadow .25s ease;
}

/* Pastille */
.switch .thumb{
  position:absolute; left:2px; top:2px; width:26px; height:26px; border-radius:50%;
  background: linear-gradient(180deg,#fff,#e3e7eb);
  box-shadow:
    0 1px 3px rgba(0,0,0,.25),
    inset 0 1px 0 rgba(255,255,255,.9);
  transition: transform .25s ease;
}

/* État “sombre” activé */
.switch input:checked + .track{
  background: linear-gradient(180deg,#2b3038,#0f1216);
  box-shadow:
    inset 0 0 0 2px rgba(16,194,154,.28),        /* liseré vert ICNET */
    inset 0 10px 18px rgba(16,194,154,.12),
    0 3px 8px rgba(0,0,0,.25);
}
.switch input:checked + .track .thumb{ transform: translateX(30px); }

/* Accessibilité focus clavier */
.switch input:focus + .track{
  box-shadow:
    0 0 0 3px rgba(16,194,154,.35),
    inset 0 1px 0 rgba(255,255,255,.7);
}



/* .welcome-message {
    text-align: center;
    padding: 20px;
    background: #34495e;
    color: white;
    font-size: 1.5em;
    border-radius: 5px;
    margin: 20px auto;
    max-width: 800px;
	max-height: 200px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
} */


/* HERO "Bienvenue" avec image + voile */
.welcome-message{
  position: relative;
  max-width:1111px;
  margin: 16px auto 0 auto;
  aspect-ratio: 1700 / 530;
  border-radius:18px;
  overflow:hidden;
display:flex;
flex-direction:column;
justify-content:center;
align-items:center;
  color:#fff;
  text-align:center;
  box-shadow:
    0 0 40px rgba(26,188,156,.45),
    0 0 40px rgba(26,188,156,.55),
    0 0 80px rgba(26,188,156,.25);
}

.welcome-message:hover{
  box-shadow:
    0 0 50px rgba(26,188,156,.65);
}

.light-mode .welcome-message{
  box-shadow:
    0 0 30px rgba(26,188,156,.65);
}

.light-mode .welcome-message:hover{
  box-shadow:
    0 0 50px rgba(26,188,156,.65);
}


.welcome-message:hover .hero-slideshow span{
  transform: scale(1.10);
  animation-play-state: paused;
}

/* Slideshow derrire */
.hero-slideshow{
  position:absolute;
  inset:0;
  z-index:0;
  pointer-events:none;
}

.hero-slideshow span{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  display:block;

  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  background-color:#2c3e50;

  opacity:0;
  animation: fadeSlide 12s infinite;
  animation-fill-mode: both;

  transform: scale(1.02);
  transition: transform 6s ease;
  will-change: opacity, transform;
}




/* Overlay au milieu */
.welcome-message::before{
  content:"";
  position:absolute;
  inset:0;
  z-index:1;
  background:
    linear-gradient(180deg, rgba(0,0,0,.25) 0%, rgba(0,0,0,.60) 100%),
    rgba(0,195,137,.07);
  background-blend-mode: multiply;
  pointer-events:none;
}

/* Texte au-dessus (PAS * ) */
.welcome-message h2,
.welcome-message .link{
  position:relative;
  z-index:2;
  text-shadow:0 1px 2px rgba(0,0,0,.6);
}



/* dlais (4 images => 12s total => 3s chacune) */
.hero-slideshow span:nth-child(1){ animation-delay: 0s; }
.hero-slideshow span:nth-child(2){ animation-delay: 3s; }
.hero-slideshow span:nth-child(3){ animation-delay: 6s; }
.hero-slideshow span:nth-child(4){ animation-delay: 9s; }

@keyframes fadeSlide{
  0%   { opacity:0; }
  8%   { opacity:1; }   /* fade-in rapide */
  25%  { opacity:1; }   /* reste visible */
  33%  { opacity:0; }   /* fade-out */
  100% { opacity:0; }
}



.grid-container {
    display: flex; /* Permet d'afficher les boutons en ligne */
    justify-content: center; /* Centre les boutons */
    flex-wrap: wrap; /* Permet d'aller Ã  la ligne si nÃ©cessaire */
    gap: 15px; /* Espacement entre les boutons */
	
}

.big-button {
	margin: 15px; /* Ajoute un lÃ©ger espacement autour des boutons */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 9px;
    background: #1abc9c; /* Couleur verte */
    color: white;
    text-align: center;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    font-size: 16px;
    transition: background 0.3s, transform 0.2s;
    min-width: 220px; /* Taille minimum pour tous les boutons */
	box-shadow: 0 0 5px rgba(0, 0, 0, 1);
  	text-shadow: 2px 2px 2px black;
	
}

.big-button i {
    font-size: 18px;
    margin-right: 8px; /* Espace entre l'icÃ´ne et le texte */
	
	
}

.big-button:hover {
    background: #16a085;
    transform: scale(1.10);
	text-shadow: 2px 2px 2px black;
	transition: transform 1s ease, box-shadow 1s ease; /* Transition plus fluide */
	
}

.box-container {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px 20px;
  background-color: var(--background-color);
}

.gg-message {
  background-color: #34495e;
  color: white;
  padding: 0px 20px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  font-size: 0.6em;
  font-style: italic;
  max-width: 1150px;
  text-align: center;
}

.gg-message a {
  color: #1abc9c;
  text-decoration: none;
}

.gg-message a:hover {
  color: #16a085;
  text-decoration: underline;
}


.box-citation {
  width: 100%;
  max-width: 1150px;
  margin: 0 auto;
  margin-bottom: 40px; /* ou ce que tu veux */
  padding: 20px;
  background-color: #0a0a0a;
  color: #1abc9c; /* ou blanc si tu prÃ©fÃ¨res */
  text-align:center;
  font-style: italic;
  font-size: 18px;
  border: 2px solid #1abc9c;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  transition: transform 0.2s ease;
 
}

  .box-citation:hover {
  transform: scale(1.01);
  box-shadow: 0 0 15px #1abc9c; /* glow vert */
}

.box-X {
  width: 100%; /* ou 95% si tu veux un petit bord */
  max-width: 1150px; /* si tu veux Ã©viter que ce soit trop large */
  margin: 0 auto; /* pour centrer */
  padding: 20px;
  background-color: #0a0a0a;
  color: white;
  border: 2px solid #1abc9c;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

/* === MODE CLAIR ALTERNATIF === */




.light-mode {
    background-color: #ffffff;
    text-color: #111111;
    link-color: #1abc9c;
    hover-color: #ffffff;
}

.light-mode .section,
.light-mode .article-preview,
.light-mode .articles-section,
.light-mode .welcome-message,
.light-mode .journal-section {
    background-color: #f4f4f4;
    color: #111;
}

/* Mode clair : article-button seulement */
.light-mode .article-button {
  background: #1a73e8;
  color: white;
}

.light-mode .article-button:hover {
  background: var(--hover-color);
}

/* =========================
   PATCH ICNET — NAV & BIG BUTTONS
   (à coller tout en bas du CSS)
   ========================= */

/* Mode Sombre (par défaut) : nav + big buttons hover lisibles */
body:not(.light-mode) .nav-button:hover,
body:not(.light-mode) .big-button:hover {
  background-color: #12c29b; /* vert ICN */
  color: #ffffff;
}

/* Mode Clair : base propre + hover vert */
.light-mode .nav-button,
.light-mode .big-button {
  background-color: #ffffff;
  color: #0b2a33;
  border: 1px solid #cfd9df;
}

.light-mode .nav-button:hover,
.light-mode .big-button:hover {
  background-color: #12c29b;
  color: #ffffff;
  border-color: #12c29b;
}

/* Effet pression premium (léger) */
.nav-button:active,
.big-button:active {
  transform: scale(0.97);
  transition: background-color .2s ease, color .2s ease, transform .1s ease;
}

/* (Optionnel) si tu veux garder des valeurs globales variables cohérentes */
.light-mode {
  --hover-color: #12c29b; /* au cas où une règle en dépend encore */
}

/* --- NAV-BUTTON : HOVER en DARK (force la main sur d’anciennes règles) --- */
body:not(.light-mode) .nav-button:hover {
  background: #12c29b !important;   /* utiliser 'background' au cas où tu avais un 'background:' avant */
  color: #ffffff !important;
}

/* Harmonise les ombres (optionnel, mais ça fait pro) */
body:not(.light-mode) .nav-button,
body:not(.light-mode) .big-button {
  /*box-shadow: 0 6px 18px rgba(0,0,0,.32);*/
}
.light-mode .nav-button,
.light-mode .big-button {
  box-shadow: 0 6px 18px rgba(32,61,78,.16);
}

/* === BOUTONS NAV — MODE CLAIR === */
.light-mode .nav-button {
  background: #1a73e8;          /* bleu très clair, pas blanc qui flash */
  color: #fff;               /* gris-bleu foncé pour bonne lisibilité */
  border: 1px solid #bcd8f0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: 0.25s ease;
}

.light-mode .nav-button:hover {
  background: #1a73e8;          /* bleu “Google Apps”, pro & doux */
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(0,0,0,0.15);
}

/* === BIG BUTTONS — MODE CLAIR === */
.light-mode .big-button {
  background: #1a73e8;        /* bleu clair doux comme les nav */
  color: #fff;
  border: 1px solid #bcd8f0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.light-mode .big-button:hover {
  background: #1a73e8;        /* bleu Google */
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(0,0,0,0.15);
}

/* === BIG BUTTONS — MODE SOMBRE (inchangé, mais on l’affirme) === */
/*.big-button {
  background: var(--button-color);
  color: #fff;
}*/

.big-button:hover {
  background: var(--hover-color);
}


.welcome-message{
  isolation: isolate;
}

.hero-slideshow,
.hero-slideshow span{
  z-index: 0;
}

.welcome-message::before{
  z-index: 1;
}

.welcome-message h2,
.welcome-message .link{
  z-index: 3;
}

.welcome-message .hero-logo{
  position: relative;
  z-index: 4;
  margin-bottom: 12px;
  background: transparent;
  border: none;
  padding: 0;
}

.welcome-message .hero-logo img{
  width: 160px;
  height: auto;
  display: block;
  margin: 0 auto;

  filter:
    drop-shadow(0 0 2px rgba(255,255,255,.9))
    drop-shadow(0 0 6px rgba(26,188,156,.60))
    drop-shadow(0 0 14px rgba(26,188,156,.40));
}