@import "colors.css";
body {
  font-family: "Open Sans", "Segoe UI Emoji", "Noto Color Emoji",
    "Apple Color Emoji", sans-serif; /* 'sans-serif' comme police de secours */
  font-weight: 400; /* Poids normal */
  font-style: normal; /* Style normal */
}

h1,
h2,
h3 {
  font-family: "Open Sans", "Segoe UI Emoji", "Noto Color Emoji",
    "Apple Color Emoji", sans-serif;
  font-weight: 700; /* Gras */
  color: #333;
}

h1 {
  font-size: 2em;
}

h2 {
  font-size: 1.5em;
  margin-top: 1.5em;
}

h3 {
  font-size: 1.3em;
  margin-top: 1.5em;
}

.title {
  margin-bottom: 2em;
}

.fleche {
  width: 3em;
  transform: rotate(160deg);
  transition: transform 0.2s ease;
}

.fleche:hover {
  transform: scale(1.5) rotate(180deg);
  transition: transform 0.2s ease;
}

.logo-font {
  font-family: "Tsukimi Rounded", serif;
  font-weight: 700;
}

/* Pour un effet pulsation au survol sur certains mots */
.pulse {
  display: inline-block;
  transition: transform 0.3s ease;
}

.pulse:hover {
  animation: pulseAndRotate 0.5s infinite alternate;
  color: var(--primary-color);
}

@keyframes pulseAndRotate {
  0% {
    transform: scale(1) rotate(0deg);
  }
  100% {
    transform: scale(1.4) rotate(10deg);
  }
}

/* Pour obtenir des pages de la hauteur de l'écran */
html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
}

/* Pour rendre le retour vers le haut plus fluide */
html {
  scroll-behavior: smooth;
}

.main-container {
  min-height: 75vh;
  display: flex;
  flex-direction: column;
}

footer {
  margin-top: auto;
  flex-shrink: 0;
}
/*******************************************************/

header {
  margin: 1em 2em;
}

a {
  text-decoration: none;
  color: var(--primary-color);
}

a:hover {
  color: var(--text-color);
}

a:focus {
  color: var(--primary-color);
}

.ulMenu {
  list-style-type: none;
  margin: 0;
  padding: 0;
  display: flex;
  width: fit-content;
}

.liMenu {
  padding: 1em;
}

li a {
  color: var(--text-color);
  font-weight: bold;
}

li a:hover {
  color: var(--primary-color);
  font-weight: bold;
}

main {
  column-gap: 2rem;
  margin: 1em 2em;
  padding-bottom: 1em;
}

hr {
  margin-top: 1em;
  margin-bottom: 2em;
}

.svgWrap {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1em;
}

.page-indicator {
  font-size: 0.5em;
}

.wrap {
  margin: 2em 0;
  display: flex;
  gap: 1em;
}

.artHome {
  font-size: 1.2em !important;
  margin-top: 0.5em;
  color: var(--primary-color);
}

.artHome:hover {
  color: var(--text-color);
}

.imgWrap {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  align-items: stretch;
  margin-top: 2em;
}

.cardImg {
  flex: 1 1 calc(80% - 1rem); /* Chaque carte occupe 80% de la largeur moins l'espacement */
  box-sizing: border-box; /* Inclut les marges et bordures dans la largeur totale */
  /*background-color: var(--background-color);*/
  text-align: center;
  border-radius: 5px;
  border: 1px solid #e0e0e0;
  overflow: hidden;
  padding: 5px;
}

.cardImg:hover {
  /* background-color: #e0e0e0; */
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease;
}

.cardImg img {
  width: 100%; /* L'image occupe toute la largeur du conteneur */
  height: auto; /* Conserve le ratio de l'image */
  display: block;
}

.imgBlog {
  flex: 1 1 calc(300px - 1rem);
  max-width: 300px;
  box-sizing: border-box;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
  overflow: hidden;
  background-color: #fff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.imgBlog:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

.imgBlog img {
  width: 100%; /* L'image occupe toute la largeur du conteneur */
  height: auto; /* Conserve le ratio de l'image */
  display: block;
}

.imgBlog h2 {
  font-size: 1.2rem;
  margin: 0;
  padding: 0.8rem 1rem;
  text-align: left;
  color: var(--text-color);
  font-weight: 600;
}

.titreBlog {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.metaDesc {
  text-align: center;
  padding: 1em 0 2em;
  width: 80%;
  border-bottom: 1px solid var(--border-color);
}

.paginationArt {
  display: flex;
  justify-content: center;
}

.paginationArt li {
  list-style-type: none;
  margin: 0;
  padding: 0;
  display: flex;
  margin-right: 1em;
}

.paginationArt li:active {
  color: var(--primary-color);
}

#voirPosts {
  text-align: center;
  margin-bottom: 8rem;
  margin-top: 3em;
}

.why {
  text-align: center;
  padding: 1em;
}

#presentation {
  display: flex;
  flex-direction: column;
  gap: 2em;
  text-align: center;
  justify-content: center;
  align-items: center;
}

