/* ============================================================
   global.css — reset minimal + base + utilitaires
   ============================================================ */

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-corps);
  font-size: var(--fs-base);
  line-height: 1.7;
  color: var(--texte);
  background-color: var(--creme-light);
  /* Texture papier creme tres legere (motif radial) */
  background-image:
    radial-gradient(ellipse at top left, rgba(200, 151, 58, 0.04), transparent 60%),
    radial-gradient(ellipse at bottom right, rgba(107, 26, 40, 0.03), transparent 60%);
  background-attachment: fixed;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 {
  font-family: var(--font-titre);
  font-weight: 700;
  line-height: 1.15;
  color: var(--bordeaux-deep);
  letter-spacing: -0.01em;
}

p {
  margin-bottom: var(--space-4);
}

a {
  color: var(--bordeaux);
  text-decoration: none;
  transition: color var(--t-fast);
}

a:hover {
  color: var(--or-deep);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

/* ------------------------------------------------------------
   Conteneur central
   ------------------------------------------------------------ */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-5);
}

/* ------------------------------------------------------------
   Ancres : compense la nav sticky lors du scroll-to
   ------------------------------------------------------------ */
.section-titre[id] {
  scroll-margin-top: calc(var(--nav-height) + var(--space-5));
}

/* ------------------------------------------------------------
   Titre de section avec ornement (filets + rosace au centre)
   ------------------------------------------------------------ */
.section-titre {
  text-align: center;
  margin-bottom: var(--space-10);
}

.section-titre .eyebrow {
  display: inline-block;
  font-family: var(--font-corps);
  font-style: italic;
  font-size: var(--fs-sm);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--or-deep);
  margin-bottom: var(--space-3);
}

.section-titre h2 {
  font-size: var(--fs-2xl);
  position: relative;
  display: inline-block;
  padding: 0 var(--space-6);
}

.section-titre h2::before,
.section-titre h2::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 60px;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--or), transparent);
}

.section-titre h2::before { right: 100%; }
.section-titre h2::after  { left: 100%; }

@media (max-width: 640px) {
  .section-titre h2::before,
  .section-titre h2::after { display: none; }
}

/* ------------------------------------------------------------
   Boutons (CTA principal + secondaire)
   ------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-corps);
  font-size: var(--fs-base);
  font-weight: 600;
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-sm);
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: transform var(--t-fast), background-color var(--t-fast),
              box-shadow var(--t-fast), color var(--t-fast);
  border: 1px solid transparent;
}

.btn-primary {
  background-color: var(--bordeaux);
  color: var(--creme-light);
}

.btn-primary:hover {
  background-color: var(--bordeaux-deep);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  color: var(--creme-light);
}

.btn-or {
  background-color: var(--or);
  color: var(--bordeaux-deep);
}

.btn-or:hover {
  background-color: var(--or-deep);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  color: var(--creme-light);
}

.btn-outline {
  background-color: transparent;
  border-color: var(--bordeaux);
  color: var(--bordeaux);
}

.btn-outline:hover {
  background-color: var(--bordeaux);
  color: var(--creme-light);
}

/* ------------------------------------------------------------
   Scroll-reveal — element invisible par defaut, anime via JS
   ------------------------------------------------------------ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--t-slow), transform var(--t-slow);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ------------------------------------------------------------
   Flash messages (success / error)
   ------------------------------------------------------------ */
.flash {
  padding: var(--space-4) var(--space-5);
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-5);
  font-weight: 500;
}

.flash-success {
  background-color: rgba(74, 107, 63, 0.12);
  color: var(--vert-succes);
  border-left: 4px solid var(--vert-succes);
}

.flash-error {
  background-color: rgba(192, 57, 43, 0.10);
  color: var(--rouge-erreur);
  border-left: 4px solid var(--rouge-erreur);
}

/* ------------------------------------------------------------
   Ornement decoratif rosace (utilise dans plusieurs sections)
   ------------------------------------------------------------ */
.ornement {
  display: block;
  margin: var(--space-6) auto;
  width: 80px;
  height: 16px;
  position: relative;
}

.ornement::before {
  content: '✦';
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  color: var(--or);
  font-size: 14px;
}

.ornement::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--or), transparent);
}

/* ------------------------------------------------------------
   Utilitaires
   ------------------------------------------------------------ */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.text-center { text-align: center; }
.italic { font-style: italic; }
