/*
Theme Name: Astra Child - Guilhem Cohen
Theme URI: https://lproject-web.fr/
Description: Thème enfant Astra pour le site de Guilhem Cohen, Ostéopathe D.O. à Montauban.
Author: LProject Web
Author URI: https://lproject-web.fr/
Template: astra
Version: 1.0.1
Text Domain: astra-child-guilhem-cohen
*/

/* =========================================================
   GUILHEM COHEN — PALETTE GLOBALE
   ========================================================= */
:root {
    /* Palette du site */
    --gc-bg: #F8F5EE;
    --gc-bg-soft: #F1ECE2;
    --gc-white: #FFFFFF;

    --gc-text: #1F2926;
    --gc-text-soft: #6F7772;

    --gc-green: #2F735C;
    --gc-green-dark: #245A48;
    --gc-green-light: #DDE9E3;

    --gc-beige: #DED2C3;
    --gc-border: rgba(31, 41, 38, 0.12);

    --gc-radius-sm: 12px;
    --gc-radius-md: 22px;
    --gc-radius-lg: 36px;

    --gc-shadow: 0 12px 35px rgba(31, 41, 38, 0.08);

    --gc-container: 1240px;
    --gc-transition: 0.25s ease;

    /* =====================================================
       REMPLACEMENT DES COULEURS GLOBALES ASTRA
       On neutralise notamment le bleu par défaut d'Astra.
       ===================================================== */
    --ast-global-color-0: #2F735C !important;
    --ast-global-color-1: #245A48 !important;
    --ast-global-color-2: #1F2926 !important;
    --ast-global-color-3: #6F7772 !important;
    --ast-global-color-4: #F8F5EE !important;
    --ast-global-color-5: #FFFFFF !important;
    --ast-global-color-6: #DDE9E3 !important;
    --ast-global-color-7: #F1ECE2 !important;
    --ast-global-color-8: #DED2C3 !important;

    --ast-border-color: rgba(31, 41, 38, 0.12) !important;
}

/* =========================================================
   BASE
   ========================================================= */
html {
    scroll-behavior: smooth;
}

body,
.ast-separate-container,
.ast-page-builder-template {
    background: var(--gc-bg);
    color: var(--gc-text);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body,
button,
input,
select,
textarea {
    color: var(--gc-text);
}

a {
    color: var(--gc-green);
    transition:
        color var(--gc-transition),
        background-color var(--gc-transition),
        border-color var(--gc-transition),
        opacity var(--gc-transition),
        transform var(--gc-transition);
}

a:hover,
a:focus {
    color: var(--gc-green-dark);
}

::selection {
    background: var(--gc-green);
    color: var(--gc-white);
}

/* =========================================================
   ASTRA — SUPPRESSION DU BLEU PAR DÉFAUT
   ========================================================= */

/* Liens */
.entry-content a,
.site-footer a,
.site-header a {
    color: inherit;
}

.entry-content a:not(.button):not(.wp-block-button__link):not(.elementor-button) {
    color: var(--gc-green);
}

.entry-content a:not(.button):not(.wp-block-button__link):not(.elementor-button):hover {
    color: var(--gc-green-dark);
}

/* Boutons Astra / WordPress / Elementor */
button,
input[type="button"],
input[type="reset"],
input[type="submit"],
.ast-button,
.button,
.wp-block-button__link,
.elementor-button {
    background-color: var(--gc-green);
    border-color: var(--gc-green);
    color: var(--gc-white);
}

button:hover,
button:focus,
input[type="button"]:hover,
input[type="button"]:focus,
input[type="reset"]:hover,
input[type="reset"]:focus,
input[type="submit"]:hover,
input[type="submit"]:focus,
.ast-button:hover,
.ast-button:focus,
.button:hover,
.button:focus,
.wp-block-button__link:hover,
.wp-block-button__link:focus,
.elementor-button:hover,
.elementor-button:focus {
    background-color: var(--gc-green-dark);
    border-color: var(--gc-green-dark);
    color: var(--gc-white);
}

/* Menu Astra */
.main-header-menu .menu-link,
.ast-header-custom-item a {
    color: var(--gc-text);
}

.main-header-menu .menu-link:hover,
.main-header-menu .current-menu-item > .menu-link,
.main-header-menu .current_page_item > .menu-link,
.ast-header-custom-item a:hover {
    color: var(--gc-green);
}

/* Menu mobile / sous-menus */
.ast-builder-menu-mobile .main-navigation .main-header-menu .menu-link,
.ast-builder-menu-mobile .main-navigation .menu-item > .ast-menu-toggle {
    color: var(--gc-text);
}

.ast-builder-menu-mobile .main-navigation .main-header-menu .menu-link:hover,
.ast-builder-menu-mobile .main-navigation .current-menu-item > .menu-link,
.ast-builder-menu-mobile .main-navigation .menu-item > .ast-menu-toggle:hover {
    color: var(--gc-green);
}

/* Icône burger */
[data-section="section-header-mobile-trigger"] .ast-button-wrap .mobile-menu-toggle-icon .ast-mobile-svg {
    fill: var(--gc-text);
}

[data-section="section-header-mobile-trigger"] .ast-button-wrap .menu-toggle:hover .ast-mobile-svg,
[data-section="section-header-mobile-trigger"] .ast-button-wrap .menu-toggle:focus .ast-mobile-svg {
    fill: var(--gc-green);
}

/* Formulaires et focus */
input,
textarea,
select {
    border-color: var(--gc-border);
    background-color: var(--gc-white);
}

input:focus,
textarea:focus,
select:focus {
    border-color: var(--gc-green) !important;
    box-shadow: 0 0 0 1px var(--gc-green) !important;
    outline: none;
}

/* Liens "read more", pagination, navigation */
.read-more a,
.post-page-numbers,
.page-numbers,
.ast-pagination a,
.nav-links a {
    color: var(--gc-green);
}

.read-more a:hover,
.post-page-numbers:hover,
.page-numbers:hover,
.ast-pagination a:hover,
.nav-links a:hover {
    color: var(--gc-green-dark);
}

/* Icônes / SVG Astra qui héritent parfois du bleu */
.ast-icon,
.ast-icon svg,
.ast-header-search .ast-icon,
.ast-search-menu-icon svg {
    color: currentColor;
    fill: currentColor;
}

/* Focus clavier : vert, jamais bleu */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid var(--gc-green);
    outline-offset: 3px;
}

/* =========================================================
   NOTES
   =========================================================
   Les styles spécifiques de la one-page seront placés
   dans assets/css/home.css.
   ========================================================= */
