/*
 Theme Name:   Hello TGV Partners
 Theme URI:    https://tgvpartners.co
 Description:  Child theme premium pour Hello Elementor — TGV Partners, cabinet de conseil IT & transformation digitale
 Author:       TGV Partners
 Author URI:   https://tgvpartners.co
 Template:     hello-elementor
 Version:      1.0.0
 License:      GNU General Public License v2 or later
 License URI:  https://www.gnu.org/licenses/gpl-2.0.html
 Text Domain:  hello-tgv
*/

/* ==========================================================================
   FICHIER : style.css
   DESCRIPTION : Feuille de styles principale du child theme Hello TGV Partners.
                 Contient les variables de la charte graphique, la typographie
                 globale et les styles de base du site.
   AUTEUR : TGV Partners
   VERSION : 1.0.0
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. VARIABLES CSS — Charte graphique TGV Partners
   --------------------------------------------------------------------------
   Toutes les couleurs et valeurs de design sont centralisées ici.
   Utilisation : var(--tgv-orange) dans n'importe quel fichier CSS.
   -------------------------------------------------------------------------- */
:root {
    /* --- Couleurs principales --- */
    --tgv-anthracite: #5D6266;
    --tgv-bleu-ciel: #7ABFDC;
    --tgv-orange: #F5A623;
    --tgv-bleu-profond: #0D4F5C;
    --tgv-bleu-nuit: #1E3A4C;
    --tgv-corail: #E8847C;
    --tgv-vert-sauge: #7A9E7E;
    --tgv-violet: #8B7CB5;

    /* --- Neutres --- */
    --tgv-charbon: #3D4144;
    --tgv-gris: #9A9DA0;
    --tgv-argent: #C8CACC;
    --tgv-dark: #0B1D2A;
    --tgv-snow: #FAFBFC;
    --tgv-ice: #EDF5F8;
    --tgv-creme: #FBF9F6;

    /* --- Typographie --- */
    --tgv-font-primary: 'Sora', sans-serif;

    /* --- Espacements sections --- */
    --tgv-section-padding: clamp(80px, 10vw, 140px);
    --tgv-section-padding-sm: clamp(60px, 8vw, 100px);

    /* --- Transitions --- */
    --tgv-ease-out: cubic-bezier(0.22, 1, 0.36, 1);
    --tgv-transition-base: 0.4s var(--tgv-ease-out);

    /* --- Ombres --- */
    --tgv-shadow-sm: 0 4px 20px rgba(0, 0, 0, 0.04);
    --tgv-shadow-md: 0 10px 40px rgba(0, 0, 0, 0.06);
    --tgv-shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.08);

    /* --- Rayons de bordure --- */
    --tgv-radius-sm: 8px;
    --tgv-radius-md: 12px;
    --tgv-radius-lg: 20px;
    --tgv-radius-pill: 50px;
}

/* --------------------------------------------------------------------------
   2. RESET & BASE
   --------------------------------------------------------------------------
   Normalisation légère pour harmoniser le rendu entre navigateurs.
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--tgv-font-primary);
    font-weight: 400;
    font-size: 16px;
    line-height: 1.7;
    color: var(--tgv-charbon);
    background-color: var(--tgv-snow);
    overflow-x: hidden;
}

/* Empêche le scroll quand le menu overlay est ouvert */
body.tgv-menu-open {
    overflow: hidden;
}

/* --------------------------------------------------------------------------
   3. TYPOGRAPHIE GLOBALE
   --------------------------------------------------------------------------
   Hiérarchie typographique inspirée du style éditorial/premium.
   Les grands titres utilisent un font-weight léger (300) avec des mots
   en gras (700) via <strong> pour créer du contraste.
   -------------------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--tgv-font-primary);
    font-weight: 300;
    line-height: 1.15;
    color: var(--tgv-dark);
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    letter-spacing: -0.03em;
}

h2 {
    font-size: clamp(2rem, 4vw, 3.5rem);
    letter-spacing: -0.02em;
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    letter-spacing: -0.01em;
}

h4 {
    font-size: clamp(1.25rem, 2vw, 1.75rem);
}

h5 {
    font-size: 1.125rem;
    font-weight: 500;
}

h6 {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Les mots en gras dans les titres créent le contraste éditorial */
h1 strong, h2 strong, h3 strong {
    font-weight: 700;
}

p {
    margin-bottom: 1.25em;
    color: var(--tgv-anthracite);
}

a {
    color: var(--tgv-bleu-profond);
    text-decoration: none;
    transition: color var(--tgv-transition-base);
}

a:hover {
    color: var(--tgv-orange);
}

/* --------------------------------------------------------------------------
   4. SECTION LABELS (OVERLINES)
   --------------------------------------------------------------------------
   Petites étiquettes au-dessus des titres de section, avec un trait décoratif.
   Utilisation dans Elementor : classe CSS "tgv-overline" sur un widget Texte.
   -------------------------------------------------------------------------- */
.tgv-overline {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-family: var(--tgv-font-primary);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--tgv-orange);
    margin-bottom: 20px;
}

/* Trait décoratif avant le label */
.tgv-overline::before {
    content: '';
    display: inline-block;
    width: 40px;
    height: 2px;
    background-color: var(--tgv-orange);
}

/* --------------------------------------------------------------------------
   5. SECTIONS — Grandes respirations
   --------------------------------------------------------------------------
   Padding généreux pour un rendu aéré et premium.
   -------------------------------------------------------------------------- */
.tgv-section {
    padding-top: var(--tgv-section-padding);
    padding-bottom: var(--tgv-section-padding);
}

.tgv-section-sm {
    padding-top: var(--tgv-section-padding-sm);
    padding-bottom: var(--tgv-section-padding-sm);
}

/* Fond dark pour les sections sombres */
.tgv-section-dark {
    background-color: var(--tgv-dark);
    color: var(--tgv-snow);
}

.tgv-section-dark h1,
.tgv-section-dark h2,
.tgv-section-dark h3,
.tgv-section-dark h4 {
    color: var(--tgv-snow);
}

.tgv-section-dark p {
    color: var(--tgv-argent);
}

/* Fond crème pour les sections alternatives */
.tgv-section-creme {
    background-color: var(--tgv-creme);
}

/* Fond ice pour les sections claires colorées */
.tgv-section-ice {
    background-color: var(--tgv-ice);
}

/* --------------------------------------------------------------------------
   6. IMAGES & MÉDIAS
   -------------------------------------------------------------------------- */
img {
    max-width: 100%;
    height: auto;
}

/* Style pour les images avec coins arrondis */
.tgv-img-rounded {
    border-radius: var(--tgv-radius-md);
    overflow: hidden;
}

/* --------------------------------------------------------------------------
   7. SÉLECTION DE TEXTE
   -------------------------------------------------------------------------- */
::selection {
    background-color: var(--tgv-orange);
    color: #fff;
}

/* --------------------------------------------------------------------------
   8. SCROLLBAR PERSONNALISÉE (navigateurs Webkit)
   -------------------------------------------------------------------------- */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--tgv-snow);
}

::-webkit-scrollbar-thumb {
    background: var(--tgv-argent);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--tgv-gris);
}
