
/* ============================================================
   FOND DÉGRADÉ — #7b89e0 (haut-gauche) → #c59ede (bas-droite)
   Utilisation : class="section-gradient" sur une <section>
   Alternance  : class="section-creme"   sur l'autre <section>
   ============================================================ */

.section-gradient {
    background: linear-gradient(135deg, #7b89e0 0%, #c59ede 100%);
    /* Léger bruit de texture pour un rendu plus riche */
    background-image:
        linear-gradient(135deg, #7b89e0 0%, #c59ede 100%);
    position: relative;
    overflow: hidden;
}

/* Halo lumineux subtil en haut-gauche */
.section-gradient::before {
    content: '';
    position: absolute;
    top: -80px;
    left: -80px;
    width: 340px;
    height: 340px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,0.18) 0%, transparent 70%);
    pointer-events: none;
}

/* Halo plus doux en bas-droite */
.section-gradient::after {
    content: '';
    position: absolute;
    bottom: -60px;
    right: -60px;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,0.12) 0%, transparent 70%);
    pointer-events: none;
}

/* Lisibilité : texte blanc sur le fond coloré */
.section-gradient,
.section-gradient h1,
.section-gradient h2,
.section-gradient h3,
.section-gradient h4,
.section-gradient p,
.section-gradient li,
.section-gradient address,
.section-gradient strong {
    color: #ffffff;
}

.section-gradient a {
    color: #ffffff;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.section-gradient a:hover {
    color: rgba(255, 255, 255, 0.75);
}

/* ============================================================
   FOND BLANC CRÈME — sections alternées
   Utilisation : class="section-creme"
   ============================================================ */

.section-creme {
    background-color: #f8f5f0;
}

/* ============================================================
   UTILITAIRES COMMUNS AUX DEUX TYPES DE SECTIONS
   ============================================================ */

.section-gradient,
.section-creme {
    padding-top: 70px;
    padding-bottom: 70px;
}

/* Séparateur doux entre sections */
.section-gradient + .section-creme,
.section-creme   + .section-gradient {
    border-top: none;
}

/* ============================================================
   MENU — taille de police
   ============================================================ */

#mainMenu nav > ul > li > a,
#mainMenu nav > ul > li > span {
    font-size: 14px !important;
    line-height: normal !important;
    padding-left: 6px !important;
    padding-right: 6px !important;
}

@media (max-width: 1199px) and (min-width: 992px) {
    #mainMenu nav > ul > li > a,
    #mainMenu nav > ul > li > span {
        font-size: 10px !important;
        padding-left: 4px !important;
        padding-right: 4px !important;
    }

    #mainMenu nav > ul > li > a.lienPaiement,
    #mainMenu nav > ul > li > a.lienPaiement:visited {
        font-size: 11px !important;
        padding: 6px 12px !important;
    }

    #mainMenu nav > ul > li .dropdown-menu > li > a,
    #mainMenu nav > ul > li .dropdown-menu > li > span {
        font-size: 10px !important;
    }
}

/* Pousse le bouton paiement à l'extrême droite */
#mainMenu nav > ul {
    align-items: center;
}

#mainMenu nav > ul > li:has(a.lienPaiement) {
    margin-left: auto !important;
}

#mainMenu nav > ul > li > a.lienPaiement,
#mainMenu nav > ul > li > a.lienPaiement:visited {
    background: linear-gradient(135deg, #7b89e0 0%, #c59ede 100%) !important;
    color: #ffffff !important;
    border-radius: 50px !important;
    padding: 8px 20px !important;
    font-size: 13px !important;
    transition: opacity 0.2s ease, transform 0.2s ease !important;
}

#mainMenu nav > ul > li > a.lienPaiement:hover {
    opacity: 0.85 !important;
    transform: translateY(-1px) !important;
    color: #ffffff !important;
}

/* ============================================================
   SECTION DEMANDE EN LIGNE
   ============================================================ */

.section-demande {
    position: relative;
    padding-top: 70px;
    padding-bottom: 70px;
    overflow: hidden;
}

.section-demande-bg {
    position: absolute;
    inset: 0;
    background:
        url('../img/demande-en-ligne.jpeg') center center / cover no-repeat;
    z-index: 1;
    background-attachment: fixed;
}