.carteP {
  width: 50%;
}

.image img {
  width: auto;
  color: var(--primary-color);
}

.displayFlex {
  display: flex;
  flex-direction: column;
  gap: 1em;
}

#returnFleche {
  transform: scaleY(-1);
}

#returnFleche:hover {
  transform: scaleY(-1) rotate(30deg) scale(1.5);
  transition: transform 0.2s ease;
}

.justifyContentRight {
  justify-content: right;
}

.spaceBetween {
  align-content: end;
}

.container {
  margin: 2em;
}

main,
.footerMain,
.nav-container {
  margin: 0 5%;
}

.center {
  text-align: center;
}

.formUpdate {
  display: flex;
  flex-direction: column;
}

/*******************************************/
/*          MESSAGES D'ALERTE              */
/*******************************************/

.width60 {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.marginTop3 {
  margin-top: 3em;
}

.article {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.img1 {
  width: 100%;
}

.commentaires {
  margin-top: 2em;
}

.bonus-bloc {
  border: 2px dashed #ccc;
  padding: 1em;
  margin: 2em 0;
  background: white;
}

.packBonus {
  background-color: var(--background-color);
  border-style: dotted;
  padding: 20px;
  border-radius: 12px;
  text-align: center;
  max-width: 600px;
  margin: 4em auto;
}

.bonus-bloc h3,
.bonus-bloc h4 {
  margin-top: 0;
}

.code-snippet {
  background: var(--background-color);
  color: var(--text-color);
  padding: 1em;
  font-family: monospace;
  white-space: pre-wrap;
  overflow-x: auto;
  margin: 1em 0;
  border-radius: 5px;
}

.mon-cercle {
  fill: #ff6600;
  stroke: #333;
  stroke-width: 4;
  transition: fill 0.3s;
}

.mon-cercle:hover {
  fill: #33cc99;
}

.navigation-articles {
  display: flex;
  justify-content: space-between;
  margin: 3rem 0;
  padding: 1.5rem 0;
  border-top: 1px solid #eaeaea;
  border-bottom: 1px solid #eaeaea;
  font-family: inherit;
}

.navigation-articles a {
  display: inline-block;
  padding: 0.8rem 1.2rem;
  margin: 0 1em;
  border-radius: 4px;
  text-decoration: none;
  color: var(--text-color);
  background-color: var(--background-color);
  transition: all 0.3s ease;
  max-width: 45%;
}

.navigation-articles a:hover {
  background-color: #e0e0e0;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.precedent {
  position: relative;
  padding-left: 1.5rem !important;
}

.precedent:before {
  content: "←";
  position: absolute;
  left: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.1em;
}

.suivant {
  position: relative;
  padding-right: 1.5rem !important;
  text-align: right;
}

.suivant:after {
  content: "→";
  position: absolute;
  right: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.1em;
}

/*******************************************/
/*          ANIMATION DANS ARTICLE         */
/*******************************************/
:root {
  --main-fill: #ff6600;
  --main-stroke: #333;
}

/* Style général des cercles */
.svg-demo-circle {
  fill: var(--main-fill);
  stroke: var(--main-stroke);
  stroke-width: 4;
  transition: fill 0.3s;
}

.svg-demo-circle:hover {
  fill: #33cc99;
}

/* Cercle avec animation pulse */
.pulse-circle {
  fill: #ff6600;
  stroke: #333;
  stroke-width: 4;
  transition: fill 0.3s;
  animation: pulse 1.5s infinite;
}

.pulse-circle:hover {
  fill: #33cc99;
}

/* Animation keyframes */
@keyframes pulse {
  0% {
    fill: #ff6600;
  }
  50% {
    fill: #33cc99;
  }
  100% {
    fill: #ff6600;
  }
}

.numero {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background-color: var(--primary-color);
  color: #ffffff;
  border-radius: 50%;
  font-family: Arial, sans-serif;
  font-size: 18px;
  font-weight: bold;
  text-align: center;
  line-height: 1;
}

/* Optionnel : styles pour les blocs de code */
.code-snippet {
  background: #f8f8f8;
  border: 1px solid #ddd;
  padding: 0.8em;
  margin: 0.8em 0;
  font-family: monospace;
  font-size: 0.95em;
  overflow-x: auto;
}

.demo-button {
  background: #0077cc;
  color: white;
  padding: 1rem 2rem;
  border: none;
  border-radius: 4px;
  font-size: 1.1em;
  cursor: pointer;
  transition: background 0.3s ease;
  margin-bottom: 1em;
  display: inline-block;
}
/* Bouton de démo sur balise <a> */
a.demo-button {
  background: #0077cc;
  color: white !important;
  padding: 1rem 2rem;
  border-radius: 4px;
  font-size: 1.1em;
  cursor: pointer;
  transition: background 0.3s ease;
  margin-bottom: 1em;
  display: inline-block;
  text-decoration: none;
  border: none;
  outline: none;
}
a.demo-button.demo1:hover,
a.demo-button.demo1:focus {
  background: #33cc99;
  color: white !important;
}
/* Effet scale */
a.demo-button.demo2 {
  transition: transform 0.3s ease;
}
a.demo-button.demo2:hover,
a.demo-button.demo2:focus {
  transform: scale(1.05);
}
/* Effet combiné couleur + scale */
a.demo-button.demo3 {
  transition: background 0.3s ease, transform 0.3s ease;
}
a.demo-button.demo3:hover,
a.demo-button.demo3:focus {
  background: #33cc99;
  transform: scale(1.05);
  color: white !important;
}
/* Effet complet couleur + scale + shadow */
a.demo-button.demo4 {
  background: #ff6600;
  transition: background 0.3s, transform 0.3s, box-shadow 0.3s;
  box-shadow: none;
}
a.demo-button.demo4:hover,
a.demo-button.demo4:focus {
  background: #ff8533;
  transform: scale(1.05);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  color: white !important;
}
/* Card de démo */
.demo-card {
  background: #fff;
  padding: 2em;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
  transition: box-shadow 0.3s ease;
  max-width: 300px;
  margin-bottom: 1em;
}
.demo-card.demo1:hover,
.demo-card.demo1:focus {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Image floue au hover */
.demo-image {
  width: 200px;
  height: 120px;
  object-fit: cover;
  border-radius: 8px;
  transition: filter 0.3s;
  margin-bottom: 1em;
  display: block;
}
.demo-image.demo1:hover,
.demo-image.demo1:focus {
  filter: blur(2px);
}
@media (max-width: 600px) {
  body {
    padding: 0 0.5em 3em 0.5em;
  }
  .code-snippet {
    font-size: 0.93em;
  }
  .demo-card {
    padding: 1em;
  }
}

/*******************************************/
/*          MESSAGES D'ALERTE              */
/*******************************************/

.success-message {
  border: solid 3px green;
  padding: 0.5em 1em;
  width: 350px;
  align-self: center;
}

.error-message {
  border: solid 3px red;
  padding: 0.5em 1em;
  width: 350px;
  align-self: center;
}

/*******************************************/
/*                BOUTONS                  */
/*******************************************/
button {
  background-color: white;
  border: none;
}

.genBtn {
  border: solid 1px var(--primary-color);
  font-size: 1em;
  padding: 0.5em 1em;
  cursor: pointer;
  color: var(--primary-color);
  border-radius: 5px;
  text-transform: uppercase;
}

.genBtn:hover {
  background-color: var(--primary-color);
  color: white;
  padding: 0.5em 1em;
  border-radius: 5px;
}

#voirSvgs {
  text-align: center;
  margin: 2rem 0 8rem;
}

.colorDideo {
  background-color: var(--primary-color);
  border: solid 1px var(--primary-color);
  color: white;
  padding: 0.5em 1em;
  border-radius: 5px;
  text-transform: uppercase;
  font-size: 1em;
  text-align: center;
}

.colorDideo:hover {
  background-color: white;
  color: var(--primary-color);
  border: solid 1px var(--primary-color);
  padding: 0.5em 1em;
  border-radius: 5px;
}

.displayBlock {
  display: block;
}

.path-wrapper {
  margin: 1em;
  display: flex;
  gap: 1em;
}

#add-path {
  margin-top: 0.5em;
  align-self: flex-start;
}

/******************************************/
/*                  NAVBAR                */
/******************************************/

.navbar {
  overflow: visible;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 2rem 0;
}

.nav-container {
  display: flex;
  flex-direction: row;
  width: 100%;
}

.nav-wrapper {
  display: flex;
  justify-content: space-between;
  width: 100%;
}

.logo {
  font-size: 2.5em;
  padding-right: 1em;
}

.logo img {
  color: var(--text-color);
  text-decoration: none;
  width: 150px;
}

.logo svg {
  color: var(--primary-color);
  width: 150px;
  transition: color 0.3s ease, transform 0.3s ease;
}

.logo svg:hover {
  color: var(--accent-color);
  transform: scale(1.05);
}

.iconMenu {
  color: var(--text-color);
  font-size: 24px;
  cursor: pointer;
  display: none; /* Cacher l'icône par défaut */
}

#imgMenu {
  width: 25px;
  height: auto;
  transform: rotate(90deg);
  transition: 0.2s ease-in-out;
}

