:root{
  /* “Métaux / marbre” */
  --bg0: #0b0f14;        /* presque noir bleuté */
  --bg1: #111824;        /* acier sombre */
  --bg2: #1a2433;        /* acier/métal */
  --marble: #151a20;     /* marbre sombre */

  /* Texte “noble” + liens */
  --text: #eef2f7;       /* très clair */
  --muted: #c6d0dd;      /* gris clair lisible */
  --accent: #d6b25e;     /* or doux */
  --accent2: #8fd3c8;    /* vert d’eau noble */

  



  --line: rgba(255,255,255,.14);

  --radius: 18px;
  --shadow: 0 10px 30px rgba(0,0,0,.35);

  /* Accessibilité */
  --focus: 3px solid #ffffff;
}

html.light-theme {
  --bg0: #faf8f5;
  --bg1: #f3efe9;
  --bg2: #ebe7e1;
  --marble: #f7f4f0;
  --text: #2a2420;
  --muted: #7a7069;
  --accent: #c9915e;
  --accent2: #5b9b94;
  --line: rgba(0, 0, 0, 0.12);
  --shadow: 0 10px 30px rgba(175, 175, 175, 0.08);
  --focus: 3px solid #4a4a4a;
  --header_gradient: linear-gradient(180deg, rgba(214, 224, 236, 0.62),  rgba(214, 209, 205, 0.86));
  --card_gradient_bg: linear-gradient(135deg, rgba(214, 224, 236, 0.62),  rgba(214, 209, 205, 0.86));
  --menu_bg: linear-gradient(180deg, rgba(214, 224, 236, 0.62),  rgba(214, 209, 205, 0.86));
}

html.dark-theme {
  --bg0: #0b0f14;
  --bg1: #111824;
  --bg2: #1a2433;
  --marble: #151a20;
  --text: #eef2f7;
  --muted: #c6d0dd;
  --accent: #d6b25e;
  --accent2: #8fd3c8;
  --line: rgba(255,255,255,.14);
  --shadow: 0 10px 30px rgba(0,0,0,.35);
  --focus: 3px solid #ffffff;
  --header_gradient: linear-gradient(180deg, rgba(11,15,20,.86), rgba(11,15,20,.62));
  --card_gradient_bg: linear-gradient(135deg, rgba(11,15,20,.86), rgba(11,15,20,.62));
  --menu_bg: linear-gradient(180deg, rgba(11,15,20,.86), rgba(11,15,20,.62));
}

*{ box-sizing: border-box; }
body{
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Arial, "Noto Sans", sans-serif;
  line-height: 1.55;
  color: var(--text);

  background:
    radial-gradient(1200px 700px at 15% 10%, rgba(214,178,94,.10), transparent 60%),
    radial-gradient(900px 600px at 80% 20%, rgba(143,211,200,.10), transparent 55%),
    linear-gradient(135deg, var(--bg0), var(--bg1) 40%, var(--marble));
}

a{ color: var(--accent2); }
a:hover{ text-decoration: none; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible{
  outline: var(--focus);
  outline-offset: 3px;
  border-radius: 8px;
}
::file-selector-button{
  border: none;
  background: var(--bg2);
  color: var(--text);
  padding: 0.2rem .5rem;
  border-radius: 6px;
}

.container{
  width: min(1100px, calc(100% - 2rem));
  margin: 0 auto;
}

.skip-link{
  position: absolute;
  left: -9999px;
  top: 0;
  padding: .6rem .8rem;
  background: #ffffff;
  color: #000;
  border-radius: 10px;
  z-index: 999;
}
.skip-link:focus{ left: 1rem; top: 1rem; }

.site-header{
  position: sticky;
  top: 0;
  backdrop-filter: blur(10px);
  background: var(--header_gradient);
  border-bottom: 1px solid var(--line);
  z-index: 20;
}
.header-row{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .85rem 0;
  gap: 1rem;
}
.brand{
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  text-decoration: none;
  color: var(--text);
}
.brand__logo{ filter: drop-shadow(0 6px 10px rgba(0,0,0,.35)); }
.brand__name{ font-weight: 650; letter-spacing: .2px; font-size: 2rem; }

.nav__list{
  list-style: none;
  display: flex;
  gap: .6rem;
  margin: 0;
  padding: 0;
  align-items: center;
}
.nav__link, .lang-toggle{
  border: 1px solid var(--line);
  background: rgba(230, 221, 221, 0.03);
  color: var(--text);
  padding: .55rem .75rem;
  border-radius: 999px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
}
.nav__link:hover, .lang-toggle:hover{ background: rgba(255,255,255,.06); }

.theme-toggle{
  border: 0;
  background: transparent;
  color: var(--text);
  width: 1.9rem;
  height: 1.9rem;
  padding: 0;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform .15s ease, color .2s, background .2s;
}
.theme-toggle:hover{
  transform: scale(1.1);
}
.theme-toggle[aria-pressed="true"]{
  color: var(--accent);
}

.theme-toggle .icon{
  display: inline-block;
  line-height: 1;
  font-size: 1.2rem;
}

.pill{
  font-size: .85rem;
  padding: .15rem .5rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--accent);
}

