/* ═══════════════════════════════════════════════════════════
   Gasma Cabinet — Styles Front-end v2
   Design professionnel, mise en page soignée
   ═══════════════════════════════════════════════════════════ */

:root {
    --gc-blue:       #1a5f9e;
    --gc-blue-dark:  #0f4c81;
    --gc-blue-light: #e8f0fe;
    --gc-accent:     #f0a500;
    --gc-white:      #ffffff;
    --gc-gray-light: #f7f9fc;
    --gc-gray:       #eef1f7;
    --gc-text:       #2d3748;
    --gc-muted:      #718096;
    --gc-radius:     10px;
    --gc-shadow:     0 4px 20px rgba(26,95,158,.10);
    --gc-shadow-h:   0 10px 35px rgba(26,95,158,.18);
    --gc-transition: all .3s ease;
}

/* ── Reset minimal ── */
.gasma-section *,
.gasma-section *::before,
.gasma-section *::after { box-sizing: border-box; }
.gasma-section img { max-width: 100%; height: auto; display: block; }

/* ══════════════════════════════════════════════════════════
   DESCRIPTIF DE PAGE (bannière + intro)
   ══════════════════════════════════════════════════════════ */

.gasma-page-banner {
    position: relative;
    width: 100%;
    max-height: 400px;
    overflow: hidden;
    border-radius: 0 0 var(--gc-radius) var(--gc-radius);
    margin-bottom: 40px;
}
.gasma-page-banner img {
    width: 100%;
    object-fit: cover;
    max-height: 400px;
    display: block;
}
.gasma-page-banner::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 40%, rgba(15,40,80,.55));
    pointer-events: none;
}

.gasma-page-intro {
    max-width: 820px;
    margin: 0 auto 50px;
    padding: 0 20px;
    text-align: center;
}
.gasma-page-intro h1 {
    font-size: clamp(1.6rem, 4vw, 2.5rem);
    color: var(--gc-blue);
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1.2;
}
.gasma-page-intro .gasma-intro-text {
    color: var(--gc-muted);
    font-size: 1.1rem;
    line-height: 1.75;
}
.gasma-page-intro .gasma-intro-text p { margin-bottom: 12px; }

/* ══════════════════════════════════════════════════════════
   SECTION ITEM (formation, coaching, événement)
   ══════════════════════════════════════════════════════════ */

.gasma-section { max-width: 1100px; margin: 0 auto; padding: 0 20px 60px; }

.gasma-section-item {
    background: var(--gc-white);
    border-radius: var(--gc-radius);
    box-shadow: var(--gc-shadow);
    overflow: hidden;
    margin-bottom: 50px;
    transition: var(--gc-transition);
}
.gasma-section-item:hover { box-shadow: var(--gc-shadow-h); }

/* Layout : image à gauche, contenu à droite (desktop) */
.gasma-item-layout {
    display: grid;
    grid-template-columns: 1fr;
}
@media (min-width: 768px) {
    .gasma-item-layout { grid-template-columns: 380px 1fr; }
}

.gasma-item-visual {
    position: relative;
    overflow: hidden;
    min-height: 280px;
    background: var(--gc-blue-light);
}
.gasma-item-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}
.gasma-section-item:hover .gasma-item-visual img { transform: scale(1.04); }

.gasma-item-visual-placeholder {
    width: 100%;
    height: 100%;
    min-height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--gc-blue-light), #d0e4f8);
    font-size: 4rem;
    color: var(--gc-blue);
}

.gasma-item-body {
    padding: 35px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
@media (max-width: 767px) { .gasma-item-body { padding: 25px 22px; } }

.gasma-item-type-badge {
    display: inline-block;
    background: var(--gc-blue-light);
    color: var(--gc-blue);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 12px;
}

.gasma-item-title {
    font-size: clamp(1.3rem, 3vw, 1.7rem);
    color: var(--gc-text);
    font-weight: 700;
    margin: 0 0 18px;
    line-height: 1.3;
}

/* Badges de métadonnées */
.gasma-metas {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}
.gasma-meta-pill {
    display: flex;
    align-items: center;
    gap: 5px;
    background: var(--gc-gray-light);
    border: 1px solid var(--gc-gray);
    color: var(--gc-text);
    padding: 5px 13px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
}
.gasma-meta-pill.highlight {
    background: var(--gc-blue);
    color: #fff;
    border-color: var(--gc-blue);
    font-weight: 700;
}

.gasma-item-desc {
    color: var(--gc-muted);
    font-size: 0.97rem;
    line-height: 1.7;
    margin-bottom: 22px;
}
.gasma-item-desc p { margin-bottom: 10px; }
.gasma-item-desc ul { padding-left: 20px; }
.gasma-item-desc li { margin-bottom: 6px; }

/* Objectifs + prérequis */
.gasma-objectifs {
    background: var(--gc-gray-light);
    border-left: 4px solid var(--gc-blue);
    border-radius: 0 8px 8px 0;
    padding: 14px 18px;
    margin-bottom: 18px;
    font-size: 0.92rem;
}
.gasma-objectifs strong { color: var(--gc-blue); display: block; margin-bottom: 4px; }

/* ══════════════════════════════════════════════════════════
   GRILLE CARTES (ebooks, vidéos)
   ══════════════════════════════════════════════════════════ */

.gasma-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 28px;
}