#crossMenu {
  width: 25px;
  height: auto;
  transform: rotate(45deg);
  transition: 0.2s ease-in-out;
}

#homeBtn img {
  width: 5em;
}

#homeBtn img:hover {
  background-color: var(--secondary-color);
}

#imgMenu:hover {
  transform: rotate(580deg);
}

#imgProfil {
  width: 1.5em;
}

.adminNav {
  border: solid 1px var(--secondary-color);
  font-size: 1em;
  padding: 0.5em 1em;
  cursor: pointer;
  color: white;
  border-radius: 5px;
  background-color: var(--secondary-color);
}

.adminNav:hover {
  background-color: white;
  border: solid 1px var(--secondary-color);
  color: var(--secondary-color);
  padding: 0.5em 1em;
  border-radius: 5px;
}

.add {
  font-size: 2em;
  align-self: center;
  background-color: var(--background-color);
  border-radius: 10px;
  padding: 0 10px;
  margin-left: 0.5em;
  color: var(--primary-color);
}

.add:hover {
  scale: 1.2;
}

/* Dropdown */
.dropdown {
  position: relative;
  display: block;
}
.dropdown-child {
  display: none; /* Masquer les sous-menus par défaut */
  position: absolute;
  background-color: var(--background-color-opacity);
  border-radius: 8px;
  padding: 0.5rem;
  min-width: 180px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  z-index: 100;
  animation: fadeIn 0.2s ease;
}
/* @keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
  } */