.demande-form {
    background: rgba(255, 255, 255, 0.07);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    padding: 2.5rem;
}

#paiement .demande-form {
    background: rgba(0, 0, 0, 0.45);
}

.demande-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
}

@media (max-width: 576px) {
    .demande-row {
        grid-template-columns: 1fr;
    }
}

.demande-field {
    display: flex;
    flex-direction: column;
    margin-bottom: 1.2rem;
}

.demande-field label {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.4rem;
}

.demande-field label span {
    color: #c59ede;
}

.demande-field input,
.demande-field select,
.demande-field textarea {
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 8px !important;
    color: #ffffff !important;
    padding: 0.75rem 1rem !important;
    font-family: 'DM Sans', sans-serif !important;
    font-size: 1.1rem !important;
    transition: border-color 0.25s ease, background 0.25s ease;
    outline: none;
}

.demande-field input::placeholder,
.demande-field textarea::placeholder {
    color: rgba(255, 255, 255, 0.4) !important;
}

.demande-field select option {
    background: #7b89e0;
    color: #ffffff;
}

.demande-field input:focus,
.demande-field select:focus,
.demande-field textarea:focus {
    border-color: #c59ede !important;
    background: rgba(255, 255, 255, 0.15) !important;
}

/* Pièce jointe */
.demande-file {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.demande-file input[type="file"] {
    display: none;
}

.demande-file label {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 8px;
    padding: 0.6rem 1.2rem;
    cursor: pointer;
    color: #ffffff !important;
    font-size: 0.9rem !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    transition: background 0.25s ease;
    margin-bottom: 0;
}

.demande-file label:hover {
    background: rgba(255, 255, 255, 0.2);
}

.demande-file span {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
}

/* Messages succès / erreur */
.demande-alert {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    padding: 1rem 1.2rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.demande-alert i {
    font-size: 1.2rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.demande-alert ul {
    margin: 0;
    padding-left: 1rem;
}

.demande-alert-success {
    background: rgba(72, 199, 142, 0.2);
    border: 1px solid rgba(72, 199, 142, 0.5);
    color: #ffffff;
}

.demande-alert-error {
    background: rgba(255, 90, 90, 0.2);
    border: 1px solid rgba(255, 90, 90, 0.5);
    color: #ffffff;
}

/* Bouton submit */
.demande-btn {
    background: linear-gradient(135deg, #7b89e0 0%, #c59ede 100%);
    border: none;
    border-radius: 50px;
    color: #ffffff;
    font-family: 'DM Sans', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    padding: 0.85rem 3rem;
    cursor: pointer;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.demande-btn:hover {
    opacity: 0.88;
    transform: translateY(-2px);
}

.demande-btn:disabled {
    background: #c0c0c8;
    cursor: not-allowed;
    opacity: 0.55;
}

.demande-btn:disabled:hover {
    opacity: 0.55;
    transform: none;
}

/* ============================================================
   SECTION CONTACT — cartes office
   ============================================================ */

/* KALIACT */
.kaliact-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.kaliact-logo {
    width: 220px;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.85rem;
    opacity: 0.7;
}

.kaliact-text {
    max-width: 560px;
    font-size: 1rem;
    color: #444;
    text-align: center;
    margin: 0;
}

/* Boutons d'action GPE */
.gpe-action-btn {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #7b89e0 0%, #c59ede 100%);
    color: #ffffff !important;
    text-decoration: none !important;
    border-radius: 16px;
    padding: 1.4rem 2.5rem;
    font-family: 'DM Sans', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    transition: opacity 0.25s ease, transform 0.25s ease;
    min-width: 180px;
}

.gpe-action-btn i {
    font-size: 2rem;
}

.gpe-action-btn:hover {
    opacity: 0.85;
    transform: translateY(-3px);
    color: #ffffff !important;
}

.gpe-action-btn--disabled {
    opacity: 0.45;
    filter: grayscale(60%);
    cursor: not-allowed;
    pointer-events: none;
}

.office-card {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(123, 137, 224, 0.12);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: #ffffff;
    height: 100%;
}

.office-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 36px rgba(123, 137, 224, 0.22);
}

.office-photo {
    width: 100%;
    height: 220px;
    overflow: hidden;
}

.office-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.office-card:hover .office-photo img {
    transform: scale(1.04);
}

.office-body {
    padding: 1.5rem;
}

.office-name {
    font-size: 1.2rem;
    font-weight: 400;
    margin-bottom: 1rem;
    color: #3c4043;
    border-bottom: 2px solid;
    border-image: linear-gradient(135deg, #7b89e0, #c59ede) 1;
    padding-bottom: 0.6rem;
}

.office-info {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.office-info li {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    font-size: 1.05rem;
    color: #555;
}

.office-map {
    height: 220px;
    width: 100%;
    border-top: 1px solid rgba(123, 137, 224, 0.15);
}

.office-info li i {
    color: #8891de;
    width: 16px;
    flex-shrink: 0;
    margin-top: 3px;
}

.office-info a {
    color: #8891de;
    text-decoration: none;
}

.office-info a:hover {
    text-decoration: underline;
}

/* ============================================================
   PAIEMENT — bloc 3D Secure
   ============================================================ */

.paiement-3ds {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    padding: 1rem 1.2rem;
    flex-wrap: wrap;
}

.paiement-3ds-logos {
    display: flex;
    gap: 0.6rem;
    align-items: center;
    flex-shrink: 0;
}

.paiement-3ds-logos img {
    height: 60px;
    width: auto;
    border-radius: 4px;
}

.paiement-3ds p {
    color: rgba(255, 255, 255, 0.7) !important;
    font-size: 0.85rem !important;
    margin: 0 !important;
}

/* ============================================================
   BULLES COMMISSAIRES — section présentation
   ============================================================ */

.commissaire-bubble {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none !important;
    gap: 1.2rem;
}

.commissaire-photo {
    position: relative;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(123, 137, 224, 0.3);
    transition: box-shadow 0.35s ease, transform 0.35s ease;
}

.commissaire-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.commissaire-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(123, 137, 224, 0.85) 0%, rgba(197, 158, 222, 0.85) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.35s ease;
}

.commissaire-overlay i {
    font-size: 2.5rem;
    color: #ffffff;
}

.commissaire-bubble:hover .commissaire-photo {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(123, 137, 224, 0.45);
}

.commissaire-bubble:hover .commissaire-photo img {
    transform: scale(1.06);
}

.commissaire-bubble:hover .commissaire-overlay {
    opacity: 1;
}

.commissaire-info {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.commissaire-info strong {
    font-size: 1rem;
    color: #3c4043;
    letter-spacing: 0.03em;
}

.commissaire-info span {
    font-size: 0.85rem;
    color: #8891de;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* ============================================================
   FOOTER — fond dégradé violet, texte blanc
   ============================================================ */

#footer .copyright-content {
    background: linear-gradient(135deg, #7b89e0 0%, #c59ede 100%) !important;
    color: #ffffff !important;
    height: 80px;
    padding: 0;
    display: flex;
    align-items: center;
}

#footer .copyright-content,
#footer .copyright-content p,
#footer .copyright-text {
    color: #ffffff !important;
}

#footer .copyright-content a {
    color: #ffffff !important;
    font-weight: 600 !important;
    text-decoration: none !important;
}

#footer .copyright-content a:hover {
    color: rgba(255, 255, 255, 0.75) !important;
    text-decoration: none !important;
}

/* ============================================================
   POLICE GLOBALE — Outfit (fine, sans-serif, moderne)
   ============================================================ */

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif !important;
    font-weight: 300 !important;
    letter-spacing: 0.05em;
}

body,
p, a, li, span, button, input, textarea, select, label,
address, td, th,
#mainMenu nav > ul > li > a,
#mainMenu nav > ul > li .dropdown-menu > li > a {
    font-family: 'DM Sans', sans-serif !important;
    font-weight: 300;
}

strong, b {
    font-weight: 600 !important;
}

/* ============================================================
   HERO SLIDER — contenu centré
   ============================================================ */

#slider .slide .container {
    align-self: flex-start !important;
    padding-top: 8vh !important;
    display: flex !important;
    flex-direction: column;
    align-items: center;
}

.hero-content {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 1.2rem;
}

.hero-cdj-logo {
    width: 360px;
    max-width: 80vw;
    filter: drop-shadow(0 4px 16px rgba(0,0,0,0.3));
}

.hero-subtitle {
    color: #ffffff !important;
    font-family: 'Montserrat', sans-serif !important;
    font-weight: 300 !important;
    font-size: 1.4rem !important;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin: 0 !important;
    text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.hero-btns {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 0.5rem;
    /* Neutralise l'animation Inspiro sur le conteneur — les enfants ont leur propre animation */
    opacity: 1 !important;
    animation: none !important;
}

.hero-logo-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 18px;
    padding: 1rem 1.6rem;
    text-decoration: none !important;
    transition: transform 0.3s ease, opacity 0.3s ease, background 0.3s ease;
}

.hero-logo-btn img {
    height: 90px;
    width: auto;
    filter: brightness(0) invert(1);
    display: block;
    drop-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.hero-logo-btn:hover {
    transform: translateY(-3px) !important;
    opacity: 0.8;
}

.hero-logo-btn.hero-logo-gpe img {
    height: 115px;
}

@keyframes heroSlideFromLeft {
    from { opacity: 0; transform: translateX(-350px); }
    to   { opacity: 1; transform: translateX(0); }
}

@keyframes heroSlideFromRight {
    from { opacity: 0; transform: translateX(350px); }
    to   { opacity: 1; transform: translateX(0); }
}

.hero-logo-from-left {
    animation: heroSlideFromLeft 1.4s cubic-bezier(0.22, 1, 0.36, 1) 1.8s both;
}

.hero-logo-from-right {
    animation: heroSlideFromRight 1.4s cubic-bezier(0.22, 1, 0.36, 1) 2.1s both;
}

/* ============================================================
   TITRE DE SECTION — .section-title
   Utilisation : <div class="section-title"><h2>Titre</h2></div>
   ============================================================ */

.section-title {
    text-align: center;
}

.section-title h2 {
    display: inline-block;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0;
    position: relative;
}

.section-title h2::after {
    content: '';
    display: block;
    margin: 0.5rem auto 0;
    width: 70%;
    height: 3px;
    border-radius: 2px;
    background: linear-gradient(135deg, #7b89e0 0%, #c59ede 100%);
}

/* Sur fond dégradé (section-gradient), le trait devient blanc semi-transparent */
.section-gradient .section-title h2::after {
    background: rgba(255, 255, 255, 0.5);
}

/* ============================================================
   SECTION MISSIONS — grille collée sans border-radius
   ============================================================ */

#missions-grid [class*="col-"] {
    padding: 0;
}

.mission-card {
    border-radius: 0 !important;
    border: 1px solid rgba(0, 0, 0, 0.03);
    margin: -1px 0 0 -1px;
    overflow: hidden;
    transition: background 0.35s ease;
    height: 100%;
    min-height: 25vh;
    cursor: pointer;
}

.mission-card-content {
    transition: transform 0.35s ease;
}

.mission-icon {
    display: block;
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #7b89e0;
    transition: color 0.35s ease;
}

.mission-card:hover .mission-icon,
.mission-card.active .mission-icon {
    color: #ffffff;
}

.mission-card:hover,
.mission-card.active {
    background: linear-gradient(135deg, #7b89e0 0%, #c59ede 100%);
    position: relative;
    z-index: 1;
}

.mission-card:hover .mission-card-content {
    transform: scale(1.05);
}

.mission-card:hover h4,
.mission-card:hover p,
.mission-card:hover .text-muted,
.mission-card:hover .toggle-text,
.mission-card.active h4,
.mission-card.active p,
.mission-card.active .text-muted,
.mission-card.active .toggle-text {
    color: #ffffff !important;
}

/* Panneau déroulant sous la grille */
#mission-detail {
    background: linear-gradient(135deg, #6b79d0 0%, #b58ed0 100%);
    padding: 1.5rem 2rem;
    animation: missionSlideDown 0.3s ease;
}

#mission-detail #mission-detail-text {
    color: #ffffff;
    font-size: 16px;
}

@keyframes missionSlideDown {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}
