/*
Theme Name: GeneratePress Child - Amathelia Shiatsu
Template: generatepress
Version: 1.1.0
Description: Thème enfant éco-conçu pour Amathelia Shiatsu - Bien-être authentique des Animaux & des Hommes
Author: Agence Bethauv (Juliette)
Author URI: https://agence-bethauv.fr
*/

/* ======================================================================
   CHARGEMENT DES FONTS LOCALES (éco-conception)
   ====================================================================== */

/* Montserrat - Pour le texte courant */
@font-face {
    font-family: 'Montserrat';
    src: url('fonts/Montserrat/Montserrat-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Montserrat';
    src: url('fonts/Montserrat/Montserrat-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Montserrat';
    src: url('fonts/Montserrat/Montserrat-SemiBold.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Montserrat';
    src: url('fonts/Montserrat/Montserrat-Thin.woff2') format('woff2');
    font-weight: 200;
    font-style: normal;
    font-display: swap;
}

/* Caveat Brush - Pour les titres (H1, H2, H3) */
@font-face {
    font-family: 'Caveat Brush';
    src: url('fonts/CaveatBrush/CaveatBrush-Regular.woff2') format('woff2'),
         url('fonts/CaveatBrush/CaveatBrush-Regular.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}


/* ======================================================================
   VARIABLES CSS - CHARTE GRAPHIQUE AMATHELIA
   ====================================================================== */

:root {
    /* === COULEURS PRINCIPALES === */
    --col-primary: #4D604A;
    --col-secondary: #B2B695;
    --col-bg: #f3f4f5;
    --col-text: #3A4D39;

    /* === ACCENTS === */
    --col-accent-terre: #FF6663;
    --col-accent-turquoise: #A8C5A0;

    /* === COMPLÉMENTS === */
    --col-bg-card: #ffffff;
    --col-border: #dcded8;

    /* === OMBRES === */
    --shadow-soft: 0 6px 18px rgba(0, 0, 0, 0.07);
    --shadow-mid: 0 8px 25px rgba(0, 0, 0, 0.12);

    /* === TYPOGRAPHIE === */
    --font-body: 'Montserrat', sans-serif;
    --font-heading: 'Caveat Brush', 'Bradley Hand', 'Brush Script MT', cursive;
}


/* ======================================================================
   TYPOGRAPHIE GLOBALE
   ====================================================================== */

body {
    font-family: var(--font-body);
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--col-text);
    background-color: var(--col-bg);
}

/* === TITRES === */
h1, h2, h3 {
    font-family: var(--font-heading);
    font-weight: 400;
    color: var(--col-primary);
    line-height: 1.3;
    text-align: center;
}

h1 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
}

h2 {
    font-size: 2.4rem;
    margin-bottom: 0.8rem;
}

h3 {
    font-size: 2rem;
    margin-bottom: 0.7rem;
}

/* H4, H5, H6 restent en Montserrat */
h4, h5, h6 {
    font-family: var(--font-body);
    font-weight: 600;
    color: var(--col-primary);
}

h4 {
    font-size: 1.5rem;
    margin-bottom: 0.6rem;
}

h5 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

h6 {
    font-size: 1.125rem;
    margin-bottom: 0.4rem;
}

/* === PARAGRAPHES === */
p {
    margin-bottom: 1.2rem;
    font-size: 1.05rem;
    line-height: 1.7;
}

/* === LISTES === */
ul, ol {
    padding-left: 1.5rem;
    margin-bottom: 1.2rem;
}

li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

/* === LIENS === */
a {
    color: var(--col-primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover,
a:focus {
    color: var(--col-accent-terre);
    text-decoration: underline;
}

/* === CITATIONS === */
blockquote {
    font-style: italic;
    border-left: 4px solid var(--col-primary);
    padding-left: 1.2rem;
    margin: 1.6rem 0;
    opacity: 0.9;
}

/* === TEXTE PETIT === */
small {
    font-size: 0.85rem;
    opacity: 0.85;
}


/* ======================================================================
   HEADER
   ====================================================================== */

.site-header {
    background: var(--col-bg-card);
    box-shadow: var(--shadow-soft);
}

.inside-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
    max-width: 1400px;
    margin: 0 auto;
}

/* Logo */
.site-logo img {
    max-height: 120px;
    width: auto;
}

/* Titre du site */
.site-title,
.site-title a,
.site-header .site-title {
    font-family: var(--font-heading);
    font-weight: 400;
    font-size: 1.6rem;
    color: var(--col-primary);
    margin: 0;
    line-height: 1.1;
    text-decoration: none;
}

/* === MENU DE NAVIGATION === */
.main-navigation {
    max-width: 1400px;
    margin: 0 auto;
}

.main-navigation a {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--col-text);
    padding: 0.5rem 1rem;
    transition: color 0.2s ease;
}

.main-navigation a:hover,
.main-navigation .current-menu-item > a {
    color: var(--col-accent-turquoise);
    text-decoration: none;
}


/* ======================================================================
   BOUTONS & CTA
   ====================================================================== */

.button,
.wp-block-button__link,
a.button,
button[type="submit"],
input[type="submit"] {
    background-color: var(--col-accent-terre);
    color: #ffffff;
    padding: 0.9em 1.8em;
    border-radius: 60px;
    font-weight: 600;
    font-family: var(--font-body);
    border: none;
    cursor: pointer;
    box-shadow: var(--shadow-soft);
    transition: all 0.25s ease;
    display: inline-block;
    text-decoration: none;
}

.button:hover,
.wp-block-button__link:hover,
a.button:hover,
button[type="submit"]:hover,
input[type="submit"]:hover {
    background-color: #4D604AB8;
    transform: translateY(-2px);
    box-shadow: var(--shadow-mid);
    text-decoration: none;
}

/* Bouton secondaire */
.button-secondary {
    background-color: #4D604A;
    color: var(--col-text);
}

.button-secondary:hover {
    background-color: var(--col-accent-turquoise);
    color: #ffffff;
}

/*paragraphe fond clair et bordure blanche */
.paragraphe-bordure {
    border: solid;
    border-left: 5px;
    border-top: 2px;
    border-color: var(--col-primary);
    border-radius: 60px;
}


/* ======================================================================
   CARTES & CONTENEURS
   ====================================================================== */

.card,
.box {
    background: var(--col-bg-card);
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: var(--shadow-soft);
    margin-bottom: 1.5rem;
}

/* Images arrondies (style doux) */
img {
    border-radius: 6px;
    max-width: 100%;
    height: auto;
}


/* ======================================================================
   TIMELINE
   ====================================================================== */

.custom-timeline {
    position: relative;
    margin: 40px auto;
    padding: 20px 0;
    max-width: 900px;
}

/* Ligne verticale centrale */
.custom-timeline::before {
    content: "";
    position: absolute;
    left: 50%;
    width: 4px;
    height: 100%;
    background: var(--col-accent-turquoise);
    transform: translateX(-50%);
}

/* Lignes de la timeline */
.timeline-row {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    margin: 40px 0;
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.7s ease-out;
}

.timeline-row.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Point sur la ligne centrale */
.timeline-row::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--col-accent-turquoise);
    border: 4px solid var(--col-accent-turquoise);
    transform: translate(-50%, -50%);
    z-index: 2;
}

/* Colonnes texte / image */
.timeline-col {
    width: 50%;
    box-sizing: border-box;
    padding: 0 30px;
}

.timeline-col--text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.timeline-col--image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.timeline-col--image img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    object-fit: cover;
}