.dropdown:hover .dropdown-child {
  display: block;
}
.dropdown-child a {
  display: block;
  padding: 0.8rem 1.2rem;
  color: var(--text-color);
  text-decoration: none;
  transition: background-color 0.2s, color 0.2s;
}
.menu-items a {
  color: var(--text-color);
  padding-left: 1em;
}
.menu-items a:hover {
  color: var(--primary-color);
  background-color: var(--background-color-opacity);
}
.menu-items a:focus {
  color: var(--primary-color);
}

/******************************************/
/*                RECHERCHE               */
/******************************************/
.svgSearch {
  padding: 0.5em 1em;
  border: solid 1px white;
  box-shadow: 0px 2px 2px 0px rgba(0, 0, 0, 0.2);
  border-radius: 5px;
}

.svgSearch:focus {
  border: solid 1px var(--primary-color);
  box-shadow: 0px 2px 2px 0px rgba(0, 0, 0, 0.2);
  border-radius: 5px;
}

#search {
  margin-left: 2rem;
  padding: 0.5em;
  border-radius: 5px;
  border: solid 1px var(--primary-color);
}

.svgSearch:focus:visible {
  border: solid 1px var(--primary-color);
  box-shadow: 0px 2px 2px 0px var(--primary-color);
  border-radius: 5px;
}

/******************************************/
/*                A PROPOS                */
/******************************************/

#aboutBlog {
  margin-top: 2rem;
}

#aboutMain {
  display: flex;
  flex-direction: column;
  gap: 4em;
}

.aboutIcon {
  width: 8em;
  height: 8em;
  display: block;
}

.cardAbout {
  margin-top: 2em;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.gif {
  width: 100%;
}

.alignItemsCenter {
  align-items: center;
}

#gifDideo4 {
  margin: 2rem 0;
}

#gifDideo4 img {
  width: 100%;
}

/******************************************/
/*                  SVG                    */
/*******************************************/

.icon {
  width: 100px;
  height: 100px;
  margin: 10px;
}

.icons-container {
  display: flex;
  flex-wrap: wrap;
}

#titreSvg {
  text-align: center;
  margin: 5rem 0;
}

#pagination {
  margin-top: 1em;
  display: flex;
  justify-content: center;
}

