/* =============================================================================
   Coquille commune du site (header, menu mobile, pied de page, boutons du hero)
   Reproduit la mise en page Wix relevée sur www.deniscellier.com :
   - bureau  : bandeau de 116 px, grille 245 / 539 / 196 sur calc(100% - 160px),
               jamais moins de 980 px ;
   - mobile  : gabarit Wix de 320 px (la page fixe le viewport à 320 sur
               téléphone, comme Wix), bandeau de 129 px et menu plein écran.
   Polices : Wix sert « Helvetica W01 » ; ici la Helvetica du système.
   ============================================================================= */

:root {
  --dc-navy: #091C36;
  --dc-cream: #F8F4ED;
  --dc-ink: #333333;
  --dc-hover: #CE9569;
  --dc-violet: #797ED0;
  --dc-btn-navy: #10294E;
  --dc-font: Helvetica, "Helvetica Neue", Arial, sans-serif;
  --dc-header-h: 116px;
}

/* Header collant : sur l'accueil et Performance, html ET body avaient
   overflow-x:hidden, ce qui fait de body une zone de défilement — le header
   ne collait plus. « clip » rogne pareil sans créer de zone de défilement.
   (html body : plus spécifique que les règles des pages, chargées après.) */
html body { overflow-x: clip; }

/* ---------------------------------------------------------------- header -- */
.dc-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #FFFFFF;
  font-family: var(--dc-font);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}
.dc-header *,
.dc-header *::before,
.dc-header *::after { box-sizing: border-box; }

.dc-header__bar {
  position: relative;
  display: flex;
  width: calc(100% - 160px);
  min-width: 980px;
  height: 116px;
  margin: 0 auto;
}

.dc-header__brand { display: flex; flex: 245 1 0; min-width: 0; align-items: flex-start; }
.dc-header__logo { display: block; flex: none; width: 70px; height: 51px; margin: 32px 0 0 7px; }
.dc-header__logo img { display: block; width: 70px; height: 51px; max-width: none; }
.dc-header__name {
  margin: 43px 0 0 17px;
  color: var(--dc-navy);
  font-size: 25px;
  font-weight: 700;
  line-height: 30px;
  text-decoration: none;
  white-space: nowrap;
}

.dc-header__nav { display: flex; flex: 539 1 0; min-width: 0; justify-content: center; }
.dc-header__nav ul {
  display: flex;
  width: 539px;
  height: 50px;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
}
/* Wix répartit l'espace restant à parts égales entre les rubriques */
.dc-header__nav li { flex: 1 1 auto; margin: 0; padding: 0; }
.dc-header__nav a {
  display: block;
  padding: 0 5px;
  color: var(--dc-ink);
  font-size: 16px;
  line-height: 50px;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  transition: color .4s ease;
}
.dc-header__nav a[aria-current="page"] { color: var(--dc-navy); }

.dc-header__cta-col { display: flex; flex: 196 1 0; min-width: 0; justify-content: flex-end; }
.dc-header__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 196px;
  height: 55px;
  margin-top: 24px;
  border-radius: 10px;
  background: var(--dc-violet);
  color: var(--dc-cream);
  font-size: 16px;
  line-height: 1.4;
  text-decoration: none;
  transition: background-color .4s ease, color .4s ease;
}

