/* Variables CSS */
:root {
  --primary-red: #d51b32;
  --secondary-red: #cf2b36;
  --accent-yellow: #dfb56e;
  --light-yellow: #eec073;
  --white: #fff;
  --black: #000;
  --gray: #eee;
  --dark-gray: #777;
  --shadow-color: #040404;
  --font-family-main: arial;
  --font-family-zrnic: 'zrnicregular';
  --font-family-swagger: 'swagger';
  --font-size-h1: clamp(2rem, 5vw, 4rem);
  --font-size-h2: clamp(1.2rem, 3vw, 1.5rem);
  --font-size-body: 1rem;
  --spacing-small: 10px;
  --spacing-medium: 20px;
  --spacing-large: 30px;
  --border-radius: 10px;
  --box-shadow: 0 3px 0px var(--gray), 0 6px 0px #009046;
  --text-shadow: 2px 2px 0px #dfdfdf, 4px 4px 0px #009046;
}

/* surcharge cms miamsite */
.tab-content .infos {
  background-color: #fffbf8;
}
.header_section{
  display: block !important;
}
.titre_section {
  display: block;
  padding-top: var(--spacing-medium);
  text-align: center;
  border-bottom: 4px solid var(--secondary-red);
  border-radius: 50%;
  box-shadow: var(--box-shadow);
  color: var(--primary-red);
  text-shadow: var(--text-shadow);
  font-size: var(--font-size-h1);
  margin: var(--spacing-medium);
  font-family: var(--font-family-zrnic);
  font-weight: bold;
}
.autre_article_blog,
.site_texte {
  background-color: rgba(255, 255, 255, 0.9);
  border-radius: 15px;
  padding: 15px;
}
h1, h2, h3, h4 {
  color: var(--primary-red);
}
a.link, span.link, div.link {
  font-family: var(--font-family-zrnic);
  font-size: 32px;
  line-height: 1;
}
.tab:hover, .tab.active {
  border-bottom: 6px solid #f42f2c;
  background-color: #414141;
  border-radius: 10px 10px 0 0;
}
.tabs {
  position: sticky;
  top: 53px;
  z-index: 1;
  justify-content: start;
  background-color: #282828;
  box-shadow: 0 10px 10px #28282850;
  border-bottom: 1px solid #4a4a4a;
}
.sous_titre_section {
  text-shadow: none;
  color: white;
  background-color: #414141;
  border-radius: 10px;
}
.tab-content .infos .description {
  font-size: 80%;
  color: #535353;
}

/* Styles pour les balises <article> */
article {
  margin: 20px auto;
  padding: 20px;
  background-color: rgba(255, 255, 255, 0.9);
  border-radius: var(--border-radius);
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  max-width: 800px;
  line-height: 1.6;
}

article h1, article h2, article h3 {
  color: var(--primary-red);
  font-family: var(--font-family-zrnic);
  margin-bottom: var(--spacing-medium);
}

article p {
  color: var(--black);
  margin-bottom: var(--spacing-medium);
}

article img {
  max-width: 100%;
  height: auto;
  border-radius: var(--border-radius);
  margin-bottom: var(--spacing-medium);
}


/* Loader */
#bloc-chargement {
  position: fixed;
  z-index: 9000;
  width: 100%;
  height: 100%;
  background: var(--black);
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}
#bloc-chargement > span {
  color: var(--white);
}
.lds-default {
  display: inline-block;
  position: relative;
  width: 80px;
  height: 80px;
}
.lds-default div {
  position: absolute;
  width: 6px;
  height: 6px;
  background: var(--white);
  border-radius: 50%;
  animation: lds-default 1.2s linear infinite;
}
.lds-default div:nth-child(1) {
  animation-delay: 0s;
  top: 37px;
  left: 66px;
}
.lds-default div:nth-child(2) {
  animation-delay: -0.1s;
  top: 22px;
  left: 62px;
}
.lds-default div:nth-child(3) {
  animation-delay: -0.2s;
  top: 11px;
  left: 52px;
}
.lds-default div:nth-child(4) {
  animation-delay: -0.3s;
  top: 7px;
  left: 37px;
}
.lds-default div:nth-child(5) {
  animation-delay: -0.4s;
  top: 11px;
  left: 22px;
}
.lds-default div:nth-child(6) {
  animation-delay: -0.5s;
  top: 22px;
  left: 11px;
}
.lds-default div:nth-child(7) {
  animation-delay: -0.6s;
  top: 37px;
  left: 7px;
}
.lds-default div:nth-child(8) {
  animation-delay: -0.7s;
  top: 52px;
  left: 11px;
}
.lds-default div:nth-child(9) {
  animation-delay: -0.8s;
  top: 62px;
  left: 22px;
}
.lds-default div:nth-child(10) {
  animation-delay: -0.9s;
  top: 66px;
  left: 37px;
}
.lds-default div:nth-child(11) {
  animation-delay: -1s;
  top: 62px;
  left: 52px;
}
.lds-default div:nth-child(12) {
  animation-delay: -1.1s;
  top: 52px;
  left: 62px;
}
@keyframes lds-default {
  0%, 20%, 80%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.5);
  }
}
/* Fin Loader */