.pagination-btn:hover {
  color: var(--primary-color);
  cursor: grab;
}

/*******************************************/
/*                 CONTACT                 */
/*******************************************/

.formStyle {
  border: solid 1px var(--text-color);
  border-radius: 5px;
  background-color: var(--background-color);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  width: 70%;
  margin-top: 2rem;
}

::placeholder {
  font-size: 1.1em;
}

.mentions_obligatoires {
  font-style: oblique;
  color: grey;
}

.formInput {
  margin-bottom: 1em;
  padding: 0.5em;
}

#pathArea {
  vertical-align: top; /* Aligner le contenu en haut de la cellule */
  width: 100%;
  height: 100px;
}

#message {
  height: 10rem;
}

.inputBtn {
  width: 70%;
  align-self: center;
  text-align: center;
  margin-bottom: 1em;
  background-color: var(--background-color);
  border: 1px solid var(--primary-color);
  border-radius: 10px;
  color: var(--primary-color);
}

/*******************************************/
/*                 LICENCE                 */
/*******************************************/

#interditsLicence {
  background-color: var(--background-color);
  border: 1px solid #ccc;
  padding: 1em;
  border-radius: 12px;
}

#commercialLicence {
  margin-bottom: 2em;
}

.cards {
  justify-content: center;
  margin: 4em 0 4em;
}

#autorize {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

#autorize .cardLicence {
  flex: 1 1 calc(50% - 1rem); /* 2 par ligne avec espace */
  box-sizing: border-box;
  padding: 1rem;
  border: 1px solid #ccc;
  border-radius: 12px;
  text-align: center;
  background-color: var(--background-color);
}

.interditsCards .cardLicence {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1rem;
}

.interditsCards .check {
  display: block;
}

.check {
  width: 50px;
}

#interdit {
  border: solid 4px var(--interdit);
  width: auto;
  background-color: white;
  margin: 1rem auto 1rem;
}

#commercial {
  margin-top: 6em;
}

#conseilsLicence {
  margin-bottom: 8em;
}

.flip {
  transform: scaleY(-1) rotate(65deg);
}

.important {
  background-color: var(--primary-color);
  padding: 0.5em 1em;
  color: white;
  font-weight: 700;
  border-radius: 5px;
}

/*******************************************/
/*                 ADMIN               */
/*******************************************/

.imgTab {
  width: 50px;
  transform: rotate(90deg);
  transition: 0.2s ease-in-out;
}

.imgTab:hover {
  width: 50px;
  transform: rotate(180deg) scale(1.3);
}

.contImg {
  width: 50px;
  height: auto;
  margin: 0;
  padding: 0;
}
.imgSimple {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1em;
}

th,
td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid #ddd;
}

th {
  background-color: #f2f2f2;
}

.sectionAdmin {
  margin-bottom: 5em;
}

.adminBtn {
  border: solid 1px var(--primary-color);
  font-size: 1em;
  padding: 0.5em 1em;
  cursor: pointer;
  color: white;
  border-radius: 5px;
  background-color: var(--primary-color);
}

.adminBtn:hover {
  background-color: white;
  border: solid 1px var(--primary-color);
  color: var(--primary-color);
  padding: 0.5em 1em;
  border-radius: 5px;
}

.svg {
  padding: 0.5em;
  /* width: 5rem; */
  transition: 0.3s ease-in-out;
}

.svg:hover {
  background-color: var(--accent-color);
  border-radius: 50%;
  transform: scale(1.5) rotate(45deg);
}

.fixed {
  position: fixed;
  top: 30px;
  left: 50px;
  width: 500px;
  height: 150px;
}

.stats-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.stats-cards {
  display: flex;
  gap: 20px;
  margin-bottom: 30px;
}

