/* =========================================================
   SYLVIE & THIERRY
   VARIABLES GRAPHIQUES GLOBALES
   ========================================================= */

/*
 * Ce fichier centralise les valeurs graphiques communes
 * utilisées par les différentes feuilles de style du site.
 *
 * Objectifs :
 * - Centraliser les couleurs.
 * - Centraliser les polices et leurs caractéristiques.
 * - Centraliser les tailles typographiques.
 * - Centraliser les dimensions communes.
 * - Centraliser les espacements réutilisables.
 * - Centraliser les bordures, arrondis et ombres.
 * - Centraliser les transitions.
 *
 * Les valeurs spécifiques à une seule mise en page
 * peuvent rester dans le CSS de la page concernée.
 */


/* =========================================================
   CHARGEMENT CENTRALISÉ DES POLICES
   ========================================================= */

@import url("./fonts.css");


/* =========================================================
   VARIABLES GLOBALES
   ========================================================= */

:root {


    /* =====================================================
       POLICES
       ===================================================== */

    --font-title: "Bodoni Moda", serif;
    --font-text: "Cormorant Garamond", serif;
    --font-decorative: "Pinyon Script", cursive;


    /* =====================================================
       TYPOGRAPHIE - TAILLES GÉNÉRALES
       ===================================================== */

    --font-size-small: 0.85rem;
    --font-size-normal: 1rem;
    --font-size-medium: 1.15rem;
    --font-size-large: 1.4rem;
    --font-size-title: 2.5rem;


    /* =====================================================
       TYPOGRAPHIE - TITRES
       ===================================================== */

    /* Titres des pages */

    --font-size-page-title: clamp(1.7rem, 2.5vw, 2.3rem);
    --font-style-page-title: italic;
    --font-weight-page-title: 400;
    --line-height-page-title: normal;
    --letter-spacing-page-title: 1px;


    /* Titres des sections */

    --font-size-section-title: 1.6rem;


    /* Titres des événements */

    --font-size-event-title: 4.5rem;


    /* =====================================================
       TYPOGRAPHIE - TEXTES
       ===================================================== */

    --font-size-label: 0.95rem;
    --font-size-button: 0.95rem;
    --font-size-message: 0.95rem;


    /* =====================================================
       TYPOGRAPHIE - GRAISSES
       ===================================================== */

    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;


    /* =====================================================
       TYPOGRAPHIE - ESPACEMENTS
       ===================================================== */

    --letter-spacing-normal: 0.5px;
    --letter-spacing-button: 1.5px;
    --letter-spacing-title: 2px;


    /* =====================================================
       TYPOGRAPHIE - INTERLIGNES
       ===================================================== */

    --line-height-normal: 1.4;
    --line-height-label: 1.3;


    /* =====================================================
       FONDS
       ===================================================== */

    --color-background: #faf7f0;
    --color-background-light: #fffdf9;


    /* =====================================================
       TEXTES
       ===================================================== */

    --color-text: #665248;
    --color-text-soft: #806b60;
    --color-text-title: var(--color-text);


    /* =====================================================
       PALETTE FRANÇAISE
       ===================================================== */

    --color-fr: #f9ded2;
    --color-fr-border: #d9b7a8;


    /* =====================================================
       PALETTE PORTUGAISE
       ===================================================== */

    --color-pt: #dce9e3;
    --color-pt-border: #b8cec5;


    /* =====================================================
       BOUTONS - COULEURS
       ===================================================== */

    --color-button-connect: var(--color-fr);
    --color-button-register: var(--color-pt);


    /* =====================================================
       BOUTONS RSVP - PALETTE AQUARELLE
       ===================================================== */

    /* ENVOYER / SUIVANT : bleu-vert aquarelle */

    --color-rsvp-next: #d5e8e2;
    --color-rsvp-next-border: #a9c9bd;
    --color-rsvp-next-text: #526d65;


    /* PRÉCÉDENT : rose aquarelle */

    --color-rsvp-previous: #f3d9d4;
    --color-rsvp-previous-border: #d9b5ad;
    --color-rsvp-previous-text: #956e68;


    /* ANNULER : beige sable */

    --color-rsvp-cancel: #e9dfcf;
    --color-rsvp-cancel-border: #cdbda5;
    --color-rsvp-cancel-text: #88745c;


    /* =====================================================
       BOUTONS - DIMENSIONS
       ===================================================== */

    /* Hauteur de référence */

    --button-height: 42px;


    /* Variante compacte */

    --button-height-compact: 42px;


    /* Variante Login */

    --button-height-login: 54px;


    /* Largeur minimale */

    --button-min-width: 125px;


    /* Espacements internes */

    --button-padding-horizontal: 18px;
    --button-padding-vertical: 10px;


    /* Typographie */

    --button-font-size: var(--font-size-button);
    --button-font-weight: var(--font-weight-semibold);
    --button-letter-spacing: var(--letter-spacing-button);


    /* Arrondi */

    --button-radius: var(--radius-pill);


    /* =====================================================
       BOUTONS - OMBRES
       ===================================================== */

    --shadow-button-hover:
        0 5px 14px rgba(102, 82, 72, 0.10);


    /* =====================================================
       COULEURS INTERDITES - ÉVÉNEMENTS
       ===================================================== */

    --color-forbidden-gray: #c7c7c4;
    --color-forbidden-white: #faf9f6;
    --color-forbidden-yellow: #fadb7a;
    --color-forbidden-pink: #f2b9c6;


    /* =====================================================
       BORDURES
       ===================================================== */

    --color-border: rgba(102, 82, 72, 0.25);
    --color-border-strong: rgba(102, 82, 72, 0.30);


    /* =====================================================
       OMBRES
       ===================================================== */

    --shadow-soft: 0 4px 12px rgba(102, 82, 72, 0.12);
    --shadow-active: 0 0 0 2px var(--color-text);


    /* =====================================================
       ARRONDIS
       ===================================================== */

    --radius-small: 7px;
    --radius-medium: 12px;
    --radius-pill: 30px;
    --radius-circle: 50%;


    /* =====================================================
       TRANSITIONS
       ===================================================== */

    --transition-standard: 0.2s ease;


    /* =====================================================
       CHAMPS DE FORMULAIRE
       ===================================================== */

    --color-field-background: rgba(255, 255, 255, 0.25);
    --color-field-border: rgba(102, 82, 72, 0.28);
    --color-field-focus: #b99b8d;

    --shadow-field-focus:
        0 0 0 3px rgba(185, 155, 141, 0.12);


    /* =====================================================
       SÉPARATEURS
       ===================================================== */

    --color-separator: rgba(102, 82, 72, 0.25);


    /* =====================================================
       RSVP - TYPOGRAPHIE
       ===================================================== */

    --font-size-rsvp-divider: 1.25rem;
    --font-size-rsvp-number: 1rem;
    --font-size-rsvp-label: 0.95rem;
    --font-size-rsvp-message: 0.95rem;
    --font-size-rsvp-event: 1rem;

    --line-height-rsvp-message: 1.4;


    /* =====================================================
       RSVP - DIMENSIONS
       ===================================================== */

    --rsvp-container-max-width: 760px;
    --rsvp-field-max-width: 520px;

    --rsvp-input-height: 38px;
    --rsvp-radio-size: 16px;
    --rsvp-participant-number-size: 34px;


    /* =====================================================
       RSVP - ESPACEMENTS
       ===================================================== */

    --rsvp-layout-gap: 28px;
    --rsvp-form-gap: 18px;
    --rsvp-field-gap: 5px;
    --rsvp-label-gap: 7px;
    --rsvp-divider-gap: 14px;


    /* =====================================================
       RSVP - COULEURS
       ===================================================== */

    /* Message de succès */

    --color-rsvp-success-text: #426052;


    /* Message d'erreur */
   --color-rsvp-error-text: #8d4545;
   
    --color-rsvp-error-background:
        rgba(180, 85, 85, 0.08);

    --color-rsvp-error-border:
        rgba(180, 85, 85, 0.28);


    /* Éléments désactivés */

    --color-rsvp-disabled-background:
        rgba(102, 82, 72, 0.06);

}