/* Identite lot01 L Actu Techno. Palette DA. Logo non redessine. */
html body {
  --dn-id-ink: #1a237e;
  --dn-id-paper: #ffffff;
  --dn-id-accent: #304ffe;
  --dn-id-display: Inter, ui-sans-serif, system-ui, sans-serif;
  --dn-id-body: Inter, ui-sans-serif, system-ui, sans-serif;
}

html body .dn-id-foot,
html body .dn-id-page {
  color: var(--dn-id-ink);
  background: var(--dn-id-paper);
  font-family: var(--dn-id-body);
}

html body .dn-id-foot--lactutechno {
  border-top: 3px solid var(--dn-id-accent);
  padding: 28px 0 18px;
}

html body .dn-id-foot__band {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
  justify-content: space-between;
}

html body .dn-id-foot__band--2 {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid color-mix(in srgb, var(--dn-id-ink) 16%, transparent);
}

html body .dn-id-brand img {
  display: block;
  width: auto;
  height: auto;
  max-height: 48px;
  min-width: 180px;
  max-width: min(280px, 70vw);
}

html body .dn-id-foot__sections,
html body .dn-id-foot__house,
html body .dn-id-foot__base nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
}

html body .dn-id-foot a {
  color: var(--dn-id-ink);
  text-decoration: none;
  font: 600 0.92rem/1.3 var(--dn-id-body);
}

html body .dn-id-foot a:hover,
html body .dn-id-foot a:focus-visible {
  text-decoration: underline;
}

html body .dn-id-foot__ads {
  margin: 0;
  max-width: 36rem;
  font: 400 0.92rem/1.4 var(--dn-id-body);
}

html body .dn-id-foot__ads strong {
  display: block;
  font-family: var(--dn-id-display);
  color: var(--dn-id-ink);
}

html body .dn-id-foot__base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 18px;
  margin-top: 18px;
  font: 400 0.8rem/1.4 var(--dn-id-body);
}

html body .dn-id-kicker {
  margin: 0 0 8px;
  font: 700 0.75rem/1.2 var(--dn-id-display);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dn-id-ink);
}

html body .dn-id-page__head h1 {
  margin: 0 0 18px;
  font: 700 2rem/1.15 var(--dn-id-display);
}

html body .dn-id-page__body h3 {
  font-family: var(--dn-id-display);
}

html body .dn-recaptcha-attribution {
  margin: 14px 0 0;
  font: 400 0.72rem/1.45 var(--dn-id-body);
  color: color-mix(in srgb, var(--dn-id-ink) 72%, transparent);
}

html body .dn-recaptcha-attribution a {
  color: inherit;
  text-decoration: underline;
}

/*
 * Pont de survol du mega-menu desktop.
 *
 * Le theme sert le panneau 6 px sous le bas du declencheur. Quand le curseur
 * traverse ce vide, le `li:hover` tombe, le panneau repasse en
 * `pointer-events:none` et l'opacite decroit en 200 ms : les articles
 * disparaissent avant le clic.
 *
 * Le pseudo-element couvre exactement ce vide, sans agrandir ni deplacer le
 * panneau et sans capter le survol hors de la zone du menu. Il n'existe que sur
 * les items mega-menu desktop (le header desktop est masque sous 941 px).
 */
html body .navigation .menu > li.item-mega-menu > .sub-menu.mega-menu::before {
  content: "";
  position: absolute;
  top: -8px;
  left: 0;
  right: 0;
  height: 8px;
  background: transparent;
  pointer-events: auto;
}

/*
 * Bouton d'envoi des formulaires WPForms aligne sur le CTA de marque.
 *
 * WPForms fixe #066aab dans une feuille inline posee sur :root. On reprend le
 * jeton du theme (--c-main, #222f9a) pour l'etat de repos, le survol, le focus
 * et l'etat desactive, sans toucher aux reglages du plugin ni a un fichier
 * partage. Le corps est vise pour gagner sur :root sans casser les autres
 * formulaires du site.
 */