.stats-card {
  flex: 1;
  background-color: var(--background-color);
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.stats-number {
  font-size: 2.5rem;
  font-weight: bold;
  color: #333;
}

.stats-charts {
  display: flex;
  flex-direction: column;
  gap: 30px;
  margin-bottom: 30px;
}

.chart-container {
  background-color: #fff;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.stats-tables {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.stats-table {
  background-color: #fff;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.color-preview {
  width: 30px;
  height: 20px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

@media (min-width: 768px) {
  .stats-charts {
    flex-direction: row;
  }

  .chart-container {
    flex: 1;
  }
}

/*******************************************/
/*                 PROFIL                  */
/*******************************************/
.profile {
  width: 20%;
}

.profileBtn {
  border: solid 1px var(--primary-color);
  background-color: var(--background-color);
  font-size: 1em;
  padding: 0.5em 1em;
  cursor: pointer;
  color: var(--primary-color);
  border-radius: 5px;
  display: block;
  text-align: center;
}

.marginTop1 {
  margin-top: 1em;
}

.profileBtn:hover {
  background-color: var(--primary-color);
  color: white;
  padding: 0.5em 1em;
  border-radius: 5px;
}

.profileForm {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.inputProfile {
  font-size: 1.2em;
  padding: 0.5em;
  border: solid 1px var(--background-color);
  border-radius: 5px;
  box-shadow: 0px 2px 2px 0px rgba(0, 0, 0, 0.2);
}

.sweetColor {
  color: grey;
}

.pointer {
  cursor: pointer;
  color: var(--primary-color);
  font-weight: 700;
}

.marginBottom5 {
  margin-bottom: 5em;
}

.ulMenuProfile {
  list-style-type: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  flex-direction: column;
}

#newsletter {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 1rem;
}

#updateNewsletter {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 2rem auto;
}

/******************************************/
/*               SVG MODIF                */
/******************************************/
.tags-input-container {
  border: 1px solid #ddd;
  padding: 10px;
  border-radius: 4px;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  min-height: 45px;
}

.tag {
  background-color: #3498db;
  color: white;
  padding: 5px 10px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  font-size: 14px;
}

.tag-close {
  margin-left: 5px;
  width: 16px;
  height: 16px;
  background-color: rgba(255, 255, 255, 0.3);
  color: white;
  border-radius: 50%;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  font-size: 12px;
  line-height: 1;
}

.tags-input {
  flex-grow: 1;
  padding: 5px;
  border: none;
  outline: none;
  background-color: white;
  font-size: 14px;
  min-width: 150px;
}

.instructions {
  font-size: 14px;
  color: #666;
  margin-top: 10px;
}

/******************************************/
/*                  FOOTER                */
/******************************************/

#footerSection {
  background-color: var(--text-color);
  color: white;
  padding: 2em 0;
}

.footerMain {
  display: flex;
  justify-content: space-between;
  flex-direction: column;
}

#footerSection a {
  color: white;
}

#footerSection a:hover {
  color: var(--primary-color);
}

.retrait {
  padding-left: 2.5em;
}

.rights {
  color: white;
}

.rights:hover {
  color: white;
}

/*******************************************/
/*                 404                     */
/*******************************************/

#page404 {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 5rem;
}

#page404 h1 {
  font-size: 10em;
}

#page404 p {
  font-size: 3em;
}

#page404 a {
  font-size: 4em;
  margin-top: 1em;
}

/******************************************/
/*        RETOUR VERS LE HAUT             */
/******************************************/

#myBtn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 99;
  border: none;
  outline: none;
  background-color: var(--primary-color);
  color: white;
  cursor: pointer;
  padding: 12px;
  border-radius: 50%;
  font-size: 18px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

#myBtn.visible {
  opacity: 1;
  visibility: visible;
}

#myBtn img {
  width: 3em;
  -webkit-transform: rotate(1);
  transform: rotate(90deg);
}

#myBtn:hover {
  background-color: var(--primary-color);
}

.filtres {
  display: flex;
  justify-content: center;
  margin-bottom: 2em;
}

/******************************************/
/*                LOGIN                   */
/******************************************/

#loginForm {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1em;
  padding-top: 2em;
}

.loginBtns {
  display: flex;
  justify-content: center;
  flex-direction: column;
  gap: 1em;
  margin-top: 2em;
}

/******************************************/
/*                MODALE  SVG             */
/******************************************/

/* The Modal (background) */
.modal {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 1000; /* Sit on top */
  left: 0;
  top: 0;
  width: 100%; /* Full width */
  height: 100%; /* Full height */
  overflow: auto; /* Enable scroll if needed */
  background-color: rgba(0, 0, 0, 0.4); /* Black w/ opacity */
}

/* Modal Content/Box */
.modal-content {
  background-color: var(--background-color);
  margin: 15% auto; /* 15% from the top and centered */
  padding: 2em;
  border: 1px solid #888;
  width: 80%;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 2px 2px 2px rgb(66, 66, 66);
  position: relative;
}

/* The Close Button */
.close {
  color: #aaa;
  float: right;
  font-size: 2em;
  font-weight: bold;
  align-self: self-end;
  position: absolute;
  z-index: 1001;
}

.close:hover,
.close:focus {
  color: var(--text-color);
  text-decoration: none;
  cursor: pointer;
}

/* The Modal Image */

