/* ═══════════════════════════════════════════════════════════
   Gasma Cabinet — Page d'accueil (template éditable)
   Design d'origine conservé par défaut.
   Les couleurs sont pilotées par les variables CSS ci-dessous ;
   elles peuvent être surchargées depuis Gasma Cabinet > Apparence
   sans jamais modifier ce fichier.
   ═══════════════════════════════════════════════════════════ */

.gasma-home * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.gasma-home {
    --primary-blue: #1a5f9e;
    --primary-blue-dark: #0f4c81;
    --light-blue: #e8f0fe;
    --white: #ffffff;
    --dark-gray: #333333;
    --light-gray: #f5f5f5;
    --medium-gray: #888888;
    --transition: all 0.3s ease;
    color: var(--dark-gray);
    line-height: 1.6;
    overflow-x: hidden;
}

.gasma-home a { text-decoration: none; color: inherit; }
.gasma-home ul { list-style: none; }

.gasma-home .container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.gasma-home .btn {
    display: inline-block;
    background-color: var(--primary-blue);
    color: var(--white);
    padding: 12px 30px;
    border-radius: 4px;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 1rem;
    text-align: center;
}
.gasma-home .btn:hover {
    background-color: var(--primary-blue-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
.gasma-home .btn-secondary {
    background-color: transparent;
    border: 2px solid var(--primary-blue);
    color: var(--primary-blue);
}
.gasma-home .btn-secondary:hover {
    background-color: var(--primary-blue);
    color: var(--white);
}

.gasma-home .section-title {
    font-size: 2.2rem;
    text-align: center;
    margin-bottom: 1.5rem;
    color: var(--primary-blue);
}
.gasma-home .section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: var(--medium-gray);
    max-width: 700px;
    margin: 0 auto 3rem;
}

/* En-tête */
.gasma-home header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: fixed;
    width: 100%;
    z-index: 1000;
    top: 0;
}
.gasma-home .header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}
.gasma-home .logo img { height: 50px; width: auto; }

/* Logo texte (repli si aucun logo image n'est défini) */
.gasma-home .gasma-logo-text { font-size: 1.3rem; font-weight: 700; color: var(--primary-blue); }
.gasma-home .gasma-logo-text-footer { font-size: 1.2rem; font-weight: 700; margin-bottom: 15px; color: var(--white); }

/* Menu desktop */
.gasma-home .desktop-menu { display: none !important; }
.gasma-home .desktop-menu ul { display: flex; gap: 25px; align-items: center; }
.gasma-home .desktop-menu li { list-style: none; }
.gasma-home .desktop-menu a {
    font-weight: 500;
    color: var(--dark-gray);
    position: relative;
    padding: 5px 0;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.gasma-home .desktop-menu a:hover { color: var(--primary-blue); }
.gasma-home .desktop-menu > ul > li > a::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 0; height: 2px;
    background-color: var(--primary-blue);
    transition: width 0.3s ease;
}
.gasma-home .desktop-menu > ul > li > a:hover::after { width: 100%; }
.gasma-home .gasma-icon-chevron { flex-shrink: 0; }

/* Menu burger (bouton natif — on retire les styles par défaut du navigateur/thème) */
.gasma-home button.menu-toggle,
.gasma-home .menu-toggle {
    all: unset;
    display: flex !important;
    flex-direction: column;
    justify-content: space-between;
    align-items: stretch;
    width: 30px;
    height: 20px;
    cursor: pointer;
    flex-shrink: 0;
    box-sizing: border-box;
}
.gasma-home .menu-toggle span {
    display: block !important;
    height: 3px;
    width: 100%;
    background-color: var(--primary-blue) !important;
    border-radius: 2px;
    transition: var(--transition);
}

