/*
Theme Name:Cda theme
Theme URI: http://cda.test/
Author:ATD
Description:thème wordpress sur messure pour CDA
Version:1.0
*/


@font-face {
    font-family: 'Good Times';
    src: url('assets/fonts/good_times/Good\ Times\ Rg.otf') format('woff2');
    font-weight: 100 900;
}


@font-face {
    font-family: 'Sora';
    src: url('assets/fonts/sora/Sora-VariableFont_wght.ttf') format('truetype');
    font-weight: 100 900;
}

@font-face {
    font-family: 'Outfit';
    src: url('assets/fonts/outfit/Outfit-VariableFont_wght.ttf') format('truetype');
    font-weight: 100 900;
}


/* =================================
   VARIABLES CSS
================================= */
:root {
    /* Couleurs principales */
    --primary-blue: #235292;
    --primary-yellow: #FFAA17;
    --primary-black: #010915;
    --primary-green: #9CC775;

    /* Couleurs de texte */
    --text-dark: #011423;
    --text-white: #FFFFFF;
    --text-gray: #8C8F94;
    --subtitle-color: #292929;
    --paragraph-color: #8C8F94;

    /* Couleurs de fond */
    --bg-color: #010915;
    --bg-gray: #e9ecef;
    --white: #ffffff;
    --card-bg: #0a111a;
    --btn-round-color: #6A6F781A;

    /* Liens */
    --link-blue: #0065B0;
    --link-hover: #5F8A39;
    --anable-link: #667085;

    /* Bordures */
    --border-color: #e0e0e0;
    --border-gray: #ddd;

    /* Espacements */
    --section-margin: 50px;

    /* Typographie */
    --font-primary: 'Sora', sans-serif;
    --font-secondary: 'Good Times', sans-serif;
    --font-tertiary: 'Outfit', sans-serif;


    /* Border radius */
    --radius-sm: 5px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-round: 20px;
}

/* =================================
   RESET & BASE
================================= */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-dark);
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

a {
    text-decoration: none;
    color: var(--link-blue);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--link-hover);
}

img {
    max-width: 100%;
    height: auto;
}


/* Masquer le lien "Edit Form" de Forminator */
.forminator-edit-form-link,
.forminator-form-footer,
a[href*="forminator"] {
    display: none !important;
}

/* Reusable Section Label (Text + Line) */
.cda-section-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    font-family: var(--font-primary);
    font-weight: 700;
    color: var(--text-gray);
    margin-bottom: 15px;
    font-size: 16px;
    letter-spacing: 0.5px;
}

.cda-section-label-left {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 15px;
    font-family: var(--font-primary);
    font-weight: 700;
    color: var(--text-gray);
    margin-bottom: 15px;
    font-size: 16px;
    letter-spacing: 0.5px;
}

.cda-section-label-left::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: #FFAA17;
}

.cda-section-label::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: #FFAA17;
}


/* =================================
   CONTAINERS
================================= */
.container {
    max-width: 100%;
    margin: 0 100px;
    padding: 0;
}

.container-lg {
    max-width: 100%;
    margin: 0 50px;
    padding: 0 100px;
}

.container-fluid {
    width: 100%;
    padding: 0 var(--section-margin);
}

.content {
    margin: var(--section-margin) 10rem;
}

/* =================================
   TYPOGRAPHIE - TITRES
================================= */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-primary);
    color: var(--white);
    line-height: 1.2;
    margin-top: 0;
}

/* Titre H1 - Bannière */
h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* Titre H2 - Sections */
h2 {
    font-size: clamp(1.75rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--subtitle-color);
}

/* Titre H3 - Sous-sections */
h3 {
    font-size: clamp(1.25rem, 3vw, 1.5rem);
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--subtitle-color);
}

/* =================================
   TYPOGRAPHIE - PARAGRAPHES
================================= */
p {
    font-size: 16px;
    line-height: 1.8;
    font-weight: 400;
    color: var(--paragraph-color);
}

.text-justify {
    text-align: justify;
}

.text-center {
    text-align: center;
}



.btn {
    padding: 15px 30px;
    font-family: 'Good Times', sans-serif;
    font-size: 14px;
    text-transform: uppercase;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    display: inline-block;
}

.btn-clear,
.btn-outline {
    background-color: transparent;
    color: var(--text-white);
    border: 1px solid var(--text-white);
}

.btn-clear:hover,
.btn-outline:hover {
    background-color: var(--text-white);
    color: var(--text-dark);
}

.btn-blue {
    background-color: var(--primary-blue);
    color: var(--text-white);
    border: 1px solid var(--primary-blue);
}