/* bouton du menu mobile (masqué sur bureau) */
.dc-burger {
  display: none;
  position: absolute;
  top: 11px;
  right: 10px;
  z-index: 2;
  width: 50px;
  height: 50px;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.dc-burger span {
  position: absolute;
  left: 14px;
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: var(--dc-ink);
  transition: top .3s ease, transform .3s ease, opacity .2s ease;
}
.dc-burger span:nth-child(1) { top: 15px; }
.dc-burger span:nth-child(2) { top: 24px; }
.dc-burger span:nth-child(3) { top: 33px; }
.dc-menu-open .dc-burger span:nth-child(1) { top: 24px; transform: rotate(45deg); }
.dc-menu-open .dc-burger span:nth-child(2) { opacity: 0; }
.dc-menu-open .dc-burger span:nth-child(3) { top: 24px; transform: rotate(-45deg); }

/* ------------------------------------------------------ menu plein écran -- */
.dc-menu {
  position: fixed;
  inset: 0;
  z-index: 1;
  overflow-y: auto;
  background: rgba(248, 244, 237, .9);
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s ease, visibility 0s linear .3s;
}
.dc-menu-open .dc-menu { opacity: 1; visibility: visible; transition: opacity .3s ease; }
.dc-menu-open, .dc-menu-open body { overflow: hidden; }
.dc-menu ul { width: 271px; margin: 86px auto 0; padding: 0; list-style: none; }
.dc-menu li { margin: 0; padding: 0; }
.dc-menu a {
  display: block;
  height: 56px;
  color: var(--dc-ink);
  font-size: 22px;
  line-height: 56px;
  text-align: center;
  text-decoration: none;
}
.dc-menu a[aria-current="page"] { color: var(--dc-hover); }
.dc-menu__griffe { display: block; width: 82px; height: 59px; max-width: none; margin: 22px auto 0; }

/* ---------------------------------------------------------- pied de page -- */
.dc-footer { height: 51px; background: var(--dc-navy); }

/* ------------------------------- boutons Wix posés sur le hero (accueil…) -- */
.dc-actions { visibility: visible !important; }
.dc-wixbtn {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  height: 55px;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 1px solid var(--dc-ink);
  border-radius: 10px;
  font-family: var(--dc-font);
  font-size: 16px;
  font-weight: 400;
  letter-spacing: normal;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
  text-transform: none;
  transition: background-color .4s ease, color .4s ease;
}
.dc-wixbtn--navy { width: 274px; background: var(--dc-btn-navy); color: var(--dc-cream); }
.dc-wixbtn--cream { width: 249px; background: var(--dc-cream); color: var(--dc-navy); }
/* survols relevés en ligne — uniquement avec une souris : sur téléphone, le
   survol reste « collé » après un appui et le bouton paraissait vidé */
@media (hover: hover) {
  .dc-header__nav a:hover { color: var(--dc-hover); }
  .dc-header__cta:hover { background: transparent; color: var(--dc-ink); }
  .dc-wixbtn--navy:hover { background: transparent; color: var(--dc-ink); }
  .dc-wixbtn--cream:hover { background: #0F2545; color: var(--dc-cream); }
}

/* hauteurs des blocs Wix : chaque section garde au moins la hauteur de son bloc */
@media (min-width: 981px) { .dc-fixh { min-height: var(--dc-hd); } }
@media (max-width: 750px) { .dc-fixh { min-height: var(--dc-hm); } }

/* les ancres ne passent pas sous le header collant */
main [id] { scroll-margin-top: var(--dc-header-h); }

/* -------------------------------------------------------------- mobile -- */
@media (max-width: 980px) {
  :root { --dc-header-h: 129px; }
  .dc-header__bar { display: block; width: 100%; min-width: 0; height: 129px; }
  .dc-header__logo { position: absolute; top: 10px; left: 7px; margin: 0; }
  .dc-header__name {
    position: absolute;
    top: 23px;
    left: calc(50% - 52px);
    margin: 0;
    font-size: 19px;
    line-height: 23px;
  }
  .dc-header__nav { display: none; }
  .dc-header__cta {
    position: absolute;
    top: 70px;
    left: 50%;
    width: 200px;
    height: 42px;
    margin: 0 0 0 -100px;
    font-size: 14.93px;
  }
  .dc-burger { display: block; }
  .dc-footer { height: 40px; }
}

@media (max-width: 750px) {
  .dc-wixbtn { width: 240px; height: 42px; font-size: 14.93px; }
}
