/* =====================================================================
   COURONNE HÔTEL — jetons de la charte v1.1 (2026)
   Source de vérité des couleurs, polices et motifs du site.
   Aucun composant ne doit utiliser une couleur en dur : passer par --ch-*.
   ===================================================================== */

@font-face {
  font-family: "Cormorant Garamond";
  src: url("../fonts/cormorant-garamond-latin.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("../fonts/cormorant-garamond-italic-latin.woff2") format("woff2");
  font-weight: 300 700;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Jost";
  src: url("../fonts/jost-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Couleurs institutionnelles */
  --ch-bleu: #0B1F3A;        /* Bleu Couronne — 30 % des surfaces */
  --ch-nuit: #061224;        /* Bleu nuit — pied, héros */
  --ch-or: #C9972E;          /* Or Couronne — accent, 10 % max, jamais en texte courant sur ivoire */
  --ch-or-clair: #E6C168;    /* Or clair — texte sur bleu / bleu nuit */
  --ch-ivoire: #F6F1E7;      /* Ivoire — 60 % des surfaces */
  --ch-champagne: #CFC6B4;   /* Gris champagne — textes secondaires sur bleu, filets */
  --ch-blanc: #FFFFFF;

  /* Dérivés (contraste AA sur ivoire) */
  --ch-texte-doux: #5E6676;  /* texte secondaire sur fond clair */
  --ch-or-fonce: #8C6519;    /* surtitres et accents en texte sur ivoire */
  --ch-bleu-moyen: #122A4A;  /* fond d'attente des photos */
  --ch-erreur: #B3261E;      /* messages d'erreur sur fond clair */
  --ch-erreur-clair: #F2B8B5;/* messages d'erreur sur fond bleu */

  /* Transparences dérivées */
  --ch-or-a15: color-mix(in srgb, var(--ch-or) 15%, transparent);
  --ch-or-a35: color-mix(in srgb, var(--ch-or) 35%, transparent);
  --ch-or-a55: color-mix(in srgb, var(--ch-or) 55%, transparent);
  --ch-champagne-a15: color-mix(in srgb, var(--ch-champagne) 15%, transparent);
  --ch-champagne-a45: color-mix(in srgb, var(--ch-champagne) 45%, transparent);
  --ch-nuit-a55: color-mix(in srgb, var(--ch-nuit) 55%, transparent);
  --ch-nuit-a72: color-mix(in srgb, var(--ch-nuit) 72%, transparent);
  --ch-nuit-a92: color-mix(in srgb, var(--ch-nuit) 92%, transparent);

  --ch-filet-or: linear-gradient(90deg, transparent 0%, var(--ch-or) 50%, transparent 100%);

  /* Polices */
  --ch-serif: "Cormorant Garamond", "Cormorant", Garamond, "Times New Roman", serif;
  --ch-sans: "Jost", "Futura", "Century Gothic", "Helvetica Neue", Arial, sans-serif;

  /* Mise en page */
  --largeur-max: 1240px;
  --gouttiere: 32px;
  --section: clamp(80px, 10vw, 130px);
  --hauteur-entete: 84px;
  --hauteur-barre-mobile: 56px;
  --ease-sortie: cubic-bezier(.2, .8, .2, 1);
  --ease-glisse: cubic-bezier(.7, 0, .2, 1);

  /* Motifs (data-URI, couleurs de la charte) */
  --ch-motif-nuit: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='36'%3E%3Crect width='48' height='36' fill='%23061224'/%3E%3Cpolyline points='0,26 12,14 24,26 36,14 48,26' fill='none' stroke='%23C9972E' stroke-opacity='.35' stroke-width='1.2'/%3E%3Ccircle cx='12' cy='5' r='1.6' fill='%23C9972E' fill-opacity='.6'/%3E%3Ccircle cx='36' cy='5' r='1.6' fill='%23C9972E' fill-opacity='.6'/%3E%3C/svg%3E");
  --ch-motif-ivoire: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='36'%3E%3Crect width='48' height='36' fill='%23F6F1E7'/%3E%3Cpolyline points='0,26 12,14 24,26 36,14 48,26' fill='none' stroke='%23C9972E' stroke-opacity='.22' stroke-width='1.2'/%3E%3Ccircle cx='12' cy='5' r='1.6' fill='%23C9972E' fill-opacity='.3'/%3E%3Ccircle cx='36' cy='5' r='1.6' fill='%23C9972E' fill-opacity='.3'/%3E%3C/svg%3E");
  --ch-frise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='14'%3E%3Crect width='20' height='14' fill='%230B1F3A'/%3E%3Cpolygon points='1,14 10,5 19,14' fill='%23C9972E'/%3E%3C/svg%3E");
  --ch-frise-nuit: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='14'%3E%3Crect width='20' height='14' fill='%23061224'/%3E%3Cpolygon points='1,14 10,5 19,14' fill='%23C9972E'/%3E%3C/svg%3E");
}

@media (max-width: 760px) {
  :root { --gouttiere: 18px; }
}