.btn-blue:hover {
    background-color: var(--link-hover);
    color: var(--text-white);
    border-color: var(--link-hover);
}

.btn-green,
.btn-primary {
    background-color: var(--primary-green);
    color: var(--text-dark);
}

.btn-green:hover,
.btn-primary:hover {
    background-color: var(--link-hover);
    color: var(--primary-black);
    border-color: var(--link-hover);
}

.section-title {
    font-family: 'Good Times', sans-serif;
    font-weight: 400;
    color: var(--text-white);
    margin-bottom: 40px;
    text-transform: uppercase;
    font-size: 36px;
    line-height: 1.2;
}

.section-subtitle {
    font-family: 'Sora', sans-serif;
    font-size: 14px;
    color: var(--text-gray);
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 15px;
}

.cta-line {
    width: 600px;
    height: 3px;
    background-color: var(--primary-green);
    margin: 0 auto 30px;
}

/* =================================
   PAGE HEADER (Global Reusable)
================================= */
.page-header {
    /* Background simulating the dark blue tech feel */
    background: linear-gradient(135deg, #0E2A47 0%, #010915 100%);
    padding: 60px 0;
    position: relative;
    overflow: hidden;
    margin-bottom: 0;
    /* Align with content */
}

/* Optional: Placeholder for pattern overlay */
.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle at 20% 50%, rgba(35, 82, 146, 0.2)),
        url('<?php echo get_template_directory_uri(); ?>./assets/images/banner-bg.png');
    background-size: cover;
    background-position: center;
    pointer-events: none;
}

.page-header h1 {
    font-family: 'Good Times', sans-serif;
    font-size: 48px;
    color: var(--text-white);
    text-transform: uppercase;
    margin-bottom: 20px;
    letter-spacing: 2px;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Sora', sans-serif;
    font-size: 14px;
    color: var(--text-gray);
}

.breadcrumb a {
    color: var(--text-gray);
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumb a:hover {
    color: var(--text-white);
}

.breadcrumb i {
    font-size: 12px;
}

.breadcrumb .current {
    color: var(--primary-green);
    font-weight: 600;
}


.cda-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    background-color: var(--text-dark);
    padding: 15px 20px;
    color: var(--white);
    font-family: var(--font-primary);
    font-size: 16px;
    font-weight: 400;
    outline: none;
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}


.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-white);
    opacity: 0.9;
}

.submit-btn {
    background-color: #9CC775;
    /* Light green from design */
    color: var(--primary-black);
    font-family: var(--font-secondary);
    font-weight: 700;
    text-transform: uppercase;
    border: none;
    padding: 15px 30px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s;
    align-self: flex-start;
    /* Or width: 100% depending on preference */
    width: 100%;
    /* Full width as per image looks likely */
}

.submit-btn:hover {
    background-color: var(--link-hover);
    color: var(--white);
}


/* Final Submit Button */
.btn-apply-submit {
    width: 100%;
    margin-top: 30px;
    background-color: #9cc775;
    color: var(--text-dark);
    font-family: "Good Times", sans-serif;
    font-size: 18px;
    font-weight: 700;
    padding: 20px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-apply-submit:hover {
    background-color: var(--link-hover);
    color: var(--text-dark);
}

.section-title {
    font-family: 'Good Times', sans-serif;
    font-weight: 400;
    color: var(--text-white);
    margin-bottom: 40px;
    text-transform: uppercase;
    font-size: 48px;
}

/* --- CTA BANNER --- */
.cta-banner-section {
    position: relative;
    padding: 0;
    height: 600px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Background Modifiers */
.cta-banner-section,
.cta-bg-default {
    background-image: url('assets/images/bu.png');
}

.cta-bg-services {
    background-image: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2)), url('assets/images/montagne.png');
}

.cta-bg-join {
    background-image: linear-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.1)), url('assets/images/join-us-footer.png');
    background-position: top;
}


