/* CORMACO : fenêtre procédé en surimpression */
/* Bloque le défilement de la page sans perdre la position de lecture */
html.cm-panel-open { overflow: hidden; scrollbar-gutter: stable; background-color: #0D1C1B; }

.cm-panel-backdrop {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  padding: 4vh 16px; box-sizing: border-box;
  background: rgba(13, 28, 27, .35);
  -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
  opacity: 0; visibility: hidden;
  transition: opacity .25s ease, visibility 0s linear .25s;
}
.cm-panel-backdrop.is-open { opacity: 1; visibility: visible; transition: opacity .25s ease; }

.cm-panel {
  position: relative; width: 100%; max-width: 780px; max-height: 92vh;
  overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain;
  box-sizing: border-box; padding: 44px 56px 34px;
  background: rgba(13, 28, 27, .94); color: #FFF;
  border-top: 3px solid #E1C070;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .45);
  font-family: 'Barlow', sans-serif; font-weight: 300; font-size: 17px;
  transform: translateY(14px); transition: transform .3s ease;
  outline: none;
}
.cm-panel-backdrop.is-open .cm-panel { transform: none; }

.cm-panel-close {
  position: sticky; top: 0; float: right; z-index: 2;
  width: 44px; height: 44px; margin: -30px -40px 0 12px; padding: 0;
  border: 0; background: transparent; cursor: pointer;
  color: #E1C070; font: 300 38px/44px 'Barlow', sans-serif; text-align: center; text-decoration: none;
  opacity: .8; transition: opacity .2s;
}
.cm-panel-close:hover, .cm-panel-close:focus-visible { opacity: 1; }

.cm-panel .cm-kicker { margin: 0 0 .7em; color: #E1C070; font-size: .78em; font-weight: 400; letter-spacing: 2px; text-transform: uppercase; opacity: .85; }
.cm-panel h1 { margin: 0 0 .6em; color: #E1C070; font-weight: 200; font-size: 2.1em; line-height: 1.2; }
.cm-panel h2 { margin: 1.6em 0 .4em; color: #FFF; font-weight: 300; font-size: 1.3em; line-height: 1.4; }
.cm-panel p, .cm-panel li { margin: 0 0 .9em; line-height: 1.7; }
.cm-panel ul { margin: 0 0 1em; padding-left: 1.1em; }
.cm-panel li { margin-bottom: .35em; }
.cm-panel li::marker { color: #E1C070; }
.cm-panel a { color: #E1C070; }
.cm-panel .cm-cta { margin-top: 1.8em; padding-top: 1.1em; border-top: 1px solid rgba(225, 192, 112, .35); }
/* Liens vers les procédés voisins, en bas de chaque fenêtre */
.cm-panel .cm-liens { margin: 1.8em 0 0; padding-top: 1.1em; border-top: 1px solid rgba(225, 192, 112, .35); font-size: .92em; }
.cm-panel .cm-liens a { text-decoration: none; white-space: nowrap; }
.cm-panel .cm-liens a:hover, .cm-panel .cm-liens a:focus-visible { text-decoration: underline; text-underline-offset: 3px; }
.cm-panel .cm-back { display: inline-block; margin-top: .6em; color: #E1C070; font-weight: 400; text-decoration: none; }
.cm-panel .cm-back:hover { text-decoration: underline; }
.cm-panel .cm-legal { margin: 1.6em 0 0; font-size: .74em; line-height: 1.5; opacity: .6; }

@media screen and (max-width: 768px) {
  /* Une marge laisse voir le site autour de la fenêtre */
  .cm-panel-backdrop { padding: 16px 10px; }
  .cm-panel { max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); padding: 24px 20px 28px; border-top-width: 3px; font-size: 16px; }
  .cm-panel h1 { font-size: 1.65em; }
  .cm-panel-close { margin: -14px -8px 0 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .cm-panel-backdrop, .cm-panel { transition: none; }
}

/* Procédés cliquables sur l'accueil : le bouton reste visible sans survol, donc aussi sur GSM */
#home .container.blurContent ul li.cm-item { border-radius: 2px; cursor: pointer; transition: background-color .2s, box-shadow .2s; }
#home .container.blurContent ul li.cm-item:hover { background-color: rgba(225, 192, 112, .08); box-shadow: 0 0 0 10px rgba(225, 192, 112, .08); }
#home a.cm-panel-link { color: inherit; text-decoration: none; }
#home li.cm-item:hover a.cm-panel-link strong, #home a.cm-panel-link:focus-visible strong { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
/* Lien discret en blanc atténué, sans soulignement, comme le sélecteur de langue du site ; l'or reste réservé aux intitulés */
#home a.cm-more {
  color: rgba(255, 255, 255, .6); font-size: .8em; font-weight: 300; letter-spacing: .3px; white-space: nowrap;
  text-decoration: none; transition: color .2s;
}
#home li.cm-item:hover a.cm-more, #home a.cm-more:focus-visible { color: #FFF; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: rgba(255, 255, 255, .8); }

/* Page procédé ouverte directement : le haut de l'accueil sert de fond */
body.cm-page { margin: 0; min-height: 100vh; background: #0D1C1B; }
.cm-fond { position: fixed; inset: 0; background: #0D1C1B url(/wp-content/uploads/2019/09/usine.jpg) 50% / cover no-repeat; }
.cm-fond::after { content: ''; position: absolute; inset: 0; background: #0D1C1B; opacity: .6; }
/* Logo placé comme sur l'accueil */
.cm-fond img { position: absolute; z-index: 1; top: 10vw; left: calc(50% - 735px); width: 700px; max-width: 100%; }
@media screen and (max-width: 1470px) { .cm-fond img { left: 0; } }
@media screen and (max-width: 768px) { .cm-fond img { left: 15px; width: calc(100% - 30px); } }
