/*
Theme Name:   Divi Child
Theme URI:    https://www.granger-medical.ch
Description:  Thème enfant de Divi pour Granger Médical
Author:       Granger Médical SA
Author URI:   https://www.granger-medical.ch
Template:     Divi
Version:      2.0.0
*/

/* ============================================
   VARIABLES DE COULEURS
   ============================================ */
:root {
    --cyan: #00BCD4;
    --cyan-dark: #0097A7;
    --cyan-light: #E0F7FA;
    --dark: #1a2332;
    --dark-medium: #243447;
    --white: #ffffff;
    --grey-light: #f5f7fa;
    --grey-text: #666;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 8px 30px rgba(0, 188, 212, 0.3);
    --radius: 8px;
    --transition: all 0.3s ease;
}

/* ============================================
   TYPOGRAPHIE MODERNE
   ============================================ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

body {
    font-family: 'Inter', sans-serif !important;
    color: #333;
    line-height: 1.7;
}

h1, h2, h3, h4, h5 {
    font-family: 'Inter', sans-serif !important;
    font-weight: 600;
    letter-spacing: -0.02em;
}

/* ============================================
   BARRE SUPERIEURE
   ============================================ */
#top-header {
    background: var(--dark) !important;
    border-bottom: 2px solid var(--cyan) !important;
    padding: 8px 0 !important;
}

#top-header a {
    color: var(--cyan) !important;
    font-size: 13px;
    font-weight: 500;
    transition: var(--transition);
}

#top-header a:hover {
    color: var(--white) !important;
}

/* ============================================
   NAVIGATION MODERNISEE
   ============================================ */
#main-header {
    background: var(--white) !important;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08) !important;
    backdrop-filter: blur(10px);
}

#et-top-navigation nav > ul > li > a {
    font-weight: 500 !important;
    font-size: 14px !important;
    letter-spacing: 0.03em;
    color: #333 !important;
    transition: var(--transition) !important;
    padding: 10px 15px !important;
    border-radius: var(--radius);
}

#et-top-navigation nav > ul > li > a:hover,
#et-top-navigation nav > ul > li.current-menu-item > a {
    color: var(--cyan) !important;
    background: var(--cyan-light) !important;
}

/* Sous-menus */
#et-top-navigation nav > ul > li ul {
    border-top: 3px solid var(--cyan) !important;
    border-radius: 0 0 var(--radius) var(--radius) !important;
    box-shadow: var(--shadow) !important;
}

#et-top-navigation nav > ul > li ul li a {
    font-size: 13px !important;
    padding: 10px 20px !important;
    transition: var(--transition) !important;
}

#et-top-navigation nav > ul > li ul li a:hover {
    color: var(--cyan) !important;
    padding-left: 25px !important;
}

/* ============================================
   SECTIONS - FOND MODERNISE
   ============================================ */
.et_pb_section {
    transition: var(--transition);
}

/* Sections sombres */
.et_pb_section.et_pb_with_background,
section.et_pb_section[style*="background-color: #2d3561"],
section.et_pb_section[style*="background-color:#2d3561"] {
    background-color: var(--dark-medium) !important;
}

/* ============================================
   BOUTONS MODERNISES
   ============================================ */
.et_pb_button,
a.et_pb_button {
    background: linear-gradient(135deg, var(--cyan), var(--cyan-dark)) !important;
    color: var(--white) !important;
    border: none !important;
    border-radius: 50px !important;
    padding: 12px 30px !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: var(--transition) !important;
    box-shadow: 0 4px 15px rgba(0, 188, 212, 0.4) !important;
}

.et_pb_button:hover,
a.et_pb_button:hover {
    transform: translateY(-2px) !important;
    box-shadow: var(--shadow-hover) !important;
    background: linear-gradient(135deg, var(--cyan-dark), var(--cyan)) !important;
}

/* ============================================
   TITRES DE SECTIONS
   ============================================ */
.et_pb_text h2,
.et_pb_column h2 {
    font-size: 2rem !important;
    font-weight: 700 !important;
    color: var(--white) !important;
    position: relative;
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.et_pb_text h2::after,
.et_pb_column h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: var(--cyan);
    border-radius: 2px;
}

/* ============================================
   IMAGES ET CARTES
   ============================================ */
.et_pb_image img,
.et_pb_gallery_image img {
    border-radius: var(--radius) !important;
    transition: var(--transition) !important;
    box-shadow: var(--shadow) !important;
}

.et_pb_image img:hover,
.et_pb_gallery_image img:hover {
    transform: translateY(-5px) !important;
    box-shadow: var(--shadow-hover) !important;
}

/* ============================================
   FOOTER
   ============================================ */
#footer-bottom {
    background: var(--dark) !important;
    border-top: 2px solid var(--cyan) !important;
    padding: 20px 0 !important;
}

#footer-bottom p,
#footer-bottom a {
    font-size: 12px !important;
    color: rgba(255,255,255,0.6) !important;
}

