/* PORTFOLIO CNED — CHARTE GRAPHIQUE */

/* ============================================
   TYPOGRAPHIE — OVERUSED GROTESK
   ============================================ */

@font-face {
  font-family: 'Overused Grotesk';
  src: url('../fonts/OverusedGrotesk-Light.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Overused Grotesk';
  src: url('../fonts/OverusedGrotesk-Roman.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Overused Grotesk';
  src: url('../fonts/OverusedGrotesk-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Overused Grotesk';
  src: url('../fonts/OverusedGrotesk-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Overused Grotesk';
  src: url('../fonts/OverusedGrotesk-Black.woff2') format('woff2');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

/* ============================================
   VARIABLES CSS — CHARTE GRAPHIQUE
   ============================================ */

:root {
  /* Typographies */
  --font-principale: 'Overused Grotesk', sans-serif;
  --font-accent: 'Overused Grotesk', sans-serif;

  /* Couleurs — Backgrounds */
  --color-rouge: #db0503;
  --color-bleu: #02069c;
  --color-blanc-casse: #f8f8f8;
  --color-beige-clair: #e5e4d2;
  --color-noir: #050403;

  /* Couleurs — Textes */
  --color-text-sombre: #050403;
  --color-text-clair: #b0b3d0;

  /* Espacements */
  --space: 1rem;
  --space-section: 4rem;
}

/* ============================================
   COMPORTEMENT GLOBAL
   ============================================ */

html {
  scroll-behavior: smooth;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

/* ============================================
   STYLES DE BASE
   ============================================ */

body {
  margin: 0;
  font-family: var(--font-principale);
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text-sombre);
  background: var(--color-blanc-casse);
}

/* ============================================
   TYPOGRAPHIE — HIÉRARCHIE
   ============================================ */

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-principale);
  font-weight: 900;
  line-height: 1.2;
  margin: 0 0 1rem;
}

h1 {
  font-size: 3rem;
}

h2 {
  font-size: 2.5rem;
}

h3 {
  font-size: 2rem;
}

h4 {
  font-size: 1.5rem;
}

h5 {
  font-size: 1.25rem;
}

h6 {
  font-size: 1rem;
}

p {
  margin: 0 0 1rem;
}

/* Accent serif pour mots mis en valeur */
.accent {
  font-family: var(--font-accent);
  font-weight: 700;
}

/* ============================================
   SECTIONS — BACKGROUNDS ALTERNÉS
   ============================================ */

section {
  padding: var(--space-section) var(--space);
}

.section-rouge {
  background: var(--color-rouge);
  color: var(--color-text-clair);
}

.section-bleu {
  background: var(--color-bleu);
  color: var(--color-text-clair);
}

.section-blanc {
  background: var(--color-blanc-casse);
  color: var(--color-text-sombre);
}

.section-noir {
  background: var(--color-noir);
  color: var(--color-text-clair);
}

/* ============================================
   CARDS
   ============================================ */

.card {
  background: var(--color-beige-clair);
  padding: var(--space);
  border-radius: 0;
}

/* ============================================
   NAVIGATION & LIENS
   ============================================ */

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

a:hover {
  text-decoration: underline;
}

/* ============================================
   ICONES COMPETENCES
   ============================================ */

.competence-icon,
.competence-card svg {
  width: 48px !important;
  height: 48px !important;
  display: block;
  margin: 0 auto;
}

.competence-card {
  text-align: center;
}

.competence-card svg {
  color: var(--color-primary);
  /* Ne pas forcer fill, préserver le style original du SVG */
  stroke: currentColor;
}

/* ============================================
   EMBEDS (iframes YouTube, Vimeo, etc.)
   ============================================ */

/* Tous les iframes dans le contenu éditorial */
.embed-iframe,
.ql-video {
  display: block;
  max-width: 100%;
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  border: 0;
  margin: 1.5rem auto;
}

/* Wrapper responsive généré par les templates d'articles */
.embed-responsive {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin: 1.5rem 0;
}

.embed-responsive iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Sécurité globale : aucun iframe ne déborde du layout */
iframe {
  max-width: 100%;
}
