/* ========================================
   CLAUDE GÉRARD PRODUCTION - STYLE GLOBAL
   (Menu, Footer, Fil d’Ariane, Structure commune)
   ======================================== */

/* --- IMPORT POLICES --- */
@import url("https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400&display=swap");

/* --- BASE --- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: "Open Sans", sans-serif;
  color: black;
}

body {
  background: linear-gradient(152deg, #afd9e5 0%, #c5e2e9 36%, #e0edec 100%) fixed;
}

/* --- LIENS ET LISTES --- */
ul {
  list-style: none;
}

a {
  text-decoration: none;
  color: black;
}

/* ========================================
   MENU BURGER
   ======================================== */
#menu-icon {
  position: absolute;
  left: -9999px;
}

/* Bouton burger */
#menu-icon:checked + label,
#menu-icon:not(:checked) + label {
  position: fixed;
  top: 63px;
  right: 75px;
  display: block;
  width: 35px;
  height: 25px;
  cursor: pointer;
  z-index: 20;
}

/* Barres du burger */
#menu-icon:checked + label span,
#menu-icon:not(:checked) + label span {
  position: absolute;
  display: block;
  width: 100%;
  height: 3px;
  background-color: #ececee;
  border-radius: 2px;
  transition: all 0.4s ease;
}

/* Position des 3 barres */
#menu-icon:checked + label span:nth-child(1),
#menu-icon:not(:checked) + label span:nth-child(1) {
  top: 0;
}
#menu-icon:checked + label span:nth-child(2),
#menu-icon:not(:checked) + label span:nth-child(2) {
  top: 10px;
}
#menu-icon:checked + label span:nth-child(3),
#menu-icon:not(:checked) + label span:nth-child(3) {
  top: 20px;
}

/* Transformation en croix */
#menu-icon:checked + label span:nth-child(1) {
  transform: rotate(45deg);
  top: 10px;
}
#menu-icon:checked + label span:nth-child(2) {
  opacity: 0;
}
#menu-icon:checked + label span:nth-child(3) {
  transform: rotate(-45deg);
  top: 10px;
}

/* --- Overlay (fond noir transparent lors de l’ouverture) --- */
.navtotal::before {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  transition: background 0.5s ease;
  pointer-events: none;
  z-index: 8;
}

#menu-icon:checked ~ .navtotal::before {
  background: rgba(0, 0, 0, 0.6);
  pointer-events: all;
}

/* --- Conteneur du menu --- */
.nav {
  position: fixed;
  top: 33px;
  right: 50px;
  width: 80px;
  height: 80px;
  background-color: #353746;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
  transition: all 0.6s ease;
  z-index: 9;
  animation: border-transform 7s linear infinite;
}

@keyframes border-transform {
  0%, 100% { border-radius: 63% 37% 54% 46% / 55% 48% 52% 45%; }
  50% { border-radius: 50% 50% 34% 66% / 56% 68% 32% 44%; }
}

/* Ouverture du menu */
#menu-icon:checked ~ .navtotal .nav {
  top: 50%;
  right: 50%;
  transform: translate(50%, -50%);
  width: 200%;
  height: 200%;
  border-radius: 0;
  animation-play-state: paused;
}

.nav ul {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  text-align: center;
  transform: translateY(-50%);
}

.nav ul li {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.4s ease;
  margin: 10px 0;
}

/* Apparition progressive des liens */
#menu-icon:checked ~ .navtotal .nav ul li {
  opacity: 1;
  transform: translateY(0);
}

.nav ul li a {
  font-size: 45px;
  font-variant-caps: small-caps;
  color: #ececee;
  transition: color 0.3s ease;
}

.nav ul li a:hover {
  color: #0b68e2;
}

.nav ul li a.sousmenu {
  font-size: 20px;
  text-transform: none;
  font-variant-caps: normal;
}

/* ========================================
   FIL D’ARIANE
   ======================================== */
.title {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  width: 100%;
  text-align: center;
  margin: 1rem auto;
}

.title img {
  width: 6%;
  min-width: 50px;
}

.title .fas {
  width: 1rem;
  color: #969494;
}

.title h1, .title h2, .title h3 {
  font-weight: 300;
  font-variant-caps: small-caps;
  color: black;
  margin: 0 0.5rem;
}

.title h2, .title h3 {
  color: #969494;
  font-size: 1.5rem;
}

/* ========================================
   FOOTER
   ======================================== */
.grandfooter {
  border-top: 1px solid black;
  background-color: #91989e42;
  margin-top: 2rem;
}

.grandfooter .moyenfooter {
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
  padding: 1.5rem 2rem;
}

.grandfooter img {
  max-width: 10%;
  min-width: 70px;
}

.footer1 {
  text-align: center;
  line-height: 1.6;
}

.footer1 h3 {
  text-transform: uppercase;
  font-size: large;
  font-weight: bolder;
}

.footer1 h2 {
  font-size: 1rem;
  font-weight: normal;
  margin: 0;
}

.social {
  text-align: center;
}

.social h3 {
  margin-bottom: 0.5rem;
}

.social a {
  font-size: xx-large;
  margin: 0 0.25rem;
  transition: color 0.3s;
}

.social a:hover {
  color: #0b68e2;
}

.footer-copyright {
  font-size: 0.8rem;
  text-align: center;
  padding: 0.5rem;
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media screen and (max-width: 991px) {
  #menu-icon:checked + label,
  #menu-icon:not(:checked) + label {
    right: 35px;
  }
  .nav { right: 20px; }
  .nav ul li a { font-size: 4vh; }
}

@media screen and (max-width: 600px) {
  .title {
    flex-direction: column;
    gap: 0.5rem;
  }
  .title img { width: 20%; }
  .title h1 { font-size: 1.3rem; }
  .title h2 { font-size: 1.2rem; }
  .grandfooter .moyenfooter {
    flex-direction: column;
    text-align: center;
  }
  .grandfooter img { max-width: 30%; }
  .social {
    flex-direction: row;
    justify-content: center;
    gap: 1rem;
    margin: 1rem 0;
  }
}