.modalImage {
  transform: scale(1.8);
  padding: 1em;
  width: 5rem;
}

.titreModale {
  text-align: center;
}

/* The download Button */
#downloadBtn {
  border: solid 1px var(--primary-color);
  font-size: 1em;
  padding: 0.5em 1em;
  cursor: pointer;
  color: white;
  border-radius: 5px;
  background-color: var(--primary-color);
}

#downloadBtn:hover {
  background-color: white;
  border: solid 1px var(--primary-color);
  color: var(--primary-color);
  padding: 0.5em 1em;
  border-radius: 5px;
}

/* Styles pour les filtres et la recherche */
.filters-container {
  margin-bottom: 30px;
}

.search-wrapper {
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

.search-form {
  display: flex;
  width: 100%;
  max-width: 500px;
  position: relative;
  margin-right: 20px;
}

.search-input {
  flex: 1;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 16px;
  width: 100%;
  transition: border-color 0.2s ease;
}

.search-input:focus {
  border-color: #007bff;
  outline: none;
  box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

.reset-search-btn {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #777;
  font-size: 18px;
  cursor: pointer;
  padding: 5px;
  line-height: 1;
}

.reset-search-btn:hover {
  color: #333;
}

.results-count {
  font-size: 14px;
  color: #666;
  margin-left: 10px;
}

.categories-wrapper {
  margin-bottom: 20px;
}

.categories-wrapper h3 {
  margin-bottom: 12px;
  font-size: 16px;
  color: #333;
}

.category-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.category-btn {
  padding: 8px 15px;
  background-color: #f0f0f0;
  border: 1px solid #ddd;
  border-radius: 20px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  color: var(--text-color);
}

.category-btn:hover {
  background-color: #e0e0e0;
}

.category-btn.active {
  background-color: var(--primary-color);
  color: white;
}

.no-results-message {
  padding: 20px;
  background-color: #f8f9fa;
  border-radius: 4px;
  color: #721c24;
  text-align: center;
  margin: 20px 0;
  border: 1px solid #f5c6cb;
}

.grid-icones {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(60px, 1fr));
  gap: 1em;
}

.icone {
  box-sizing: border-box;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 10px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
  max-width: 150px;
}

.icone:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Styles pour les contrôles SVG */
.svg-controls {
  margin: 20px 0;
  padding: 15px;
  background-color: var(--background-color);
  border-radius: 5px;
  border: 1px solid #ddd;
}

.svg-controls h2 {
  text-align: center;
  margin: 0;
}

.control-group {
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

.control-group label {
  margin-right: 10px;
  min-width: 150px;
}

.control-group input[type="range"] {
  width: 150px;
  margin-right: 10px;
}

.control-group input[type="color"] {
  height: 30px;
  width: 50px;
  padding: 0;
  cursor: pointer;
}

#strokeWidthValue {
  min-width: 30px;
}

.control-group input[type="checkbox"] {
  margin-left: 10px;
  margin-right: 5px;
}

/* Styles pour les sélecteurs stroke-linecap et stroke-linejoin */
.style-controls select {
  padding: 8px;
  border-radius: 4px;
  border: 1px solid #ccc;
  background-color: #fff;
  width: 100%;
  margin-top: 5px;
  cursor: pointer;
  font-size: 14px;
}

.style-controls select:focus {
  outline: none;
  border-color: #007bff;
  box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

/* Ajustement pour l'espacement des groupes de contrôles */
.control-group {
  margin-bottom: 15px;
}

/* Style pour les labels avec info-bulle */
.control-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
  position: relative;
}

.control-group label[data-tooltip]:hover::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 100%;
  left: 0;
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 12px;
  white-space: nowrap;
  z-index: 10;
}

/* Style pour le bouton de téléchargement pour qu'il soit plus visible */
.download-btn {
  margin-top: 15px;
  padding: 10px 20px;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
  transition: background-color 0.2s;
}

.download-btn:hover {
  background-color: #0056b3;
}

/******************************************/
/*          MODALE ERREUR LOGIN           */
/******************************************/

.modalLogin {
  display: none; /* Masquer par défaut */
  position: fixed;
  z-index: 1;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgb(0, 0, 0); /* Couleur de fond */
  background-color: rgba(0, 0, 0, 0.4); /* Couleur de fond avec opacité */
}

.modalLogin-content {
  background-color: var(--background-color);
  margin: 15% auto; /* 15% du haut et centré */
  padding: 20px;
  border: 1px solid var(--secondary-color);
  width: 80%; /* Largeur de la modale */
}