#footer-bottom a:hover {
    color: var(--cyan) !important;
}

/* ============================================
   RESPONSIVE MOBILE
   ============================================ */
@media (max-width: 768px) {
    h1 { font-size: 1.8rem !important; }
    h2 { font-size: 1.5rem !important; }

    .et_pb_button {
        padding: 10px 20px !important;
        font-size: 13px !important;
    }
}

/* ============================================
   ANIMATIONS SUBTILES
   ============================================ */
.et_pb_module {
    animation: fadeInUp 0.5s ease both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/* Amélioration contraste textes */
.et_pb_section .et_pb_text_inner h2 {
    color: #1a2332 !important;
}

.et_pb_section .et_pb_text_inner p {
    color: #444 !important;
    font-size: 16px !important;
    line-height: 1.8 !important;
}
/* ============================================
   PRIORITÉ 1 — CORRECTIONS URGENTES
   ============================================ */

/* 1. SECTION "A PROPOS" 
   Fond gris trop pâle → blanc propre avec bon contraste */
.et_pb_section[style*="background-color: #cccccc"],
.et_pb_section[style*="background-color:#cccccc"],
.et_pb_section[style*="background-color: rgb(204, 204, 204)"],
.et_pb_section[style*="background-color: #c0c0c0"],
.et_pb_section[style*="background-color: #d0d0d0"] {
    background-color: #f0f4f8 !important;
}

/* Texte "A propos", "Membres", "Entreprise formatrice" 
   sur fond clair → couleur foncée */
.et_pb_section h2,
.et_pb_section h3,
.et_pb_section h4 {
    color: #1a2332 !important;
}

/* Ligne décorative sous les titres */
.et_pb_blurb_title {
    color: #1a2332 !important;
    font-size: 1.4rem !important;
    font-weight: 600 !important;
}

/* ----------------------------------------- */

/* 2. FOOTER — Cyan trop vif → bleu foncé élégant */
#main-footer {
    background-color: #1a2332 !important;
    border-top: 3px solid var(--cyan) !important;
}

#main-footer .et_pb_widget,
#main-footer p,
#main-footer a,
#main-footer h4,
#main-footer li {
    color: rgba(255, 255, 255, 0.8) !important;
}

#main-footer a:hover {
    color: var(--cyan) !important;
}

/* Footer bottom */
#footer-bottom {
    background-color: #111c28 !important;
    border-top: 1px solid rgba(255,255,255,0.1) !important;
}

#footer-bottom p,
#footer-bottom a {
    color: rgba(255, 255, 255, 0.5) !important;
    font-size: 12px !important;
}

/* ----------------------------------------- */

/* 3. SECTION "NEWS" — Bleu dépareillé → harmonisé */
.et_pb_section[style*="background-color: #336699"],
.et_pb_section[style*="background-color: #2d5986"],
.et_pb_section[style*="background-color: #2e5f8a"],
.et_pb_section[style*="background-color: #1e4d7b"],
.et_pb_section[style*="background-color: #3a6ea8"] {
    background-color: #1a2332 !important;
}

/* Titre "Les news actuels" → bien visible */
.et_pb_section h2.et_pb_module_header,
.et_pb_posts_nav,
.et_pb_section .et_pb_text_inner h2 {
    color: #1a2332 !important;
}

/* Cards des news → fond blanc avec ombre */
.et_pb_post {
    background: #ffffff !important;
    border-radius: 10px !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08) !important;
    padding: 20px !important;
    transition: all 0.3s ease !important;
}

.et_pb_post:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 8px 30px rgba(0, 188, 212, 0.2) !important;
}

/* ----------------------------------------- */

/* 4. CORRECTION TEXTES PÂLES GLOBALE */
.et_pb_text_in
/* ============================================
   PRIORITÉ 2 — VERSION CORRIGÉE
   ============================================ */

/* Images — respecte les proportions naturelles */
.et_pb_gallery .et_pb_gallery_item img {
    width: 100% !important;
    height: auto !important;
    border-radius: 10px !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
}

/* Effet hover sur les images */
.et_pb_gallery .et_pb_gallery_item img:hover {
    transform: scale(1.03) !important;
    box-shadow: 0 8px 25px rgba(0, 188, 212, 0.3) !important;
}

/* Slider — plus d'impact */
.et_pb_slider .et_pb_slide {
    min-height: 500px !important;
}

.et_pb_slider h2 {
    font-size: 2.5rem !important;
    font-weight: 700 !important;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3) !important;
}

/* Effet hover sur les blurbs */
.et_pb_blurb {
    padding: 20px !important;
    border-radius: 10px !important;
    transition: all 0.3s ease !important;
}

.et_pb_blurb:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 10px 30px rgba(0,188,212,0.2) !important;
}

/* Mobile */
@media (max-width: 768px) {
    .et_pb_slider h2 {
        font-size: 1.6rem !important;
    }
}