/* =========================================================
   THÈME ION — FEUILLE DE STYLE CONSOLIDÉE (PARTIE 1 / 2)
   ========================================================= */

/* --- VARIABLES & RESET --- */
:root {
  --primary: #629DD1;
  --primary-hover: #75a9d7;
  --dark-bg: #192024;
  --text-main: #555f66;
  --text-light: #889299;
  --border-color: #e5e8eb;
  --bg-alt: #f8f9fa;
}

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

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text-main);
  font-size: 1.125rem;
  line-height: 1.65;
  font-weight: 300;
  padding-top: 0;
}

body:has(#header) {
  padding-top: 2.75rem;
}

a,
a:visited {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover,
a:visited:hover {
  color: var(--primary-hover);
  text-decoration: underline;
}

h1, h2, h3, h4 {
/* clair:
  color: #3a4145;
*/
  color: rgba(255, 255, 255, 0.3);
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 0.125em;
  line-height: 1.3;
  margin-bottom: 1rem;
}

h2 {
  font-size: 1.75rem;
}

h3 {
  font-size: 1.25rem;
}

p {
  margin-bottom: 1.25rem;
}

p.texte-petit {
  font-size: 0.85em;
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container + .container {
  margin-top: 2rem; /* Ajustez à votre convenance : 1.5rem, 2rem, 2.5rem... */
}

/* --- BOUTONS --- */
.button,
.button:visited {
  display: inline-block;
  padding: 0.75rem 2rem;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.125em;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none !important;
  border: 1px solid rgba(144, 144, 144, 0.35);
  color: #3a4145;
  background: transparent;
}

.button:hover {
  background-color: rgba(144, 144, 144, 0.08);
}

.button.special,
.button.special:visited {
  background-color: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
}

.button.special:hover {
  background-color: var(--primary-hover);
}

.button.alt,
.button.alt:visited {
  border-color: rgba(255, 255, 255, 0.4);
  color: #ffffff;
}

.button.alt:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

/* --- MENU MOBILE (MASQUÉ SUR ORDINATEUR) --- */
.nav-toggle,
.nav-button,
.nav-overlay {
  display: none;
}

/* --- HEADER FIXE SOMBRE --- */
#header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 2.75rem;
/*  clair:
  background: #ffffff;
  border-bottom: 1px solid var(--border-color);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
*/
  background: var(--dark-bg);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
}

#header h1 {
  font-size: 1.25rem;
  font-weight: 400;
  margin: 0;
}

#header h1 a {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem; /* Espace entre le logo et le texte */
}

.site-logo {
  height: 1.75rem; /* Environ 28px : s'intègre parfaitement dans la barre de 2.75rem */
  width: auto;     /* Conserve les proportions exactes de votre logo */
  display: block;
}

#header h1 a,
#header h1 a:visited {
/*  clair:
  color: #3a4145;
*/
  color: rgba(255, 255, 255, 0.3);
  text-decoration: none;
}

#header nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

#header nav a,
#header nav a:visited {
/*  clair:
  color: var(--text-main);
*/
  color: rgba(255, 255, 255, 0.3);
  font-size: 1.05rem;
  font-weight: 400;
  text-decoration: none;
}

#header nav a:hover,
#header nav a:visited:hover,
#header nav a.active {
/* clair:
  color: var(--primary);
  text-decoration: none;
*/
  color: #ffffff;
}

#header nav .button:not(.special),
#header nav .button:not(.special):visited {
/* clair:
  border-color: rgba(144, 144, 144, 0.35);
  color: #3a4145;
*/
  border-color: rgba(255, 255, 255, 0.4);
  color: #ffffff;
  padding: 0.25rem 1rem;
  font-size: 0.85rem;
}

#header nav .button.special,
#header nav .button.special:visited {
  padding: 0.25rem 1rem;
  font-size: 0.85rem;
  color: #ffffff;
}

/* --- BANNIÈRE HERO --- */
#banner {
  background-color: var(--dark-bg);
  background-image:
    linear-gradient(rgba(25, 32, 36, 0.2), rgba(25, 32, 36, 0.2)),
    url('images/banner.jpg');
  background-size: cover;
  background-position: center;
  color: #ffffff;
  text-align: center;
  padding: 8rem 1.5rem;
}

#banner h2 {
  color: #ffffff;
  font-size: 3.5rem;
  line-height: 1.2;
  letter-spacing: 0.2em;
  margin-bottom: 1rem;
}