/* Menu mobile */
.gasma-home .mobile-menu {
    position: fixed;
    top: 80px; left: 0;
    width: 100%;
    height: calc(100vh - 80px);
    background-color: var(--white);
    padding: 30px 20px;
    transform: translateX(100%);
    transition: transform 0.4s ease;
    overflow-y: auto;
    z-index: 999;
}
.gasma-home .mobile-menu.active { transform: translateX(0); }
.gasma-home .mobile-menu ul { display: flex; flex-direction: column; gap: 20px; }
.gasma-home .mobile-menu a {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--dark-gray);
    padding: 10px 0;
    display: block;
    border-bottom: 1px solid #eee;
}
.gasma-home .mobile-menu a:hover { color: var(--primary-blue); }

/* Section Hero */
.gasma-home .hero { margin-top: 80px; position: relative; overflow: hidden; }
.gasma-home .hero-image {
    width: 100%;
    height: 70vh;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 40px;
}
.gasma-home .hero-button { margin-top: 20px; }

/* Section présentation */
.gasma-home .presentation {
    padding: 80px 20px;
    background-color: var(--light-gray);
    text-align: center;
}
.gasma-home .presentation h1 {
    font-size: 2.2rem;
    color: var(--primary-blue);
    margin-bottom: 20px;
    line-height: 1.3;
}
.gasma-home .presentation p {
    font-size: 1.2rem;
    color: var(--medium-gray);
    max-width: 800px;
    margin: 0 auto;
}

/* Section offres */
.gasma-home .offers { padding: 80px 20px; }
.gasma-home .offers-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    margin-top: 40px;
}
.gasma-home .offer-card {
    background-color: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}
.gasma-home .offer-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}
.gasma-home .offer-image {
    height: 250px;
    width: 100%;
    background-size: cover;
    background-position: center;
    background-color: var(--light-gray);
}
.gasma-home .offer-content { padding: 25px; }
.gasma-home .offer-content h3 { font-size: 1.5rem; margin-bottom: 15px; color: var(--primary-blue); }
.gasma-home .offer-content p { color: var(--medium-gray); margin-bottom: 20px; }

/* Section extraits vidéo (nouveau) */
.gasma-home .video-extracts { padding: 0 20px 80px; }
.gasma-home .video-extracts-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-top: 40px;
}
.gasma-home .video-extract-card {
    background-color: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}
.gasma-home .video-extract-card:hover { transform: translateY(-6px); box-shadow: 0 12px 26px rgba(0,0,0,.1); }
.gasma-home .video-extract-wrapper { position: relative; width: 100%; padding-top: 56.25%; background: #000; }
.gasma-home .video-extract-wrapper iframe,
.gasma-home .video-extract-wrapper video {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0;
}
.gasma-home .video-extract-content { padding: 20px 22px; }
.gasma-home .video-extract-content h3 { font-size: 1.25rem; margin-bottom: 8px; color: var(--primary-blue); }
.gasma-home .video-extract-content p { color: var(--medium-gray); }
.gasma-home .video-extract-tag {
    display: inline-block;
    background: var(--light-blue);
    color: var(--primary-blue);
    font-size: .8rem;
    font-weight: 600;
    padding: 3px 12px;
    border-radius: 20px;
    margin-bottom: 10px;
}

/* Footer */
.gasma-home footer {
    background-color: var(--dark-gray);
    color: var(--white);
    padding: 60px 20px 30px;
}
.gasma-home .footer-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    margin-bottom: 40px;
}
.gasma-home .footer-logo img { height: 50px; width: auto; margin-bottom: 20px; }
.gasma-home .footer-menu ul { display: flex; flex-direction: column; gap: 15px; }
.gasma-home .footer-menu a:hover { color: #bbbbbb; }
.gasma-home .social-section h3 { font-size: 1.2rem; margin-bottom: 20px; }
.gasma-home .social-icons { display: flex; gap: 20px; }
.gasma-home .social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px; height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: var(--transition);
    color: var(--white);
}
.gasma-home .social-icons a svg { width: 18px; height: 18px; display: block; }
.gasma-home .social-icons a:hover { background-color: var(--primary-blue); transform: translateY(-3px); }
.gasma-home .copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #aaaaaa;
    font-size: 0.9rem;
}

