/* Minerva Studio
   Mise en page : un cadre aux couleurs du logo (nuit, crème, braise) ;
   chaque création s'affiche dans une carte ou un bandeau à ses propres couleurs. */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("fonts/bricolage-grotesque-latin.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Newsreader";
  src: url("../creations/cheveche/assets/fonts/Newsreader-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  --nuit: #12151C;
  --creme: #F5F2EA;
  --braise: #FF5630;

  --page: #F5F2EA;
  --encre: #12151C;
  --encre-douce: #4B5060;
  --trait: #D8D2C4;
  --accent-texte: #B8330F;

  --bande: #12151C;
  --bande-encre: #F5F2EA;
  --bande-douce: #B9BDC8;
  --bande-trait: #2B303C;

  --police: "Bricolage Grotesque", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --police-cheveche: "Newsreader", Georgia, "Times New Roman", serif;
  --rayon: 22px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --page: #12151C;
    --encre: #F5F2EA;
    --encre-douce: #B9BDC8;
    --trait: #2B303C;
    --accent-texte: #FF8163;
    --bande: #0A0C11;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --page: #12151C;
  --encre: #F5F2EA;
  --encre-douce: #B9BDC8;
  --trait: #2B303C;
  --accent-texte: #FF8163;
  --bande: #0A0C11;
  color-scheme: dark;
}

/* ---------- Socle ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--page);
  color: var(--encre);
  font-family: var(--police);
  font-size: 1.0625rem;
  line-height: 1.55;
}
img { max-width: 100%; height: auto; display: block; }
p, figure { margin: 0; }
h1, h2, h3 {
  margin: 0;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.02;
  text-wrap: balance;
}
h1 { font-size: clamp(2.5rem, 6.4vw, 4.75rem); line-height: 0.96; }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.25rem; letter-spacing: -0.015em; line-height: 1.2; }
a { color: inherit; text-decoration-thickness: 0.08em; text-underline-offset: 0.18em; }
a:hover { color: var(--accent-texte); }
:focus-visible { outline: 3px solid var(--braise); outline-offset: 3px; border-radius: 4px; }

.enveloppe {
  width: min(1120px, 100%);
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 40px);
}
.evitement {
  position: absolute; left: -999px; top: 12px;
  background: var(--braise); color: #12151C; font-weight: 700;
  padding: 10px 16px; border-radius: 999px; text-decoration: none; z-index: 10;
}
.evitement:focus { left: 12px; }

/* ---------- En-tête ---------- */
.entete { border-bottom: 1.5px solid var(--encre); }
.entete__rang {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 10px 20px; padding-block: 14px;
}
.marque { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.marque:hover { color: inherit; }
.marque__signe { width: 46px; height: 46px; flex: none; display: block; }
.marque__mots { display: flex; flex-direction: column; gap: 4px; line-height: 1; }
.marque__nom { font-weight: 800; font-size: 1.5rem; letter-spacing: -0.03em; }
.marque__studio {
  font-weight: 600; font-size: 0.62rem; letter-spacing: 0.5em;
  text-transform: uppercase; color: var(--accent-texte);
}
.menu { display: flex; flex-wrap: wrap; align-items: center; gap: 4px clamp(14px, 3vw, 28px); font-weight: 600; }
.menu a { text-decoration: none; padding-block: 6px; border-bottom: 2px solid transparent; }
.menu a:hover, .menu a[aria-current="page"] { color: inherit; border-bottom-color: var(--braise); }
.menu a.langue { padding: 5px 12px; line-height: 1.2; border: 1.5px solid var(--encre); border-radius: 999px; font-size: 0.9rem; }
.menu a.langue:hover { border-color: var(--braise); }

/* ---------- Bande d'ouverture ---------- */
.bande { background: var(--bande); color: var(--bande-encre); overflow: hidden; }
.bande__rang {
  display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr);
  align-items: center; gap: clamp(24px, 5vw, 64px);
  padding-block: clamp(48px, 8vw, 96px);
}
.bande__texte { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; }
.bande .chapeau { color: var(--bande-douce); max-width: 34em; }
.bande__chouette { display: block; width: min(100%, 250px); height: auto; }
/* Le logo principal : la chouette, « Wild Minerva » sur deux lignes, « Studio » dessous. */
.logo-principal { display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; }
.logo-principal__nom { font-weight: 800; font-size: clamp(3.2rem, 6.4vw, 5rem); line-height: 0.92; letter-spacing: -0.03em; margin-top: 12px; }
.logo-principal__studio { font-weight: 600; font-size: 1rem; letter-spacing: 0.5em; padding-left: 0.5em; text-transform: uppercase; color: var(--braise); }
.page-404 { background: var(--bande); }

.sur-titre {
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.3em;
  text-transform: uppercase; color: var(--encre-douce);
}
.sur-titre--braise { color: var(--braise); }
.chapeau { font-size: 1.2rem; line-height: 1.45; }
.chapeau--page { max-width: 36em; }

.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.bouton {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 10px 22px; border-radius: 999px;
  border: 2px solid var(--braise); background: var(--braise); color: #12151C;
  font-weight: 700; text-decoration: none; transition: transform 0.15s ease;
}
.bouton:hover { color: #12151C; transform: translateY(-2px); }
.bouton--contour { background: transparent; border-color: currentColor; color: var(--bande-encre); }
.bouton--contour:hover { color: var(--bande-encre); }
.bouton--encre { background: var(--encre); border-color: var(--encre); color: var(--page); }
.bouton--encre:hover { color: var(--page); }

/* ---------- Sections ---------- */
.section { padding-block: clamp(48px, 7vw, 88px); }
.section--tete { padding-top: clamp(40px, 6vw, 72px); }
.section--filet { border-top: 1.5px solid var(--trait); }
.section--tete .enveloppe { display: flex; flex-direction: column; gap: 24px; }
#creations .enveloppe { display: flex; flex-direction: column; gap: 32px; }

.deux-colonnes {
  display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(24px, 5vw, 64px); align-items: start;
}
.prose { display: flex; flex-direction: column; gap: 16px; max-width: 65ch; }
.prose h2 { font-size: 1.5rem; letter-spacing: -0.02em; margin-top: 20px; }
.prose ul { margin: 0; padding-left: 1.2em; display: flex; flex-direction: column; gap: 8px; }
.signature { font-weight: 800; font-size: 1.35rem; letter-spacing: -0.02em; }
.prose h2.accroche { font-size: clamp(1.6rem, 3.4vw, 2.2rem); margin-top: 0; }
.lien-fleche { font-weight: 700; text-decoration: none; border-bottom: 2px solid var(--braise); padding-bottom: 2px; }

.page-texte h1 { font-size: clamp(2.3rem, 5.5vw, 3.8rem); }
.prose ul.principes { list-style: none; padding: 0; gap: 14px; }
.principes li { border-left: 3px solid var(--braise); padding-left: 16px; }
.courriel { font-size: 1.35rem; font-weight: 700; overflow-wrap: anywhere; }
.date { color: var(--encre-douce); font-size: 0.95rem; }

/* ---------- Cartes ---------- */
.carte { border: 2px solid var(--encre); border-radius: var(--rayon); }
.cartes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; align-items: stretch; }
.carte--vedette {
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--c-fond); color: var(--c-encre); border-color: var(--c-encre);
}
.carte__image {
  height: 220px; background: var(--c-ombre);
  display: flex; align-items: flex-end; justify-content: center; padding: 20px 20px 0;
}
.carte__image img { height: 100%; width: auto; object-fit: contain; }
.carte__texte { flex: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; padding: 24px; }
.carte__nom { font-size: clamp(1.9rem, 3vw, 2.4rem); }
.carte__phrase { font-size: 1.05rem; }
.carte__contenu {
  list-style: none; margin: 0; padding: 0; width: 100%;
  display: flex; flex-direction: column; gap: 9px; font-size: 0.96rem; line-height: 1.4;
}
.carte__contenu li { padding-left: 14px; border-left: 3px solid var(--c-terre); }
/* État et boutons calés en bas, pour que les trois cartes s'alignent. */
.carte__pied { margin-top: auto; padding-top: 8px; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.carte__pied .bouton { min-height: 44px; padding: 8px 18px; font-size: 0.98rem; }
.etat {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border: 1.5px solid currentColor; border-radius: 999px;
  font-weight: 600; font-size: 0.92rem;
}
.etat__point { width: 9px; height: 9px; border-radius: 50%; background: var(--c-terre, var(--braise)); }

/* ---------- Captures d'écran ---------- */

/* ---------- Pied ---------- */
.pied { background: var(--bande); color: var(--bande-encre); padding-block: 44px 28px; }
.pied__rang { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 28px; }
.pied__marque { display: flex; align-items: center; gap: 14px; }
.pied__signe { width: 54px; height: 54px; flex: none; display: block; }
.pied__marque p { color: var(--bande-douce); }
.pied__marque strong { color: var(--bande-encre); font-weight: 800; font-size: 1.15rem; letter-spacing: -0.02em; }
.pied__liens { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 24px; font-weight: 600; }
.pied__liens a { text-decoration: none; }
.pied__liens a:hover { color: var(--braise); }
.pied__bas p {
  margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--bande-trait);
  color: var(--bande-douce); font-size: 0.9rem;
}

