/**
 * global.css — La Référence
 * Reset, styles de base, utilitaires globaux.
 */

/* -------------------------
   @font-face — Satoshi
------------------------- */
@font-face {
    font-family: 'Satoshi';
    src: url('../fonts/Satoshi-Regular.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Satoshi';
    src: url('../fonts/Satoshi-Italic.otf') format('opentype');
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Satoshi';
    src: url('../fonts/Satoshi-Light.otf') format('opentype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Satoshi';
    src: url('../fonts/Satoshi-LightItalic.otf') format('opentype');
    font-weight: 300;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Satoshi';
    src: url('../fonts/Satoshi-Medium.otf') format('opentype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Satoshi';
    src: url('../fonts/Satoshi-MediumItalic.otf') format('opentype');
    font-weight: 500;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Satoshi';
    src: url('../fonts/Satoshi-Bold.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Satoshi';
    src: url('../fonts/Satoshi-BoldItalic.otf') format('opentype');
    font-weight: 700;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Satoshi';
    src: url('../fonts/Satoshi-Black.otf') format('opentype');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Satoshi';
    src: url('../fonts/Satoshi-BlackItalic.otf') format('opentype');
    font-weight: 900;
    font-style: italic;
    font-display: swap;
}

/* -------------------------
   @font-face — Instrument Sans
------------------------- */
@font-face {
    font-family: 'Instrument Sans';
    src: url('../fonts/InstrumentSans-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Instrument Sans';
    src: url('../fonts/InstrumentSans-Italic.ttf') format('truetype');
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Instrument Sans';
    src: url('../fonts/InstrumentSans-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Instrument Sans';
    src: url('../fonts/InstrumentSans-MediumItalic.ttf') format('truetype');
    font-weight: 500;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Instrument Sans';
    src: url('../fonts/InstrumentSans-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Instrument Sans';
    src: url('../fonts/InstrumentSans-SemiBoldItalic.ttf') format('truetype');
    font-weight: 600;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Instrument Sans';
    src: url('../fonts/InstrumentSans-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Instrument Sans';
    src: url('../fonts/InstrumentSans-BoldItalic.ttf') format('truetype');
    font-weight: 700;
    font-style: italic;
    font-display: swap;
}

/* -------------------------
   GeneratePress — full width
------------------------- */

/* Supprime la largeur max du wrapper GP */
.grid-container,
.site-header .inside-header,
.site-footer .inside-footer,
.nav-bar-items,
.main-navigation .inside-navigation {
    max-width: 100%;
    padding-inline: 0;
}

/* Le contenu principal occupe toute la largeur */
.site-main,
.content-area,
.site-content,
.inside-article,
.entry-content {
    max-width: 100%;
    padding: 0;
}

/* Retire les marges internes GP sur le <main> */
.site-main > .inside-article,
.page-content {
    padding: 0;
    margin: 0;
}

/* -------------------------
   Reset
------------------------- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* -------------------------
   Base
------------------------- */
html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

html {
    overflow-x: hidden;
}

body {
    overflow-x: hidden;
    background-color: var(--color-bg);
    color: var(--color-black);
    font-family: var(--font-secondary);
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-regular);
    line-height: var(--line-height-normal);
}

img,
video {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
    text-decoration: none;
}

ul,
ol {
    list-style: none;
}

/* -------------------------
   Typographie de base
------------------------- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: var(--font-weight-black);
    line-height: var(--line-height-tight);
    color: var(--color-black);
}

p {
    line-height: var(--line-height-loose);
}

/* -------------------------
   Layout — container
------------------------- */
.site-content {
  overflow: hidden;
}

.has-flexible-content .site-content {
    display: block;
}

.container {
    width: 100%;
    margin-inline: auto;
}

/* -------------------------
   Utilitaire — highlight texte
------------------------- */
.highlight {
    background-color: var(--color-lime);
    color: var(--color-black);
    padding-inline: 4px;
}

/* -------------------------
   Utilitaire — bouton CTA
------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: var(--color-lime);
    color: var(--color-black);
    font-family: var(--font-primary);
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-black);
    text-decoration: none;
    line-height: 1;
    padding: 16px 32px;
    border-radius: var(--radius-full);
    border: none;
    cursor: pointer;
    transition: background-color var(--transition-fast), transform var(--transition-fast);
}

.btn:hover {
    background-color: var(--color-lime-dark);
    transform: translateY(-1px);
}

.btn:focus-visible {
    outline: 3px solid var(--color-blue);
    outline-offset: 3px;
}

.btn--dark {
    background-color: var(--color-black);
    color: var(--color-white);
}

.btn--dark:hover {
    background-color: var(--color-gray-dark);
}

/* -------------------------
   Utilitaire — sections
   Le padding horizontal est géré par .container à l'intérieur.
------------------------- */
.section {
    position: relative;
    overflow: hidden;
    padding-block: var(--section-padding-y);
}

/* Règle globale : toutes les sections pleine largeur */
[class^="section-"] {
    padding-inline: 0;
}

/* Sections — stacking universel pour shapes
   Section = position: relative (ancre les shapes)
   Container = z-above (contenu toujours au-dessus des shapes) */
section[class*="section-"] {
    position: relative;
}

section[class*="section-"] > .container {
    position: relative;
    z-index: var(--z-above);
}

/* -------------------------
   Accessibilité — focus
------------------------- */
:focus-visible {
    outline: 3px solid var(--color-blue);
    outline-offset: 3px;
}

/* -------------------------
   Visually hidden
------------------------- */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