:root,
html body {
  --wpforms-button-background-color: var(--c-main, #222f9a) !important;
  --wpforms-button-border-color: var(--c-main, #222f9a) !important;
}

@media (max-width: 720px) {
  html body .dn-id-brand img {
    min-width: 160px;
    max-width: 72vw;
  }
  html body .dn-id-foot__band {
    justify-content: flex-start;
  }
}

/*
 * Etats hover et focus visibles des elements cliquables.
 * Matrice interaction_states du contrat : breadcrumb, author, card, button,
 * pagination, footer_link, sharing_link, social_link. Le survol doit produire
 * un changement calcule mesurable, le focus clavier reste visible.
 * Aucun deplacement ni changement de gabarit : pas de decalage de mise en page.
 */
html body .dn-breadcrumb a:hover,
html body .dn-breadcrumb a:focus-visible,
html body a.dn-article-author:hover,
html body a.dn-article-author:focus-visible,
html body .dn-author-card a:hover,
html body .dn-author-card a:focus-visible,
html body .dn-article-byline a:hover,
html body .dn-article-byline a:focus-visible,
html body .dn-pagination a:hover,
html body .dn-pagination a:focus-visible,
html body .dn-pagination .page-numbers:hover,
html body .dn-pagination .page-numbers:focus-visible,
html body .page-numbers:hover,
html body .page-numbers:focus-visible,
html body .spc-social a:hover,
html body .spc-social a:focus-visible,
html body a[href*="x.com/intent"]:hover,
html body a[href*="x.com/intent"]:focus-visible,
html body a[href*="facebook.com/sharer"]:hover,
html body a[href*="facebook.com/sharer"]:focus-visible,
html body .smartmag-float-share a:hover,
html body .smartmag-float-share a:focus-visible {
  color: var(--dn-id-accent, #304ffe) !important;
  text-decoration: underline !important;
  text-underline-offset: 2px;
}

html body .ts-button:hover,
html body .ts-button:focus-visible,
html body a.ts-button-alt:hover,
html body a.ts-button-alt:focus-visible {
  background-color: var(--dn-id-accent, #304ffe) !important;
  border-color: var(--dn-id-accent, #304ffe) !important;
  color: var(--dn-id-paper, #ffffff) !important;
}

/*
 * Correctif P1 Contact : le gabarit partage emet un noeud vide apres le logo.
 * L'auto-placement de grille envoyait alors le texte dans la colonne 210 px et
 * laissait une colonne morte d'environ 830 px. On neutralise le noeud vide et
 * on place explicitement le logo et le texte, sans toucher au gabarit partage.
 */
html body .dn-trust__contact-commercial {
  grid-template-columns: minmax(160px, 200px) minmax(0, 1fr);
  align-items: start;
  gap: clamp(20px, 4vw, 44px);
}
html body .dn-trust__contact-commercial > p:not([class]) {
  display: none !important;
}
html body .dn-trust__contact-commercial > .dn-trust__marketplace-logo {
  grid-column: 1;
  grid-row: 1 / -1;
  align-self: start;
}
html body .dn-trust__contact-commercial > div {
  grid-column: 2;
  grid-row: 1 / -1;
  min-width: 0;
}
html body .dn-trust__contact-commercial p:not(.dn-trust__kicker) {
  max-width: 62ch;
}

/*
 * Refonte P1 Publicite : page editoriale du systeme L'Actu Techno.
 * Largeur de lecture maitrisee, hierarchie nette, plus de corps a 14 px
 * etire sur 1220 px, aucun chiffre invente.
 */
html body .dn-id-page__body {
  font-size: 17px;
  line-height: 1.7;
}
html body .dn-id-page__body > section {
  max-width: 68ch;
  margin: 0 auto 34px;
}
html body .dn-id-page__body > section:first-child {
  margin-top: 6px;
}
html body .dn-id-page__body h2 {
  font-size: clamp(26px, 3.4vw, 40px);
  line-height: 1.16;
  margin: 6px 0 14px;
}
html body .dn-id-page__body h3 {
  font-size: clamp(20px, 2.4vw, 27px);
  line-height: 1.2;
  margin: 0 0 12px;
}
html body .dn-id-page__formats ul {
  margin: 0 0 14px;
  padding-left: 22px;
}
html body .dn-id-page__formats li + li {
  margin-top: 10px;
}
html body .dn-id-page__guardrail {
  margin: 0;
  font-size: 15px;
  color: color-mix(in srgb, var(--dn-id-ink) 72%, transparent);
}
html body .dn-id-button {
  display: inline-block;
  margin-top: 14px;
  padding: 13px 22px;
  color: var(--dn-id-paper, #ffffff) !important;
  background: var(--c-main, #222f9a);
  border-radius: 3px;
  font-weight: 700;
  text-decoration: none;
}
html body .dn-id-button:hover,
html body .dn-id-button:focus-visible {
  background: var(--dn-id-accent, #304ffe) !important;
  text-decoration: none;
}
@media (max-width: 720px) {
  html body .dn-trust__contact-commercial {
    grid-template-columns: minmax(0, 1fr);
  }
  html body .dn-trust__contact-commercial > .dn-trust__marketplace-logo,
  html body .dn-trust__contact-commercial > div {
    grid-column: 1;
    grid-row: auto;
  }
}

/*
 * Correctif P1 Publicite : le formulaire WPForms etait rendu bord a bord du
 * viewport et desaligné du conteneur editorial (champs a 30 px du bord contre
 * ~275 px pour le contenu). On l'aligne sur la meme largeur de lecture que les
 * sections, sans toucher au plugin ni a un fichier partage.
 */
html body .dn-id-page__body > .wpforms-container,
html body .dn-id-page__body > .wpforms-container-full {
  max-width: 68ch !important;
  margin: 34px auto 0 !important;
  padding: 26px 24px !important;
  background: #edf4f8;
  border: 1px solid #c3d3de;
  border-radius: 2px;
}
html body .dn-id-page__body .wpforms-field input,
html body .dn-id-page__body .wpforms-field textarea {
  width: 100% !important;
  font-size: 16px !important;
}
html body .dn-id-page__body .wpforms-field-label {
  font-size: 15px !important;
  font-weight: 700;
}
html body .dn-id-page__body .wpforms-submit {
  font-size: 16px !important;
  padding: 13px 22px !important;
}
html body .dn-recaptcha-attribution {
  font-size: 13px !important;
  line-height: 1.5;
  color: #1a237e !important;
}
html body .dn-recaptcha-attribution a {
  color: #1a237e !important;
}
html body .dn-contact-form .dn-form-consent,
html body .dn-contact-form .dn-form-consent a,
html body .dn-contact-form .dn-form-note a {
  color: #1a237e !important;
}
html body .dn-trust__button--secondary:hover,
html body .dn-trust__button--secondary:focus-visible {
  color: #1a237e !important;
  background: #ffffff !important;
  border-color: #1a237e !important;
}

/*
 * Contraste des etats interactifs : tout aplat de marque garde du texte blanc
 * en repos, survol et focus, y compris le bouton de recherche et le repere de
 * consentement qui heritaient d'une encre sombre sur l'aplat bleu.
 */
html body .ts-button,
html body .ts-button:hover,
html body .ts-button:focus-visible,
html body .dn-id-button,
html body .dn-id-button:hover,
html body .dn-id-button:focus-visible,
html body .wpforms-submit,
html body .wpforms-submit:hover,
html body .wpforms-submit:focus-visible,
html body .search-submit,
html body .search-submit:hover,
html body .search-submit:focus-visible,
html body .dn-consent__button--decision,
html body .dn-consent__button--decision:hover,
html body .dn-consent__button--decision:focus-visible,
html body .dn-consent__mark {
  color: #ffffff !important;
}
html body .search-submit:focus-visible,
html body .dn-id-button:focus-visible,
html body .wpforms-submit:focus-visible {
  outline: 2px solid #ffffff !important;
  outline-offset: 2px;
}

/* P1 Contact : le formulaire etait desaligne du conteneur editorial. */
html body .dn-contact {
  margin-left: auto;
  margin-right: auto;
}

/* P1 Charte editoriale : respiration sous le header et colonne recentree. */
html body .dn-id-page__head {
  margin-top: 34px;
}
html body .dn-trust--policy {
  max-width: 68ch;
  margin-left: auto;
  margin-right: auto;
}
html body .dn-trust--policy > p,
html body .dn-trust--policy li {
  max-width: 68ch;
}

/* P1 Le bureau des signaux : grille de cartes lisible. */
html body .dn-team-hero {
  max-width: 68ch;
  margin: 34px auto 26px;
}
html body .dn-team-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px;
  max-width: 1080px;
  margin: 0 auto;
}
html body .dn-team-card {
  display: grid;
  grid-template-columns: minmax(120px, 168px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  padding: 20px;
  background: #ffffff;
  border: 1px solid #c3d3de;
  border-radius: 2px;
}
html body .dn-team-card__portrait img {
  display: block;
  width: 100%;
  height: auto;
}
html body .dn-team-card__link {
  color: var(--dn-id-accent, #304ffe);
  font-weight: 700;
}
@media (max-width: 720px) {
  html body .dn-team-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  html body .dn-team-card {
    grid-template-columns: minmax(96px, 132px) minmax(0, 1fr);
  }
}