.cta-banner-overlay {
    background: rgba(2, 8, 16, 0.85);
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.cta-banner-overlay-left {
    background: linear-gradient(90deg, rgba(2, 8, 16, 0.95) 0%, rgba(2, 8, 16, 0.85) 45%, rgba(2, 8, 16, 0.1) 100%);
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.cta-banner-inner {
    margin: 0 auto;
    padding: 0 100px;
    box-sizing: border-box;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}


.cta-banner-inner-left {
    margin: 0 auto;
    padding: 0 100px;
    box-sizing: border-box;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    text-align: left;
}

.green-divider {
    width: 900px;
    height: 4px;
    background: var(--primary-green);
    margin: 0 auto 20px;
}

.green-divider-left {
    width: 600px;
    height: 4px;
    background: var(--primary-green);
    margin-bottom: 20px;
}

.cta-title {
    font-family: var(--font-secondary);
    font-size: 48px;
    color: #fff;
    margin-bottom: 20px;
}

.cta-text {
    max-width: 800px;
    color: var(--text-gray);
    font-family: var(--font-primary);
    font-size: 16px;
    margin-bottom: 30px;
}

.btn-primary {
    background: var(--primary-green);
    color: var(--bg-color);
    font-family: var(--font-secondary);
    padding: 16px 24px;
    text-decoration: none;
    font-weight: 700;
    display: inline-block;
    text-transform: uppercase;
}

/* ===================================
   SERVICE CARD COMPONENT STYLES
=================================== */

/* Default Variant (service-article-card) */
.service-article-card {
    position: relative;
    border: 1px solid #9CC775;
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.3s ease;
    background-color: transparent;
    min-height: 350px;
}

.service-article-card:hover {
    transform: translateY(-5px);
    color: var(--text-dark);
    background-color: var(--primary-green);
}

.service-icon-wrapper {
    margin-bottom: 25px;
    width: 60px;
    height: 60px;
}

.service-icon-img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.service-fallback-icon {
    font-size: 48px;
    color: var(--primary-blue);
}

.service-card-title {
    font-family: 'Good Times', sans-serif;
    font-size: 20px;
    color: var(--text-white);
    margin-bottom: 20px;
    text-transform: uppercase;
    font-weight: bold;
    line-height: 1.3;
}


.service-card-excerpt {
    font-family: 'Sora', sans-serif;
    font-size: 14px;
    color: var(--text-gray, #ccc);
    line-height: 1.6;
    margin-bottom: 40px;
    flex-grow: 1;
}

.service-card-excerpt p {
    margin: 0;
}

.service-card-link {
    position: absolute;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    background-color: var(--btn-round-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #A7AAAF;
    text-decoration: none;
    transition: all 0.3s ease;
}

.service-card-link i {
    transform: rotate(-45deg);
    transition: transform 0.3s ease;
}

.service-card-link:hover {
    background-color: var(--text-white);
    color: var(--primary-blue);
}

/* Hover states for text elements */
.service-article-card:hover .service-card-title {
    color: var(--primary-black);
}

.service-article-card:hover .service-card-excerpt {
    color: var(--primary-black);
}

.service-article-card:hover .service-card-excerpt p {
    color: var(--primary-black);
}

.service-article-card:hover .service-card-link {
    background-color: var(--text-white);
    color: var(--primary-blue);
}

/* Homepage Variant (service-card) */
.service-card {
    background-color: var(--primary-black);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 30px;
    position: relative;
    transition: all 0.3s ease;
}

.service-card:hover {
    background-color: var(--primary-green);
    color: var(--text-dark);
    border-color: var(--primary-green);
    transform: translateY(-5px);
}

.service-icon {
    font-size: 30px;
    color: var(--link-blue);
    margin-bottom: 20px;
}

.service-icon i {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    -webkit-text-fill-color: transparent;
}

.service-card h3 {
    font-size: 18px;
    color: var(--text-white);
    margin-bottom: 15px;
    font-weight: 600;
}

.service-card p {
    color: var(--paragraph-color);
    max-width: 200px;
    font-size: 14px;
    margin-bottom: 30px;
    line-height: 1.6;
}

.service-link {
    position: absolute;
    bottom: 30px;
    right: 30px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #1a1f2c;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-white);
    transition: all 0.3s ease;
}

.service-link i {
    transform: rotate(-45deg);
}

.service-card:hover .service-link {
    background-color: var(--primary-green);
    color: var(--primary-black);
}

@media (max-width: 992px) {
    .cda-section-label-left {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .section-title {
        font-family: 'Good Times', sans-serif;
        font-weight: 400;
        color: var(--text-white);
        margin-bottom: 20px;
        text-transform: uppercase;
        font-size: 28px;
    }
}

/* Responsive Styles for Service Cards */
@media (max-width: 768px) {

    .container {
        margin: 0 30px;
    }

    .btn {
        text-align: center;
    }

    .service-article-card {
        padding: 30px 20px;
        min-height: auto;
    }


    .cda-section-label-left {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .cta-line {
        width: 300px;
    }


    .cta-title {
        font-size: 24px;
    }

    .cta-subtitle {
        font-size: 14px;
    }

}