@import url('style_book_slider.css');
@import url('style_data_specs.css');
@import url('style_grid_layout.css');

:root {
    --accent-bleu: #0041a5;
    --accent-bleu-pastel: #c6ddea;
    --accent-rouge: #980000;
    --accent-rouge-pastel: #fef0e8;
    --accent-noir: #1c1c1c;
    --accent-jaune: #ffff00;
}

/* EB Garamond is the French serif by excellence! An excellent font by Georg Mayr-Duffner */
@font-face {
    font-family: 'EB Garamond';
    src: url('../assets/fonts/EBGaramond-VariableFont_wght.ttf') format('truetype');
    font-weight: 400 800; /* Plage de graisses pour le texte droit */
    font-style: normal;   /* C'est la version normale */
    font-display: swap;
}

@font-face {
    font-family: 'EB Garamond'; /* EXACTEMENT LE MÊME NOM */
    src: url('../assets/fonts/EBGaramond-Italic-VariableFont_wght.ttf') format('truetype');
    font-weight: 400 800; /* Même plage de graisses disponible pour l'italique */
    font-style: italic;   /* On indique au navigateur que ce fichier gère l'italique */
    font-display: swap;
}

/* SUSE is modern, beautiful, and highly legible! Another excellent font by René Bieder */
@font-face {
    font-family: 'SUSE';
    src: url('../assets/fonts/SUSE-VariableFont_wght.ttf') format('truetype');
    font-weight: 100 900; /* Plage de graisses pour le texte droit */
    font-style: normal;   /* C'est la version normale */
    font-display: swap;
}

@font-face {
    font-family: 'SUSE'; /* EXACTEMENT LE MÊME NOM */
    src: url('../assets/fonts/SUSE-Italic-VariableFont_wght.ttf') format('truetype');
    font-weight: 100 900; /* Même plage de graisses disponible pour l'italique */
    font-style: italic;   /* On indique au navigateur que ce fichier gère l'italique */
    font-display: swap;
}

body {
  background-color: var(--accent-bleu);
  font-family: 'SUSE', sans-serif;
  font-weight: 400;
  font-style: normal;
  color: var(--accent-noir);
  font-size: 12.5pt;
  line-height: 1.25;
  margin-top: 6pt;
  margin-bottom: 0pt;
}
h1 {
  color: var(--accent-bleu);
  font-family: 'EB Garamond';
  font-weight: 800;
  font-style: normal;
  font-size: 34pt;
  line-height: 1;
  margin-top: 17pt;
  margin-bottom: 17pt;
}
h2 {
  color: var(--titre-h2, var(--accent-rouge));
  font-family: 'EB Garamond';
  font-weight: 700;
  font-style: normal;
  font-size: 18pt;
  line-height: 1;
  margin-top: 9pt;
  margin-bottom: 9pt;
}
h3 {
  color: var(--titre-h2, var(--accent-bleu));
  font-family: 'EB Garamond';
  font-weight: 700;
  font-style: normal;
  font-size: 16pt;
  line-height: 1;
  margin-top: 8pt;
  margin-bottom: 8pt;
}
p {
  font-family: 'SUSE', sans-serif;
  font-weight: 400;
  font-style: normal;
  color: var(--accent-noir);
  font-size: 12.5pt;
  line-height: 1.25;
  margin-top: 6pt;
  margin-bottom: 0pt;
}
small {
  font-family: 'SUSE', sans-serif;
  font-weight: 400;
  font-style: normal;
  color: var(--accent-noir);
  font-size: 9pt;
  line-height: 1;
  margin-top: 1pt;
  margin-bottom: 1pt;
}

a {
    color: var(--accent-bleu);    /* Couleur du lien */
    text-decoration: none;        /* Supprime le soulignement par défaut */
    font-weight: 400;             /* Donne un peu de poids au texte */
    transition: all 0.3s ease;    /* Crée une animation fluide lors du survol */
}
a:hover {
    color: var(--accent-rouge);   /* Le lien devient rouge */
    text-decoration: underline;   /* Le soulignement apparaît proprement */
    cursor: pointer;              /* Force l'affichage du curseur "main" */
}
a img {
    cursor: pointer;
    transition: opacity 0.3s ease; /* Animation fluide */
}
a:hover img {
    opacity: 0.8;
}

.theme-bleu-pastel {
  background-color: var(--accent-bleu-pastel);
  --titre-h2: var(--accent-bleu);
}

.theme-rouge-pastel {
  background-color: var(--accent-rouge-pastel);
  --titre-h2: var(--accent-bleu);
}

.enumeration {
  list-style: square;
  font-family: 'SUSE', sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: 12.5pt;
  padding-left: 20px;
  margin-top: 6.75pt;
  margin-bottom: 0px;
}

ul li {
    line-height: 1.25;
    margin-bottom: 6pt;
}

.highlighter {
  background-color: var(--accent-rouge-pastel); /* Change this hex code to your preferred colour */
  color: var(--accent-rouge);            /* Optional: Adjusts text color for better readability */
  font-weight: bold;
}

/* Menu logic */
.menu-links {
  list-style: none; /* Supprime les puces */
  display: flex;
  gap: 20px;        /* Espace entre chaque lien */
  font-family: 'SUSE', sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: 12.5pt;
  color: var(--accent-jaune);
  margin-top: 15px;
  margin-bottom: 15px;
  margin-left: var(--grid-padding);
  margin-right: var(--grid-padding);
  padding: 0;
}
.menu-links a {
  text-decoration: none; /* Supprime le soulignement */
  color: var(--accent-rouge-pastel);
  transition: color 0.3s;
}
.menu-links a:hover {
  color: var(--accent-jaune);       /* Change de couleur au survol de la souris */
}

/* Gestion du menu pour les téléphones portables */
#burger-toggle {
  display: none;
}
.burger-icon {
  display: none;
  cursor: pointer;
}
.menu-title {
  display: none;
}

@media (max-width: 768px) {
  /* Mise à jour du menu pour afficher le burger */
  .grid-master-menu {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px; /* Plus d'espace pour respirer */
  }

  /* Affichage du titre du site web */
  .menu-title {
    display: flex;
    font-weight: 600;
    color: var(--accent-rouge-pastel);
  }

  /* On affiche l'icône sandwich */
  .burger-icon {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;       /* Plus étroit (était à 35px) */
    height: 18px;      /* Plus mince (était à 26px) */
    cursor: pointer;
    z-index: 10;
  }
  /* Dessin des 3 barres du sandwich */
  .burger-icon span {
    display: block;
    width: 100%;
    height: 4px;
    background-color: var(--accent-rouge-pastel);
    border-radius: 4px;
    transition: transform 0.3s ease, opacity 0.2s ease;
    transform-origin: center;
  }

  /* Le menu devient une liste verticale cachée par défaut */
  .menu-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: var(--grid-padding);
    left: calc(-1 * var(--grid-padding));
    width: 200px;
    height: 100%;
    background-color: var(--accent-rouge);
    padding: 20px;
    box-shadow: 0 5px 10px rgba(0,0,0,0.1);
    gap: 10px;
  }

  /* MAGIE CSS : Quand la checkbox cachée est cochée (clic sur le label), on affiche le menu */
  #burger-toggle:checked ~ .menu-links {
    display: flex;
  }
  #burger-toggle:checked ~ .burger-icon span:nth-child(1) {
    transform: translateY(7px) rotate(45deg); /* 11 px si plus large */
  }
  #burger-toggle:checked ~ .burger-icon span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
  }
  #burger-toggle:checked ~ .burger-icon span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg); /* 11 px si plus large */
  }
}