/* ============================================
   COMPOSANTS & UTILITAIRES CSS
   Ce fichier contient les classes réutilisables
   ============================================ */

/* ============================================
   COMPOSANTS HTML (data-include)
   Le conteneur injecté ne crée pas de boîte :
   le header reste sticky, les cartes restent
   de vraies cellules de grille (même hauteur).
   ============================================ */
[data-include] {
    display: contents;
}

/* ============================================
   BOUTONS
   ============================================ */

/* Bouton Principal (Vert Khaki) */
.btn-primary,
.session-btn,
.direct-button.phone,
.help-button.phone {
    display: inline-block;
    padding: 18px 30px;
    background: linear-gradient(135deg, var(--vert-khaki) 0%, var(--vert-khaki-fonce) 100%);
    color: var(--blanc);
    text-decoration: none;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 600;
    text-align: center;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(66, 100, 69, 0.3);
}

.btn-primary:hover,
.session-btn:hover,
.direct-button.phone:hover,
.help-button.phone:hover {
    box-shadow: 0 6px 20px rgba(66, 100, 69, 0.4);
    transform: translateY(-2px);
}

/* Bouton Secondaire (Beige) */
.btn-secondary,
.direct-button.email,
.help-button.email,
.advisor-contact {
    display: inline-block;
    padding: 18px 30px;
    background: var(--blanc);
    color: var(--gris-sombre);
    text-decoration: none;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid var(--beige-fonce);
}

.btn-secondary:hover,
.direct-button.email:hover,
.help-button.email:hover {
    border-color: var(--vert-khaki);
    color: var(--vert-khaki);
    transform: translateY(-2px);
}

/* Bouton Outline */
.btn-outline {
    display: inline-block;
    padding: 18px 30px;
    background: transparent;
    color: var(--gris-sombre);
    text-decoration: none;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 600;
    border: 2px solid var(--beige-fonce);
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background: var(--vert-khaki);
    color: var(--blanc);
    border-color: var(--vert-khaki);
}

/* ============================================
   IMAGE PLACEHOLDER (Unique)
   ============================================ */
.image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--beige-moyen) 0%, var(--beige-fonce) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--beige-ombre);
    font-size: 14px;
    letter-spacing: 1px;
}

/* Variantes de taille */
.image-placeholder.small {
    height: 140px;
}

.image-placeholder.medium {
    height: 280px;
}

.image-placeholder.large {
    height: 320px;
}

/* ============================================
   CARTES - EFFET HOVER
   ============================================ */
.card-hover {
    background: var(--blanc);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(36, 51, 49, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(36, 51, 49, 0.12);
}

/* ============================================
   GRILLES
   ============================================ */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

/* Grille asymétrique */
.grid-2-1 {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

.grid-65-35 {
    display: grid;
    grid-template-columns: 65% 35%;
    gap: 60px;
    align-items: center;
}

/* ============================================
   TYPOGRAPHIE
   ============================================ */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.heading-light {
    font-weight: 300;
    letter-spacing: 1px;
}

.heading-highlight {
    color: var(--vert-khaki);
    font-weight: 600;
}

/* ============================================
   SECTIONS - PADDING
   ============================================ */
.section-padding {
    padding: 100px 0;
}

.section-padding-small {
    padding: 60px 0;
}

/* ============================================
   BADGES
   ============================================ */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: rgba(66, 100, 69, 0.1);
    border: 1px solid rgba(66, 100, 69, 0.2);
    border-radius: 50px;
    font-size: 12px;
    color: var(--vert-khaki);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge .dot {
    width: 6px;
    height: 6px;
    background: var(--vert-khaki);
    border-radius: 50%;
}

/* ============================================
   ICÔNES SVG
   ============================================ */
.icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.icon svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
}

.icon-circle {
    width: 60px;
    height: 60px;
    background: var(--beige-clair);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-circle svg {
    width: 28px;
    height: 28px;
}

/* ============================================
   RESPONSIVE UTILITIES
   ============================================ */
@media (max-width: 1024px) {
    .grid-2,
    .grid-3,
    .grid-4,
    .grid-2-1 {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .grid-65-35 {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .section-padding {
        padding: 60px 0;
    }
    
    .heading-light {
        font-size: 28px;
    }
}

/* ============================================
   UTILITAIRES DIVERSES
   ============================================ */
.hidden {
    display: none;
}

.visible-desktop {
    display: block;
}

.visible-mobile {
    display: none;
}

@media (max-width: 768px) {
    .visible-desktop {
        display: none;
    }
    
    .visible-mobile {
        display: block;
    }
}