.closeLogin {
  color: var(--background-color);
  float: right;
  font-size: 28px;
  font-weight: bold;
}

.closeLogin:hover,
.closeLogin:focus {
  color: var(--text-color);
  text-decoration: none;
  cursor: pointer;
}

/******************************************/
/*                   RESPONSIVE           */
/******************************************/

/* Responsive : afficher l'icône hamburger sur mobile */
@media only screen and (max-width: 767px) {
  .iconMenu {
    display: block; /* Afficher l'icône hamburger */
  }

  #crossMenu {
    display: none;
  }

  .menu-items {
    display: none; /* Masquer le menu par défaut */
    flex-direction: column; /* Empiler les liens verticalement */
    gap: 0.5em;
    font-size: 1.5em;
    padding-left: 0.5em;
    padding-bottom: 1em;
    width: 90%;
    position: absolute;
    top: 60px; /* Ajuster en fonction de la hauteur de la barre de navigation */
    left: 0;
    background-color: var(--background-color);
    z-index: 1;
    border: solid 1px #ccc;
    border-radius: 0 0 12 12x 12px;
  }

  .menu-items.responsive {
    display: flex; /* Afficher le menu lorsqu'il est activé */
  }

  .navigation-articles {
    flex-direction: column;
    gap: 1rem;
  }

  .navigation-articles a {
    max-width: 100%;
  }

  .svg {
    padding: 0.5em;
    /* width: 4rem; */
    transition: 0.3s ease-in-out;
  }
}

@media only screen and (min-width: 768px) {
  main,
  .footerMain,
  .nav-container,
  .why {
    margin: 0 5%;
  }
  .grid-icones {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  }

  .modal-content {
    width: 50%;
  }

  #downloadBtn {
      margin-top: 3em;
  }

  .dropdown-child {
    color: var(--text-color);
  }
  .dropdown-child a {
    padding: 0.3em 0; /* Décalage pour les sous-liens */
    display: block;
    padding: auto;
  }
  .menu-items {
    display: flex;
    align-items: center;
    flex-direction: row;
    gap: 2em;
    white-space: nowrap; /* Force les textes du menu à se mettre sur une ligne */
  }
  .menuRegistration {
    display: flex;
    flex-direction: row;
    gap: 1em;
  }

  #autorize .cardLicence {
    flex: 1 1 calc(20% - 1rem);
  }

  .why {
    padding: 4em;
  }

  .cardImg {
    flex: 1 1 calc(50% - 1rem);
    max-width: 200px; /* Limite la largeur maximale des cartes */
  }

  #presentation {
    flex-direction: row;
    margin-bottom: 8rem;
  }

  .carteP {
    width: 30%;
  }

  .imgBlog {
    width: 30%; /* Limite la largeur maximale des cartes */
  }

  .inputBtn {
    width: 30%;
  }

  #loginForm {
    flex-direction: row;
  }

  .width60 {
    width: 80%;
  }

  .titreBlog {
    width: 80%;
  }

  .displayBlock {
    display: inline-block;
  }

  #interdit {
    padding: 1em 3em;
    width: 250px;
  }

  .profileBtn {
    width: 20%;
  }

  .ulMenuProfile {
    flex-direction: row;
  }

  .loginBtns {
    flex-direction: row;
  }

  #gifDideo4 img {
    width: 60%;
  }
}

@media only screen and (min-width: 950px) {
  main,
  .footerMain,
  .nav-container,
  .why {
    margin: 0 10%;
  }

  #aboutMain {
    flex-direction: row;
  }

  .width50 {
    width: 50%;
  }

  .cardImg {
    flex: 1 1 calc(20% - 1rem); /* Chaque carte occupe 20% de la largeur moins l'espacement */
    max-width: 200px; /* Limite la largeur maximale des cartes */
    box-sizing: border-box; /* Inclut les marges et bordures dans la largeur totale */
  }

  .displayFlex {
    flex-direction: row;
    gap: 2em;
  }

  .footerMain {
    flex-direction: row;
  }

  .gif {
    width: 40%;
  }

  #page404 p {
    font-size: 2em;
  }

  #page404 a {
    font-size: 2em;
  }

  #admin {
    display: flex;
  }

  #menuAdmin {
    display: flex;
    flex-direction: column;
  }
}

@media only screen and (min-width: 1250px) {
  main,
  .footerMain,
  .nav-container,
  .why {
    margin: 0 15%;
  }

  .width60 {
    width: 60%;
  }

  .titreBlog {
    width: 60%;
  }
}
