/*
 * Menu principal du site public : proposition "design" (2 novembre 2026).
 * Fond blanc, texte bleu marine, trait de couleur sous chaque rubrique dans l'ordre des couleurs du logo
 * (marine, rouge, bleu clair, orange, violet, vert) ; il s'allonge au survol et pour la page en cours.
 * Les anciennes regles (style.css, styleY.css) ne sont pas touchees : pour revenir en arriere, il suffit de
 * retirer les lignes qui chargent ce fichier dans templates/layout/default.php.
 */
.w100 {
  background: #fff !important;
  overflow: visible !important;
  /* ombre vers le bas seulement : le bandeau du haut et le menu ne font qu'un */
  box-shadow: 0 9px 10px -8px rgba(45, 71, 112, .28);
  border-top: 0;
}
#nav-line2 > ul {
  display: flex;
  justify-content: center;
  align-items: stretch;
  margin: 0 auto;
  padding: 0;
}
#nav-line2 > ul > li {
  --c: #2d4770;
  --t: rgba(45, 71, 112, .07);
  position: relative;
  flex: 1 1 0;
  width: auto;
  margin: 0;
  border: 0 !important;
  background: transparent !important;
  transition: background-color .25s ease;
}
#nav-line2 > ul > li:nth-child(1) { --c: #2d4770; --t: rgba(45, 71, 112, .07); }
#nav-line2 > ul > li:nth-child(2) { --c: #e9002d; --t: rgba(233, 0, 45, .06); }
#nav-line2 > ul > li:nth-child(3) { --c: #7da4cf; --t: rgba(125, 164, 207, .14); }
#nav-line2 > ul > li:nth-child(4) { --c: #f2a912; --t: rgba(242, 169, 18, .12); }
#nav-line2 > ul > li:nth-child(5) { --c: #70217c; --t: rgba(112, 33, 124, .07); }
#nav-line2 > ul > li:nth-child(6) { --c: #a3b92a; --t: rgba(163, 185, 42, .13); }

#nav-line2 > ul > li:hover,
#nav-line2 > ul > li[class*="Active"] {
  background: var(--t) !important;
}
#nav-line2 li a,
#nav-line2 li:hover a {
  color: #2d4770 !important;
}
#nav-line2 > ul > li > a {
  position: relative;
  display: block;
  padding: 12px 10px;
  line-height: 17px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  text-decoration: none;
  text-align: center;
}
/* trait de couleur : court au repos, pleine largeur au survol et sur la page en cours */
#nav-line2 > ul > li > a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 26px;
  height: 3px;
  margin-left: -13px;
  border-radius: 3px 3px 0 0;
  background: var(--c);
  transition: width .3s ease, margin-left .3s ease;
}
#nav-line2 > ul > li:hover > a::after,
#nav-line2 > ul > li[class*="Active"] > a::after {
  width: 100%;
  margin-left: -50%;
  border-radius: 0;
}
#nav-line2 > ul > li[class*="Active"] > a {
  color: #2d4770 !important;
}

/* sous-menu qui s'ouvre vers le bas */
#nav-line2 > ul > li > ul {
  display: block !important;
  position: absolute;
  top: 100%;
  left: 0;
  width: auto;
  min-width: 100%;
  min-width: max(100%, 230px);
  margin: 0;
  padding: 6px 0 8px;
  text-align: left;
  background: #fff;
  border-top: 0; /* pas de trait de couleur dans le sous-menu : seul le petit trait du titre s ouvre au survol (retour arrière : border-top: 3px solid var(--c);) */
  border-radius: 0 0 10px 10px;
  box-shadow: 0 14px 30px rgba(45, 71, 112, .2);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
}
#nav-line2 > ul > li:hover > ul {
  opacity: 1;
  visibility: visible;
  transform: none;
}
#nav-line2 > ul > li > ul > li {
  display: block;
  width: 100%;
  margin: 0;
  border: 0 !important;
  background: transparent !important;
}
#nav-line2 > ul > li > ul > li:hover { background: transparent !important; }
#nav-line2 > ul > li > ul > li > a {
  padding: 10px 20px 10px 17px;
  border-left: 3px solid transparent;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .01em;
  line-height: 18px;
  text-transform: none;
  text-align: left;
  transition: background-color .2s ease, border-color .2s ease, padding-left .2s ease;
}
#nav-line2 > ul > li > ul > li:hover > a {
  background: var(--t);
  border-left-color: var(--c);
  padding-left: 22px;
}