/* ---------- Univers des créations (cartes) ---------- */
@font-face { font-family: "Fredoka"; src: url("../creations/renard/fonts/fredoka-latin.woff2") format("woff2"); font-weight: 300 700; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("../creations/drum-master/fonts/montserrat-800.woff2") format("woff2"); font-weight: 800; font-display: swap; }
.univers-cheveche {
  --c-fond: #FFFDF7; --c-ombre: #EDE6D6; --c-trait: #D9D1BE; --c-encre: #292D2A; --c-sauge: #55665C; --c-terre: #9A5236;
  --c-nom: #292D2A; --c-police: var(--police-cheveche); --c-graisse: 500; --c-interlettre: -0.01em;
  --c-bouton: #292D2A; --c-bouton-texte: #F1EDE3;
}
.univers-renard {
  --c-fond: #FFFDF7; --c-ombre: #DDF3E4; --c-trait: #E8D6B8; --c-encre: #3A2216; --c-sauge: #6B5544; --c-terre: #F08A24;
  --c-nom: #A84E08; --c-police: "Fredoka", "Arial Rounded MT Bold", sans-serif; --c-graisse: 600; --c-interlettre: 0;
  --c-bouton: #3A2216; --c-bouton-texte: #FFFDF7;
}
.univers-drum {
  --c-fond: #FFFDF7; --c-ombre: #DDEAF3; --c-trait: #C9DAE6; --c-encre: #06243B; --c-sauge: #3E6480; --c-terre: #FE9805;
  --c-nom: #06243B; --c-police: "Montserrat", "Segoe UI", system-ui, sans-serif; --c-graisse: 800; --c-interlettre: -0.02em;
  --c-bouton: #FE9805; --c-bouton-texte: #031F37;
}
.carte--vedette .carte__nom {
  font-family: var(--c-police); font-weight: var(--c-graisse); letter-spacing: var(--c-interlettre);
  line-height: 1.08; color: var(--c-nom);
}
.carte--vedette .sur-titre { color: var(--c-sauge); }
.carte--vedette a:hover { color: inherit; }
.bouton--univers { background: var(--c-bouton); border-color: var(--c-bouton); color: var(--c-bouton-texte); }
.carte--vedette .bouton--univers:hover { color: var(--c-bouton-texte); }
.bouton--contour-univers { background: transparent; border-color: var(--c-encre); color: var(--c-encre); }
.carte--vedette .bouton--contour-univers:hover { color: var(--c-encre); }
.carte__image--pleine { padding: 0; align-items: stretch; }
.carte__image--pleine img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.carte__image--logo { align-items: center; padding: 22px; }
.carte__image--logo img { height: 100%; width: auto; max-width: 100%; box-sizing: border-box; padding: 14px; background: #06243B; border-radius: 26px; object-fit: contain; }

/* ---------- Petits écrans ---------- */
@media (max-width: 820px) {
  .deux-colonnes { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .bande__rang { grid-template-columns: minmax(0, 1fr); }
  .bande__signe { order: -1; }
  .bande__chouette { width: 150px; }
  .logo-principal { gap: 10px; }
}
@media (max-width: 960px) {
  .cartes { grid-template-columns: minmax(0, 1fr); }
  .carte__image { height: 200px; }
}
@media (prefers-reduced-motion: reduce) {
  .bouton { transition: none; }
  .bouton:hover { transform: none; }
}