#banner p {
  font-size: 1.5rem;
  line-height: 1.25;  /* réduction interligne */
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 2.5rem;
}

#banner .actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* --- SECTIONS & MODES CLAIR / SOMBRE --- */
.wrapper {
  padding: 5rem 0;
}

.wrapper + .wrapper {
  padding-top: 2rem; /* Au lieu de 5rem */
}

.wrapper.style1 {
  background: #ffffff;
}

.wrapper.style1 h4 {
  /* color: #3a4145; */
  color: rgba(25, 32, 36, 0.3);
}

.wrapper.style2 {
  background: var(--dark-bg);
  color: #b4bcc2;
}

.wrapper.style2 h2,
.wrapper.style2 h3 {
  color: #ffffff;
}

.wrapper.style2 .box {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.15);
}

.wrapper.style2 .sidebar-section,
.wrapper.style2 .alt-list li {
  border-color: rgba(255, 255, 255, 0.15);
}

.wrapper.style2 .button:not(.special),
.wrapper.style2 .button:not(.special):visited {
  border-color: rgba(255, 255, 255, 0.4);
  color: #ffffff;
}

.wrapper.style2 .button:not(.special):hover {
  background-color: rgba(255, 255, 255, 0.1);
}

header.major {
  text-align: center;
  margin-bottom: 3.5rem;
}

header.major h2 {
  font-size: 2rem;
}

header.major p {
  font-size: 1.15rem;
  color: var(--text-light);
}

/* Remplacement minimaliste du <hr> d'origine de Ion */
hr {
  border: 0;
  height: 1px;
  margin: 3em 0;
  /* Simple fondu subtil du gris d'origine d'Ion */
  background: linear-gradient(
    to right,
    rgba(144, 144, 144, 0),
    rgba(144, 144, 144, 0.35),
    rgba(144, 144, 144, 0)
  );
}

/* Version pour les sections sombres (.wrapper.style2) */
.wrapper.style2 hr {
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0),
    rgba(255, 255, 255, 0.25),
    rgba(255, 255, 255, 0)
  );
}

/* =========================================================
   THÈME ION — FEUILLE DE STYLE CONSOLIDÉE (PARTIE 2 / 2)
   ========================================================= */

/* --- GRANDES IMAGES BANDEAUX --- */
.image.fit {
  display: block;
  width: 100%;
  margin: 0 0 2.5rem 0;
}

.image.fit img {
  display: block;
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: 6px;
}

.banner-divider {
  width: 100%;
  height: 320px;
  object-fit: cover;
  display: block;
}

/* --- GRILLES & ICÔNES --- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.box {
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 2.5rem 1.75rem;
  text-align: center;
  background: #ffffff;
  overflow: hidden;
}

.box img {
  display: block;       /* Supprime le petit espace blanc parasite sous l'image */
  max-width: 100%;      /* Empêche l'image de déborder de la carte sur mobile */
  border-radius: 6px;
  margin: 0 auto 1.5rem auto; /* Ajoute l'écart de 1.5rem sous l'image et la centre */
}

.icon-major {
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 50%;
  background: var(--primary);
  color: #ffffff;
  margin: 0 auto 1.5rem auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon-major svg {
  width: 2rem;
  height: 2rem;
  fill: #ffffff;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem;
}

.feature-card {
  text-align: center;
}

.feature-card img {
  display: block;
  max-height: 180px;          /* Hauteur maximale souhaitée (ajustable : 150px, 200px...) */
  max-width: 85%;             /* Empêche de prendre toute la largeur même sur une photo très panoramique */
  width: auto;                /* Conserve les proportions exactes de l'image */
  height: auto;
  margin: 0 auto 1.5rem auto; /* Centre l'image horizontalement dans la colonne */
  border-radius: 6px;
}

/* --- MISES EN PAGE (SIDEBAR GAUCHE / DROITE / PLEINE LARGEUR) --- */
.grid-sidebar-right {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3.5rem;
}

.grid-sidebar-left {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 3.5rem;
}

.main-article img,
.full-article img {
  width: 100%;
  max-height: 340px;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 1.5rem;
}

.full-article + .grid-2,
.full-article + .grid-3 {
  margin-top: 3rem; /* Ajustez entre 2.5rem et 4rem selon l'écart souhaité */
}

.sidebar-section {
  padding-bottom: 2rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--border-color);
}

