/* Cercle Veuillot – charte « Veuillot Chaleur » mobile-first */
:root {
  --cream: #F7F1E9;
  --cream-dark: #EDE4D8;
  --orange: #C17A3F;
  --orange-dark: #a86632;
  --blue: #2A4A6F;
  --blue-soft: #3d5f88;
  --text: #1F1C1A;
  --muted: #5C534A;
  --border: #E5DCD0;
  --white: #FFFcf8;
  --success: #1b5e20;
  --warn: #e65100;
  --danger: #8b3a3a;
  --radius: 10px;
  --shadow: 0 2px 12px rgba(42, 74, 111, 0.07);
  --font-serif: "Source Serif 4", "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --max: 1100px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-serif);
  background: var(--cream);
  background-image:
    radial-gradient(ellipse at top, rgba(193,122,63,0.06), transparent 55%),
    linear-gradient(180deg, #F9F4ED 0%, var(--cream) 40%, #F3EBE0 100%);
  color: var(--text);
  line-height: 1.55;
  min-height: 100vh;
}
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--orange); }

/* Enluminure discrète – filet or */
.cv-ornament {
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--orange), var(--blue), var(--orange), transparent);
  opacity: 0.85;
  border: none;
  margin: 0;
}

.cv-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: var(--shadow);
}
.cv-header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.cv-brand {
  font-weight: 700;
  color: var(--blue);
  font-size: 1.15rem;
  letter-spacing: 0.02em;
}
.cv-brand span { color: var(--orange); }
.cv-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.75rem;
  align-items: center;
  font-size: 0.92rem;
}
.cv-nav a, .cv-nav button.linkish {
  color: var(--blue);
  background: none;
  border: none;
  font-family: inherit;
  font-size: inherit;
  cursor: pointer;
  padding: 0.35rem 0.25rem;
}
.cv-nav a:hover, .cv-nav button.linkish:hover { color: var(--orange); }

/* Burger mobile */
.cv-nav-toggle {
  display: none;
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.4rem 0.65rem;
  font-family: inherit;
  color: var(--blue);
  cursor: pointer;
}
@media (max-width: 640px) {
  .cv-nav-toggle { display: inline-block; }
  .cv-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    padding: 0.5rem 0 0.25rem;
    border-top: 1px solid var(--border);
  }
  .cv-nav.open { display: flex; }
  .cv-nav a, .cv-nav button.linkish {
    width: 100%;
    padding: 0.55rem 0.25rem;
    border-bottom: 1px solid var(--border);
  }
}

.cv-main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.25rem 1rem 3rem;
}
@media (min-width: 768px) {
  .cv-main { padding: 1.75rem 1.5rem 3.5rem; }
}

h1, h2, h3 { color: var(--blue); font-weight: 700; line-height: 1.25; }
h1 { font-size: 1.45rem; margin: 0 0 0.35rem; }
@media (min-width: 768px) { h1 { font-size: 1.75rem; } }
.cv-subtitle { color: var(--muted); margin: 0 0 1.25rem; font-size: 0.95rem; }

.cv-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  margin-bottom: 1rem;
  box-shadow: var(--shadow);
  position: relative;
}
.cv-card::before {
  content: "";
  position: absolute;
  top: 0; left: 12px; right: 12px;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(193,122,63,0.45), transparent);
  border-radius: 2px;
}

.cv-btn {
  display: inline-block;
  background: var(--orange);
  color: #fff !important;
  border: none;
  padding: 0.55rem 1.1rem;
  border-radius: 6px;
  font-family: inherit;
  font-size: 0.95rem;
  cursor: pointer;
  text-align: center;
  line-height: 1.3;
}
.cv-btn:hover { background: var(--orange-dark); }
.cv-btn-blue { background: var(--blue); }
.cv-btn-blue:hover { background: var(--blue-soft); }
.cv-btn-danger { background: var(--danger); }
.cv-btn-ghost {
  background: transparent;
  color: var(--blue) !important;
  border: 1px solid var(--border);
}
.cv-btn-block { display: block; width: 100%; }
@media (max-width: 640px) {
  .cv-btn { min-height: 44px; padding: 0.65rem 1rem; }
}

.cv-badge {
  display: inline-block;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  font-size: 0.72rem;
  background: var(--cream-dark);
  color: var(--muted);
}
.cv-badge-published { background: #e8f5e9; color: var(--success); }
.cv-badge-processing { background: #fff3e0; color: var(--warn); }
.cv-badge-to_validate { background: #e3ecf5; color: var(--blue); }
.cv-badge-draft { background: #f0ebe4; color: var(--muted); }
.cv-badge-audience { background: #f5e6d8; color: var(--orange); }
.cv-badge-national { background: #e3ecf5; color: var(--blue); }

.cv-alert {
  padding: 0.75rem 1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}
.cv-alert-ok { background: #e8f5e9; color: var(--success); }
.cv-alert-err { background: #fce8e6; color: var(--danger); }
.cv-alert-info { background: #e3ecf5; color: var(--blue); }

.cv-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 600px) {
  .cv-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .cv-grid { grid-template-columns: repeat(3, 1fr); }
}

.cv-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.cv-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.cv-table th, .cv-table td {
  text-align: left;
  padding: 0.55rem 0.4rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.cv-table th { color: var(--muted); font-weight: 600; font-size: 0.78rem; }
@media (max-width: 700px) {
  .cv-table thead { display: none; }
  .cv-table tr {
    display: block;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 0.75rem;
    padding: 0.65rem 0.75rem;
  }
  .cv-table td {
    display: block;
    border: none;
    padding: 0.25rem 0;
  }
  .cv-table td::before {
    content: attr(data-label);
    display: block;
    font-size: 0.72rem;
    color: var(--muted);
  }
}

input, select, textarea {
  font-family: inherit;
  font-size: 1rem;
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--white);
  color: var(--text);
  width: 100%;
  max-width: 100%;
}
textarea { min-height: 100px; }
label { display: block; margin-bottom: 0.25rem; color: var(--muted); font-size: 0.88rem; }
.cv-field { margin-bottom: 0.9rem; }

audio { width: 100%; max-width: 100%; }

.cv-footer {
  text-align: center;
  padding: 1.5rem 1rem;
  color: var(--muted);
  font-size: 0.8rem;
  border-top: 1px solid var(--border);
  margin-top: 1rem;
}

/* Timeline découpage – mobile */
.timeline-track { min-height: 48px; }
.handle { width: 18px !important; margin-left: -9px !important; }
@media (max-width: 640px) {
  .handle { width: 22px !important; margin-left: -11px !important; }
  .trim-toolbar { flex-direction: column; align-items: stretch !important; }
  .trim-toolbar .cv-btn, .trim-toolbar .btn { width: 100%; }
}