/* telephone : menu deplie sous le bouton, un liseré de couleur a gauche de chaque rubrique */
@media screen and (max-width: 750px) {
  #nav-line2 > ul { display: block; }
  #nav-line2 > ul > li { display: block; width: 100%; box-shadow: inset 4px 0 0 var(--c); }
  #nav-line2 > ul > li > a { text-align: left; padding-left: 18px; }
  #nav-line2 > ul > li > a::after { display: none; }
  #nav-line2 > ul > li > ul {
    position: static;
    display: none !important;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border-top: 0;
    border-radius: 0;
    padding: 0 0 6px 8px;
    background: transparent;
  }
  #nav-line2 > ul > li:hover > ul { display: block !important; }
}

/* boutons du compte client (Mes logiciels, Mes commandes, Mon compte, Deconnexion) et bouton Connexion */
#menu-user .menu-user-item {
  --c: #e9002d;
  --t: rgba(233, 0, 45, .06);
  position: relative;
  width: 118px;
  height: 32px;
  margin: 5px 4px;
  border: 1px solid #d3dbe7;
  border-radius: 16px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(45, 71, 112, .08);
  transition: background-color .25s ease, border-color .25s ease, box-shadow .25s ease;
}
#menu-user .menu-user-item:nth-child(2) { --c: #7da4cf; --t: rgba(125, 164, 207, .16); }
#menu-user .menu-user-item:nth-child(3) { --c: #f2a912; --t: rgba(242, 169, 18, .14); }
#menu-user .menu-user-item:nth-child(4) { --c: #70217c; --t: rgba(112, 33, 124, .08); }
#menu-user .menu-user-item::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--c);
  transition: width .3s ease, margin-left .3s ease;
}
#menu-user .menu-user-item a {
  display: block;
  color: #2d4770;
  font-size: 11.5px;
  font-weight: 600;
  line-height: 30px;
  letter-spacing: .02em;
  text-decoration: none;
}
#menu-user .menu-user-item:hover {
  background: var(--t);
  border-color: var(--c);
  box-shadow: 0 3px 8px rgba(45, 71, 112, .14);
}
#menu-user .menu-user-item:hover::after { width: 60%; margin-left: -30%; }
#menu-user .menu-user-item:hover a { color: #2d4770; }

#connexion button {
  border: 1px solid #2d4770 !important;
  border-radius: 16px !important;
  background: #fff !important;
  color: #2d4770 !important;
  font-weight: 600;
  transition: background-color .25s ease, color .25s ease;
}
#connexion button:hover {
  background: #2d4770 !important;
  color: #fff !important;
}

/* petits ecrans : l'ancien style imposait une largeur minimale de 450 px au contenu (.container), ce qui faisait
   deborder la page a droite sur les telephones de moins de 450 px */
.container, #centrale, #top_nav, #bottom_nav { min-width: 0 !important; }

/* accueil, petits ecrans : les blocs "ordinateur" (hidden-xs hidden-sm) restaient affiches, en plus des blocs mobiles,
   a cause d'un display force par l'ancien style ; ils fixaient aussi une largeur de 400 px */
@media (max-width: 767px) {
  #centrale section.hidden-xs { display: none !important; }
  #centrale section.espaceFam, #centrale section.espacePro { width: 100% !important; max-width: 100%; box-sizing: border-box; }
}