.sidebar-section:last-child {
  border-bottom: none;
}

.alt-list {
  list-style: none;
}

.alt-list li {
  padding: 0.65rem 0;
  border-top: 1px solid var(--border-color);
}

.alt-list li:first-child {
  border-top: none;
}

/* --- FOOTER SOMBRE & CONTACT SVG --- */
#footer {
/* clair:
  background: var(--bg-alt);
  color: var(--text-main);
*/
  background: var(--dark-bg);
  color: rgba(255, 255, 255, 0.6);
  padding: 3.5rem 0 2.5rem 0;
/* clair:
  border-top: 1px solid var(--border-color);
*/
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 1.05rem;
  line-height: 1.4;
}

#footer h4 {
/* clair:
  color: #3a4145;
*/
  color: #ffffff;
  margin-bottom: 0.75rem;
}

#footer a,
#footer a:visited {
/* clair:
  color: var(--text-main);
*/
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  transition: color 0.2s ease;
}

#footer a:hover,
#footer a:visited:hover {
/* clair:
  color: var(--primary);
*/
  color: #ffffff;
  text-decoration: none;
}

#footer .alt-list li {
  padding: 0.4rem 0;
/* clair:
  border-top: 1px solid var(--border-color);
*/
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

#footer .alt-list li:first-child {
  border-top: none;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1.2fr 1.6fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.contact-list {
  list-style: none;
}

.contact-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.4rem 0;
/* clair:
  border-top: 1px solid var(--border-color);
*/
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.contact-list li:first-child {
  border-top: none;
}

.icon-svg,
.contact-list svg {
  width: 1.15em;
  height: 1.15em;
/* clair:
  fill: var(--primary);
*/
  fill: currentcolor;
  flex-shrink: 0;
  display: block;
}

.copyright {
  text-align: center;
/* clair:
  color: var(--text-light);
*/
  color: rgba(255, 255, 255, 0.3);
  font-size: 0.9rem;
}

/* --- RESPONSIVE TABLETTE (<= 900px) --- */
@media (max-width: 900px) {
  html {
    font-size: 90%;
  }

  body:has(#header) {
    padding-top: 0;
  }

  .nav-button {
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    top: 0.75rem;
    left: 0.75rem;
    width: 3.25rem;
    height: 2.5rem;
    background: rgba(25, 32, 36, 0.75);
    border-radius: 6px;
    z-index: 1100;
    cursor: pointer;
    transition: background 0.2s ease;
  }

  .nav-button:hover {
    background: var(--dark-bg);
  }

  .nav-button svg {
    width: 1.5rem;
    height: 1.5rem;
    fill: #ffffff;
  }

  .nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1050;
  }

  .nav-toggle:checked ~ .nav-overlay {
    display: block;
  }

  #header {
    position: fixed;
    top: 0;
    left: 0;
    width: 260px;
    height: 100vh;
    background: var(--dark-bg);
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 4.5rem 1.5rem 2rem 1.5rem;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 1080;
    box-shadow: none;
    border-bottom: none;
  }

  .nav-toggle:checked ~ #header {
    transform: translateX(0);
    box-shadow: 4px 0 15px rgba(0, 0, 0, 0.3);
  }

  #header h1 {
    margin-bottom: 1.5rem;
  }

  #header nav {
    width: 100%;
  }

  #header nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  #header nav li {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
  }

  #header nav li:first-child {
    border-top: none;
  }

  #header nav a,
  #header nav a:visited {
    display: block;
    padding: 0.85rem 0;
    color: rgba(255, 255, 255, 0.8);
  }

  #header nav a:hover,
  #header nav a:visited:hover,
  #header nav a.active {
    color: #ffffff;
  }

  #header nav .button {
    margin-top: 1rem;
    text-align: center;
  }

  .grid-3,
  .grid-2,
  .grid-sidebar-right,
  .grid-sidebar-left,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  #banner {
    padding: 5.5rem 1.5rem;
  }

  #banner h2 {
    font-size: 2.1rem;
  }

  #banner p {
    font-size: 1.2rem;
  }

  .wrapper {
    padding: 3.5rem 0;
  }
}

/* --- RESPONSIVE MOBILE (<= 480px) --- */
@media (max-width: 480px) {
  html {
    font-size: 85%;
  }

  #banner h2 {
    font-size: 1.75rem;
  }
}