/* Menu déroulant (desktop) */
.gasma-home .has-submenu { position: relative; }
.gasma-home .submenu {
    position: absolute;
    top: 100%; left: 0;
    background-color: var(--white);
    min-width: 220px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    padding: 15px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    z-index: 100;
}
.gasma-home .has-submenu:hover .submenu { opacity: 1; visibility: visible; transform: translateY(0); }
.gasma-home .submenu li { padding: 0; }
.gasma-home .submenu a { display: block; padding: 10px 20px; color: var(--dark-gray); transition: var(--transition); }
.gasma-home .submenu a:hover { background-color: var(--light-blue); color: var(--primary-blue); }

.gasma-home .sub-submenu {
    position: absolute;
    left: 100%; top: 0;
    background-color: var(--white);
    min-width: 200px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    padding: 15px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateX(10px);
    transition: var(--transition);
}
.gasma-home .has-sub-submenu:hover .sub-submenu { opacity: 1; visibility: visible; transform: translateX(0); }

/* Menu mobile avec sous-menus */
.gasma-home .mobile-submenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    padding-left: 20px;
}
.gasma-home .mobile-submenu.active { max-height: 400px; }
.gasma-home .mobile-menu-arrow { display: inline-block; margin-left: 5px; transition: transform 0.3s ease; vertical-align: middle; flex-shrink: 0; }
.gasma-home .mobile-menu-arrow.active { transform: rotate(180deg); }
.gasma-home .mobile-menu-item > a { display: flex; align-items: center; justify-content: space-between; }

/* En-tête de page interne (pages « Gasma — Page intérieure ») */
.gasma-home .page-header {
    height: 40vh;
    margin-top: 80px;
    background-size: cover;
    background-position: center;
    background-color: var(--primary-blue);
    background-image: linear-gradient(135deg, var(--primary-blue), var(--primary-blue-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    position: relative;
}
.gasma-home .page-header::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.35);
}
.gasma-home .page-header h1 { font-size: 2.8rem; position: relative; z-index: 1; padding: 0 20px; }

/* Contenu des pages intérieures (cohérent avec le reste du design) */
.gasma-home .page-content { padding: 60px 20px 80px; max-width: 900px; margin: 0 auto; }
.gasma-home .page-content h2 { font-size: 1.8rem; color: var(--primary-blue); margin: 30px 0 15px; }
.gasma-home .page-content h3 { font-size: 1.4rem; color: var(--primary-blue); margin: 25px 0 12px; }
.gasma-home .page-content p { margin-bottom: 15px; color: var(--dark-gray); }
.gasma-home .page-content ul, .gasma-home .page-content ol { margin: 0 0 15px 25px; }
.gasma-home .page-content li { margin-bottom: 8px; }
.gasma-home .page-content img { max-width: 100%; height: auto; border-radius: 8px; margin: 15px 0; }
.gasma-home .page-content a:not(.btn) { color: var(--primary-blue); text-decoration: underline; }

@media (min-width: 768px) {
    .gasma-home .menu-toggle { display: none !important; }
    .gasma-home .desktop-menu { display: block !important; }
    .gasma-home .mobile-menu { display: none; }
    .gasma-home .offers-grid { grid-template-columns: repeat(3, 1fr); }
    .gasma-home .video-extracts-grid { grid-template-columns: repeat(3, 1fr); }
    .gasma-home .footer-content { grid-template-columns: repeat(3, 1fr); }
    .gasma-home .footer-menu ul { flex-direction: row; flex-wrap: wrap; gap: 20px; }
    .gasma-home .section-title { font-size: 2.5rem; }
    .gasma-home .presentation h1 { font-size: 2.5rem; }
}

@media (min-width: 992px) {
    .gasma-home .hero-image { height: 80vh; }
    .gasma-home .page-header { height: 50vh; }
}