/* Contenu */
.timeline-date {
    font-weight: bold;
    color: var(--col-primary);
    margin-bottom: 8px;
}

.timeline-content {
    background: var(--col-bg-card);
    padding: 15px;
    border-radius: 6px;
}

/* Bordure côté ligne centrale + alignement texte */
.timeline-row:nth-child(odd) .timeline-content {
    border-right: 4px solid var(--col-accent-turquoise);
    text-align: right;
}

.timeline-row:nth-child(even) .timeline-content {
    border-left: 4px solid var(--col-accent-turquoise);
    text-align: left;
}

/* Alternance gauche / droite */
.timeline-row:nth-child(even) {
    flex-direction: row-reverse;
}


/* ======================================================================
   FOOTER
   ====================================================================== */

.site-footer {
    background: var(--col-primary);
    color: #ffffff;
    padding: 2rem 0;
    margin-top: 3rem;
}

.site-footer a {
    color: #ffffff;
    opacity: 0.9;
}

.site-footer a:hover {
    opacity: 1;
    color: var(--col-accent-turquoise);
}


/* ======================================================================
   ICÔNES PERSONNALISÉES
   ====================================================================== */

.icon {
    display: inline-block;
    vertical-align: middle;
    fill: currentColor;
}

.icon-box-aepsa .elementor-icon svg {
    width: 60px !important;
    height: 60px !important;
    object-fit: contain;
}