/* pied de page : textes en noir (« site réalisé par », liens, copyright), sur ordinateur et dans le menu téléphone */
#footer-left, #footer-left a, #footer-center, #footer-center a, #footer-right,
.mm-footer, .mm-footer a { color: #000 !important; }
#footer-left a:hover, #footer-center a:hover, .mm-footer a:hover { color: #444 !important; }

/* inscription à la newsletter (Brevo) */
.newsletter-bloc { text-align: center; }
.newsletter-titre { display: block; margin-bottom: 8px; color: #000; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; }
.newsletter-form { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; margin: 0; }
.newsletter-form input[type="email"] {
  width: 280px; max-width: 100%; height: 38px; padding: 0 14px;
  border: 1px solid #c9d5e6; border-radius: 999px; background: #fff; color: #2d4770; font-size: 13px;
}
.newsletter-form button {
  height: 38px; padding: 0 22px; border: 1px solid #2d4770; border-radius: 999px;
  background: #2d4770; color: #fff; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; cursor: pointer;
  transition: background-color .25s ease;
}
.newsletter-form button:hover { background: #4478b4; border-color: #4478b4; }
.newsletter-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.newsletter-info { display: block; margin-top: 8px; color: #555; font-size: 11px; }
.newsletter-info a { color: #555 !important; text-decoration: underline; }
footer #footer-newsletter { padding: 28px 0 0; }

/* pied de page : plus de grande barre de couleur ; fond légèrement teinté et rappel du petit trait de couleur des titres */
#bottom_nav {
  display: flow-root;
  position: relative;
  margin-top: 50px;
  background: #f3f6fb;
  border-top: 1px solid #dfe7f2;
}
#bottom_nav #bcgfoot { display: none; }
#bottom_nav::before {
  content: "";
  position: absolute;
  top: -3px;
  left: 50%;
  width: 56px;
  height: 5px;
  margin-left: -28px;
  border-radius: 5px;
  background: linear-gradient(90deg, #e9002d 0 25%, #7da4cf 25% 50%, #f2a912 50% 75%, #70217c 75% 100%);
}

/* mobile : même gouttière (16 px) à gauche et à droite sur toutes les pages, calée sur la fiche produit (#popup) qui sert de référence
   et n'est pas touchée. Retour arrière : retirer ce bloc. */
@media (max-width: 792px) {
  body #content > .content,
  body #content > * > .content {
    width: auto !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
    box-sizing: border-box;
  }
  body #content > .main_computer_box,
  body #content .main_computer_box {
    box-sizing: border-box;
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
  body #content .main_computer_box .full_box_slide2 {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  /* pages à cartes (formulaires, compte...) : les colonnes Bootstrap ajoutaient 10 à 15 px de plus à gauche et à droite */
  .commande .row { margin-left: 0; margin-right: 0; }
  .commande .row > [class*="col-"] { padding-left: 0; padding-right: 0; }
  .commande .form-users { margin-left: 0 !important; margin-right: 0 !important; }
  /* bannières Hint5-min / VideoShow du haut des pages : image entière (elle était rognée sur les côtés) */
  body #content .main_box_slide_img_1,
  body #content .main_box_slide_img_2 {
    height: auto !important;
    aspect-ratio: 550 / 398;
    background-size: 100% 100% !important;
  }
  /* fiche produit : inchangée */
  body #content #popup .content,
  body #content > #popup > .content {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
}

/* pied de page : adresse à la place du crédit à gauche ; crédit « Site réalisé par » sous le copyright, à droite, sans gras */
#footer-left address.adresse-societe, .mm-footer address.adresse-societe { margin: 0; font-style: normal; font-size: 12px; font-weight: 400; line-height: 1.6; color: #000; }
#footer-left address.adresse-societe strong { font-weight: 700; }
#footer-right { text-align: right; }
#footer-right p { margin: 0 0 4px; }
#footer-right .footer-credit, .mm-footer .mm-credit { font-size: 11px; font-weight: 400 !important; text-align: right; }
.mm-footer .mm-credit { margin: 8px 0 0; }
.mm-footer .mm-adresse { margin: 16px 0 10px; }
#footer-right a, .mm-footer .mm-credit a { color: #000 !important; font-weight: 400 !important; text-decoration: none; }
#footer-right a:hover, .mm-footer .mm-credit a:hover { color: #444 !important; text-decoration: underline; }
/* pied de page ordinateur : petit logo au-dessus de l'adresse */
#footer-left address.adresse-ordinateur, .mm-footer address.adresse-ordinateur { font-size: 12px; line-height: 1.6; }
#footer-left address.adresse-ordinateur .adresse-logo, .mm-footer address.adresse-ordinateur .adresse-logo { height: 26px; width: auto; margin-bottom: 6px; }

/* pied de page sous 990 px : colonnes empilées, copyright et crédit centrés, espaces réduits entre adresse, liens et copyright */
@media (max-width: 990px) {
  body #bottom_nav #footer-left, body #bottom_nav #footer-center, body #bottom_nav #footer-right { padding: 4px 0 !important; margin: 0 !important; }
  body #bottom_nav #footer-right, #footer-right .footer-credit { text-align: center !important; }
  body #bottom_nav #footer-right { padding-bottom: 18px !important; }
  #footer-right p { margin: 0 0 2px; }
  #footer-center { line-height: 1.6; }
}

/* pied de page du menu mobile : même présentation que sur ordinateur (logo + adresse sans e-mail), copyright et crédit centrés */
.mm-footer .mm-copyright { text-align: center; margin: 4px 0 2px; }
.mm-footer .mm-credit { text-align: center; margin: 0; }
.mm-footer .mm-adresse { text-align: center; margin: 14px 0 6px; }
.mm-footer .mm-liens { margin: 0 0 6px; }