.gasma-card {
    background: var(--gc-white);
    border-radius: var(--gc-radius);
    box-shadow: var(--gc-shadow);
    overflow: hidden;
    transition: var(--gc-transition);
    display: flex;
    flex-direction: column;
}
.gasma-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--gc-shadow-h);
}
.gasma-card-thumb {
    position: relative;
    overflow: hidden;
    background: var(--gc-blue-light);
}
.gasma-card-thumb img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform .4s ease;
}
.gasma-card:hover .gasma-card-thumb img { transform: scale(1.06); }
.gasma-card-placeholder {
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--gc-blue);
    background: linear-gradient(135deg, var(--gc-blue-light), #d0e4f8);
}
.gasma-card-body {
    padding: 22px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.gasma-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--gc-text);
    margin: 0 0 8px;
    line-height: 1.3;
}
.gasma-card-desc {
    color: var(--gc-muted);
    font-size: 0.9rem;
    line-height: 1.6;
    flex: 1;
    margin-bottom: 15px;
}
.gasma-card-tag {
    display: inline-block;
    background: var(--gc-blue-light);
    color: var(--gc-blue);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    margin-bottom: 10px;
}
.gasma-prix {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--gc-blue);
    margin-bottom: 14px;
}

/* ══════════════════════════════════════════════════════════
   VIDÉO WRAPPER
   ══════════════════════════════════════════════════════════ */

.gasma-video-wrapper {
    position: relative;
    padding-top: 56.25%;
    background: #000;
    border-radius: var(--gc-radius) var(--gc-radius) 0 0;
}
.gasma-video-wrapper iframe,
.gasma-video-wrapper video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* ══════════════════════════════════════════════════════════
   RÉSERVATION D'APPEL
   ══════════════════════════════════════════════════════════ */

.gasma-appels-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 28px;
}
.gasma-appel-card {
    background: var(--gc-white);
    border-radius: var(--gc-radius);
    box-shadow: var(--gc-shadow);
    padding: 40px 30px;
    text-align: center;
    border-top: 5px solid var(--gc-blue);
    transition: var(--gc-transition);
}
.gasma-appel-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--gc-shadow-h);
}
.gasma-appel-card h3 {
    font-size: 1.25rem;
    color: var(--gc-text);
    margin-bottom: 12px;
}
.gasma-appel-card .gasma-meta-pill { justify-content: center; margin: 0 auto 16px; display: inline-flex; }
.gasma-appel-card p { color: var(--gc-muted); margin-bottom: 20px; }

/* ══════════════════════════════════════════════════════════
   BOUTON
   ══════════════════════════════════════════════════════════ */

.gasma-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: var(--gc-blue);
    color: #fff !important;
    text-decoration: none !important;
    padding: 11px 26px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--gc-transition);
    border: none;
    cursor: pointer;
    line-height: 1.4;
}
.gasma-btn:hover {
    background: var(--gc-blue-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(26,95,158,.3);
}
.gasma-btn.outline {
    background: transparent;
    border: 2px solid var(--gc-blue);
    color: var(--gc-blue) !important;
}
.gasma-btn.outline:hover {
    background: var(--gc-blue);
    color: #fff !important;
}

/* ══════════════════════════════════════════════════════════
   FORMULAIRE D'INSCRIPTION
   ══════════════════════════════════════════════════════════ */

.gasma-form-section {
    background: var(--gc-gray-light);
    border: 2px solid var(--gc-gray);
    border-radius: var(--gc-radius);
    padding: 40px;
    margin-top: 35px;
}
.gasma-form-section::before {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--gc-blue);
    border-radius: 2px;
    margin-bottom: 24px;
}

.gasma-form-inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: 35px;
    align-items: start;
}
@media (min-width: 700px) {
    .gasma-form-inner.with-image { grid-template-columns: 220px 1fr; }
}

.gasma-form-illustration img {
    width: 100%;
    border-radius: var(--gc-radius);
    box-shadow: var(--gc-shadow);
}

.gasma-form-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--gc-text);
    margin: 0 0 22px;
}
.gasma-form-subtitle {
    color: var(--gc-muted);
    font-size: 0.92rem;
    margin-bottom: 22px;
}

.gasma-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 20px;
}
@media (max-width: 560px) { .gasma-form-grid { grid-template-columns: 1fr; } }
.gasma-full { grid-column: 1 / -1; }

.gasma-form-field label {
    display: block;
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--gc-text);
    margin-bottom: 6px;
}
.gasma-form-field input,
.gasma-form-field select,
.gasma-form-field textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid #d0d9ee;
    border-radius: 7px;
    font-size: 0.95rem;
    font-family: inherit;
    color: var(--gc-text);
    background: #fff;
    transition: border-color .2s, box-shadow .2s;
    -webkit-appearance: none;
    appearance: none;
}
.gasma-form-field select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L2 5h12z' fill='%231a5f9e'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 14px;
    padding-right: 36px;
}
.gasma-form-field input:focus,
.gasma-form-field select:focus,
.gasma-form-field textarea:focus {
    border-color: var(--gc-blue);
    box-shadow: 0 0 0 3px rgba(26,95,158,.12);
    outline: none;
}
.gasma-form-field textarea { resize: vertical; min-height: 100px; }

.gasma-btn-submit {
    width: 100%;
    padding: 14px 20px;
    font-size: 1rem;
    justify-content: center;
    letter-spacing: .02em;
}

.gasma-form-success,
.gasma-form-error {
    padding: 16px 20px;
    border-radius: 8px;
    font-weight: 600;
    margin-bottom: 20px;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 10px;
}
.gasma-form-success {
    background: #edfbf3;
    border: 1.5px solid #38c26a;
    color: #1a6e3b;
}
.gasma-form-success::before { content: '✅'; font-size: 1.2rem; }
.gasma-form-error {
    background: #fff0f0;
    border: 1.5px solid #e05555;
    color: #b22020;
}
.gasma-form-error::before { content: '⚠️'; font-size: 1.2rem; }

/* Message vide */
.gasma-vide {
    text-align: center;
    color: var(--gc-muted);
    padding: 60px 20px;
    font-style: italic;
    font-size: 1.05rem;
}