* {
  box-sizing: border-box;
}
::placeholder {
  color: var(--dark-gray);
  opacity: 1;
  font-weight: 300;
}
::selection {
  background-color: var(--primary-red);
  color: var(--white);
}

/* Nouveau style de menu */
#menu {
  background: linear-gradient(135deg, var(--secondary-red), var(--primary-red));
  border-bottom: 2px solid var(--accent-yellow);
  text-align: center;
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 4;
  overflow: hidden;
  height: 53px;
}
#menu::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s;
}
#menu:hover::before {
  left: 100%;
}
#menu ul {
  padding: 0;
  margin: 0;
  height: 50px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 20px;
}
#menu ul li {
  list-style-type: none;
  transition: all 0.3s ease;
  display: flex;
  margin-right: unset;/* surcharge helper sites */
}
#menu ul li:hover {
  transform: scale(1.1);
}
#menu ul li a {
  color: var(--white);
  text-decoration: none;
  text-transform: uppercase;
  font-weight: 600;
  font-family: var(--font-family-zrnic);
  font-size: clamp(1.4rem, 3.5vw, 1.6rem);
  padding: 0px 20px;
  border-radius: 25px;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.2);
  transition: all 0.3s ease;
  display: inline-block;
  position: relative;
  overflow: hidden;
}
#menu ul li a::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  transition: left 0.5s;
}
#menu ul li a:hover::before {
  left: 100%;
}
#menu ul li a:hover {
  background: rgba(255,255,255,0.2);
  color: var(--white);
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}
.menu-scrolled {
  position: fixed;
  left: 0;
  top: 0;
  right: 0;
  z-index: 1000;
  background: linear-gradient(135deg, var(--primary-red), var(--secondary-red)) !important;
  border-bottom: 2px solid var(--accent-yellow) !important;
  box-shadow: 0px 5px 10px rgba(0,0,0,0.5) !important;
}
.menu-scrolled ul li a {
  color: var(--white) !important;
  background: rgba(255,255,255,0.1) !important;
}
.menu-scrolled ul li a:hover {
  background: rgba(255,255,255,0.2) !important;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5) !important;
}
#logo {
  width: 250px;
  height: 269px;
  margin: 0 auto;
}
.icon-tel {
  background: url(tel.png) no-repeat 0 0;
  padding-left: 32px;
}
a {
  color: var(--primary-red);
  text-decoration: none;
  transition: all 0.2s;
}
a:hover {
  color: var(--white);
}
/* Afficher "Appel" au lieu du numéro sur mobile via HTML */
.mobile {
  display: none;
}
.desktop {
  display: inline;
}
/* Media Queries */
@media screen and (min-width: 1060px) {
  .article {
    margin: var(--spacing-large) auto;
  }
}
@media screen and (max-width: 768px) {
  .titre_section {
    text-shadow: 1px 1px 0px #dfdfdf, 2px 2px 0px #009046;
  }
  #menu {
    height: 51px;
  }
  .tabs {
    top: 51px;
  }
  #menu ul li a {
    font-size: 1.3rem;
    padding: 4px 17px;
  }
  .mobile {
    display: inline;
  }
  .desktop {
    display: none;
  }
}
@media screen and (max-width: 640px) {
  #menu ul li a {
    font-size: 0.9rem;
    padding: 6px 12px;
  }
  #menu ul li {
    margin: 5px 5px;
  }
  #form-contact div:nth-child(1), #form-contact div:nth-child(2) {
    width: 100%;
  }
  .espaceur {
      margin: 10px !important;
  }
}
@media screen and (max-width: 440px) {
  #menu ul li a {
    font-size: 0.8rem;
    padding: 5px 10px;
  }
  #menu ul li {
    margin: 3px;
  }
}