/* ======================================================================
   CLASSES UTILITAIRES POUR ELEMENTOR
   Utiliser via le champ "CSS Classes" dans l'onglet Avancé
   ====================================================================== */

/* === COULEURS DE TEXTE === */
.text-primary { color: var(--col-primary); }
.text-secondary { color: var(--col-secondary); }
.text-main { color: var(--col-text); }
.text-accent { color: var(--col-accent-terre); }
.text-turquoise { color: var(--col-accent-turquoise); }
.text-white { color: #ffffff; }

/* === COULEURS DE FOND === */
.bg-primary { background-color: var(--col-primary); }
.bg-secondary { background-color: var(--col-secondary); }
.bg-light { background-color: var(--col-bg); }
.bg-card { background-color: var(--col-bg-card); }
.bg-accent { background-color: var(--col-accent-terre); }
.bg-turquoise { background-color: var(--col-accent-turquoise); }

/* === TYPOGRAPHIES === */
.font-heading { font-family: var(--font-heading); }
.font-body { font-family: var(--font-body); }

/* === POIDS DE POLICE === */
.font-thin { font-weight: 200; }
.font-regular { font-weight: 400; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }

/* === BORDURES === */
.border-primary { border-color: var(--col-primary); }
.border-accent { border-color: var(--col-accent-terre); }
.border-turquoise { border-color: var(--col-accent-turquoise); }

/* === OMBRES === */
.shadow-soft { box-shadow: var(--shadow-soft); }
.shadow-mid { box-shadow: var(--shadow-mid); }

/* === ESPACEMENTS === */
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }

.pt-1 { padding-top: 1rem; }
.pt-2 { padding-top: 2rem; }
.pt-3 { padding-top: 3rem; }

.pb-1 { padding-bottom: 1rem; }
.pb-2 { padding-bottom: 2rem; }
.pb-3 { padding-bottom: 3rem; }

/* === ALIGNEMENTS === */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }


/* ======================================================================
   PLEINE LARGEUR - ELEMENTOR + GENERATEPRESS
   (sans !important - utilise la spécificité CSS)
   ====================================================================== */

/* Conteneur principal */
#page {
    max-width: 100%;
}

/* Conteneurs GeneratePress - spécificité augmentée avec html body */
html body .site-content,
html body .inside-article,
html body .entry-content {
    max-width: 100%;
    padding-left: 0;
    padding-right: 0;
}

html body .grid-container,
html body .inside-container {
    max-width: 100%;
    padding-left: 0;
    padding-right: 0;
}

/* Sections Elementor en pleine largeur */
html body .elementor-section.elementor-section-boxed > .elementor-container {
    max-width: 100%;
}

/* Widget Elementor */
.elementor-widget-wrap {
    width: 100%;
}


/* ======================================================================
   RESPONSIVE
   ====================================================================== */

@media (max-width: 768px) {
    /* Titres */
    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.8rem; }
    h3 { font-size: 1.5rem; }

    /* Logo */
    .site-logo img {
        max-height: 60px;
    }

    /* Titre du site */
    .site-title,
    .site-title a,
    .site-header .site-title {
        font-size: 1.4rem;
    }

    /* Cartes */
    .card,
    .box {
        padding: 1rem;
    }

    /* Timeline */
    .custom-timeline::before {
        left: 8px;
    }

    .timeline-row {
        flex-direction: column;
        margin: 30px 0;
    }

    .timeline-row:nth-child(even) {
        flex-direction: column;
    }

    .timeline-col {
        width: 100%;
        padding: 0 20px 20px 30px;
    }

    .timeline-row::before {
        left: 8px;
    }

    .timeline-row:nth-child(odd) .timeline-content,
    .timeline-row:nth-child(even) .timeline-content {
        border-left: 4px solid var(--col-accent-turquoise);
        border-right: none;
        text-align: left;
    }

    .timeline-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .timeline-image {
        width: 100%;
        max-width: 200px;
    }
}

@media (max-width: 480px) {
    body { font-size: 15px; }
    h1 { font-size: 1.9rem; }
    h2 { font-size: 1.6rem; }

    .site-title,
    .site-title a,
    .site-header .site-title {
        font-size: 1.2rem;
    }
}