.nav__item{ position: relative; }
.lang-menu{
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + .5rem);
  min-width: 180px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--menu_bg);
  box-shadow: var(--shadow);
  padding: .35rem;
}
.lang-menu.is-open{ display: block; }
.lang-option{
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  color: var(--text);
  padding: .6rem .7rem;
  border-radius: 10px;
  cursor: pointer;
}
.lang-option:hover{ background: rgba(255,255,255,.07); }

.hero{
  padding: 2.2rem 0 1.2rem;
}
.hero h1{
  margin: 0 0 .4rem;
  font-size: clamp(1.6rem, 2.8vw, 2.4rem);
  letter-spacing: .2px;
}
.lead{
  margin: 0;
  max-width: 70ch;
  color: var(--muted);
}

.card{
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 1rem;
  padding: 1rem;
  margin: 1rem 0;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(-card_gradient_bg);
  box-shadow: var(--shadow);
}
.card__media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  min-height: 180px;
}
.card__media img{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: calc(var(--radius) - 8px);
  border: 1px solid rgba(255,255,255,.10);
  opacity: 0;
  transition: opacity .7s ease;
  z-index: 0;
}
.card__media img.is-active{
  opacity: 1;
  z-index: 1;
}
.card__content h2{
  margin-top: .2rem;
  margin-bottom: .4rem;
}
.card__content p{ color: var(--muted); margin-top: 0; }

.actions{ margin-top: .9rem; }

.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .65rem .9rem;
  border-radius: 999px;
  border: 1px solid rgba(214,178,94,.35);
  background: rgba(214,178,94,.12);
  color: var(--text);
  text-decoration: none;
  cursor: pointer;
}
.btn:hover{ background: rgba(214,178,94,.18); }

.form{
  margin: 1rem 0 2rem;
  padding: 1rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(255,255,255,.03);
}
.field{ margin-bottom: .9rem; }
label{ display: inline-block; margin-bottom: .35rem; }
small{ font-size: .85rem; }
input, textarea{
  width: 100%;
  padding: .65rem .7rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(0,0,0,.25);
  color: var(--text);
}
.notice{
  padding: .8rem 1rem;
  border-radius: 14px;
  border: 1px solid rgba(143,211,200,.35);
  background: rgba(143,211,200,.10);
  color: var(--text);
  margin: 1rem 0;
}

.site-footer{
  margin-top: 2rem;
  border-top: 1px solid var(--line);
  background: rgba(0,0,0,.18);
}
.footer-row{
  display: flex;
  flex-wrap: wrap;
  gap: .7rem 1rem;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}
.footer-link{ color: var(--muted); text-decoration: none; }
.footer-link:hover{ color: var(--text); text-decoration: underline; }
.sep{ color: rgba(255,255,255,.35); padding: 0 .35rem; }

main.container { flex: 1; }
.site-footer { margin-top: auto; }

.prose{ max-width: 75ch; color: var(--muted); }

.hp{
  position:absolute;
  left:-9999px;
  width:1px;height:1px;
  overflow:hidden;
}

/* Responsive */
@media (max-width: 860px){
  .card{ grid-template-columns: 1fr; }
}


@media (prefers-color-scheme: light) {
  :root {
    --bg0: #faf8f5;
    --bg1: #f3efe9;
    --bg2: #ebe7e1;
    --marble: #f7f4f0;
    --text: #2a2420;
    --muted: #7a7069;
    --accent: #c9915e;
    --accent2: #5b9b94;
    --line: rgba(0, 0, 0, 0.12);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    --focus: 3px solid #4a4a4a;
  }

  body {
    background:
      radial-gradient(1200px 700px at 15% 10%, rgba(201, 145, 94, 0.1), transparent 60%),
      radial-gradient(900px 600px at 80% 20%, rgba(91, 155, 148, 0.1), transparent 55%),
      linear-gradient(135deg, var(--bg0), var(--bg1) 40%, var(--marble));
  }

  .site-header {
    background: linear-gradient(180deg, rgba(250, 248, 245, 0.92), rgba(250, 248, 245, 0.88));
    border-bottom-color: rgba(0, 0, 0, 0.12);
  }

  input, textarea {
    background: var(--bg0);
    color: var(--text);
    border-color: rgba(0, 0, 0, 0.18);
  }

  .form {
    background: rgba(255, 255, 255, 0.5);
  }

  .site-footer {
    background: rgba(255, 255, 255, 0.35);
  }
}