/* style.css */
:root{
  /* Palette sobre (papier / encre / sauge) */
  --bg: #f6f3ee;           /* papier */
  --panel: #ffffffcc;      /* cartes translucides */
  --ink: #1f2328;          /* texte principal */
  --muted: #5b6472;        /* texte secondaire */
  --line: rgba(31,35,40,.10);
  --shadow: 0 18px 40px rgba(31,35,40,.10);
  --radius: 18px;

  --accent: #6f7f73;       /* sauge grisée */
  --accent2:#7a6f62;       /* brun doux */
  --soft: rgba(111,127,115,.10);
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  color: var(--ink);
  background:
    radial-gradient(1200px 700px at 15% 0%, rgba(111,127,115,.14), transparent 55%),
    radial-gradient(900px 600px at 85% 12%, rgba(122,111,98,.10), transparent 60%),
    linear-gradient(180deg, #fbfaf8, var(--bg));
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, "Apple Color Emoji","Segoe UI Emoji";
}

a{ color: inherit; text-decoration: none; }
.container{
  max-width: 1080px;
  margin: 0 auto;
  padding: 26px;
}

/* Header */
.header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 14px;
  padding: 14px 16px;
  border-radius: var(--radius);
  background: rgba(255,255,255,.70);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 16px;
  z-index: 10;
}

.brand{
  display:flex;
  align-items:center;
  gap: 12px;
  min-width: 220px;
}
.mark{
  width: 40px;
  height: 40px;
  border-radius: 14px;
  background:
    radial-gradient(circle at 30% 30%, rgba(255,255,255,.85), transparent 45%),
    linear-gradient(135deg, rgba(111,127,115,.75), rgba(122,111,98,.65));
  box-shadow: 0 12px 28px rgba(111,127,115,.18);
}
.brand .title{
  display:flex;
  flex-direction:column;
  line-height:1.1;
}
.brand .title strong{
  font-weight: 850;
  letter-spacing: .2px;
}
.brand .title span{
  font-size: 12.5px;
  color: var(--muted);
}

/* Nav */
.nav{
  display:flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content:flex-end;
}
.nav a{
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(31,35,40,.03);
  color: var(--muted);
  font-weight: 700;
  transition: transform .12s ease, background .12s ease, border-color .12s ease, color .12s ease;
}
.nav a:hover{
  transform: translateY(-1px);
  background: rgba(111,127,115,.10);
  border-color: rgba(111,127,115,.30);
  color: var(--ink);
}
.nav a.active{
  background: linear-gradient(135deg, rgba(111,127,115,.16), rgba(122,111,98,.12));
  border-color: rgba(111,127,115,.35);
  color: var(--ink);
}

/* Typography (touche éditoriale) */
h1,h2,h3{
  font-family: ui-serif, Georgia, "Times New Roman", Times, serif;
  letter-spacing: .2px;
}
.hero{
  margin-top: 18px;
  padding: 26px 22px;
  border-radius: calc(var(--radius) + 6px);
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(255,255,255,.85), rgba(255,255,255,.55));
  box-shadow: var(--shadow);
}

.hero-grid{
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 18px;
  align-items: center;
}

.hero h1{
  margin: 0 0 8px 0;
  font-size: clamp(30px, 4vw, 46px);
}
.hero p{
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
  max-width: 70ch;
}

.hero-cta{
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}
.button{
  display:inline-flex;
  align-items:center;
  gap: 10px;
  padding: 11px 14px;
  border-radius: 14px;
  border: 1px solid rgba(111,127,115,.30);
  background: linear-gradient(135deg, rgba(111,127,115,.16), rgba(122,111,98,.10));
  font-weight: 850;
  color: var(--ink);
  box-shadow: 0 14px 30px rgba(31,35,40,.08);
}
.button:hover{ filter: brightness(1.02); }
.ghost{
  background: rgba(31,35,40,.03);
  border-color: var(--line);
  color: var(--muted);
}
.ghost:hover{
  background: rgba(111,127,115,.10);
  border-color: rgba(111,127,115,.26);
  color: var(--ink);
}

.hero-media{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.media-card{
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.66);
  box-shadow: 0 16px 36px rgba(31,35,40,.08);
  padding: 14px;
  position: relative;
  overflow:hidden;
}
.media-card:before{
  content:"";
  position:absolute;
  inset:-60px -80px auto auto;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(111,127,115,.16), transparent 60%);
  transform: rotate(14deg);
}
.media-card img{
  width: 100%;
  height: 150px;
  object-fit: contain;
  display:block;
  filter: saturate(.55) contrast(1.02);
}
.media-card small{
  display:block;
  margin-top: 10px;
  color: var(--muted);
}

/* Content grid */
.grid{
  display:grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 14px;
  margin-top: 14px;
}

.card{
  grid-column: span 6;
  padding: 18px 18px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(255,255,255,.72);
  box-shadow: 0 16px 36px rgba(31,35,40,.07);
}
.card h2{
  margin: 0 0 8px 0;
  font-size: 18px;
}
.card p{
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}
.card ul{
  margin: 10px 0 0 18px;
  color: var(--muted);
}
.card li{ margin: 6px 0; }

.badge{
  display:inline-flex;
  align-items:center;
  gap: 8px;
  font-size: 12px;
  font-weight: 800;
  color: rgba(31,35,40,.75);
  border: 1px solid rgba(111,127,115,.22);
  background: rgba(111,127,115,.10);
  padding: 7px 10px;
  border-radius: 999px;
}

@media (max-width: 920px){
  .header{ position: static; }
  .hero-grid{ grid-template-columns: 1fr; }
  .card{ grid-column: span 12; }
}

/* Form */
.form{
  display:grid;
  gap: 12px;
  margin-top: 10px;
}
.field{ display:grid; gap: 6px; }
label{
  font-size: 14px;
  font-weight: 800;
  color: rgba(31,35,40,.92);
}
input, textarea{
  width:100%;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid rgba(31,35,40,.12);
  background: rgba(255,255,255,.85);
  color: var(--ink);
  outline:none;
}
textarea{ min-height: 140px; resize: vertical; }
input:focus, textarea:focus{
  border-color: rgba(111,127,115,.45);
  box-shadow: 0 0 0 4px rgba(111,127,115,.14);
}

.actions{
  display:flex;
  flex-wrap:wrap;
  gap: 10px;
  align-items:center;
}
button{
  border:0;
  padding: 11px 14px;
  border-radius: 14px;
  font-weight: 900;
  cursor:pointer;
  color: var(--ink);
  background: linear-gradient(135deg, rgba(111,127,115,.26), rgba(122,111,98,.14));
  border: 1px solid rgba(111,127,115,.35);
  box-shadow: 0 16px 36px rgba(31,35,40,.08);
}
button:hover{ filter: brightness(1.02); }
.small{ font-size: 13px; color: var(--muted); }
.error{ color: #b54b4b; font-size: 13px; margin-top: 4px; }
.success{ color: #3b7a63; font-size: 13px; margin-top: 4px; }

.footer{
  margin: 18px 0 10px;
  color: rgba(31,35,40,.55);
  font-size: 13px;
  text-align:center;
}
