/* ======== CSS variables ======== */
:root {
    --primary: #0077b6;
    --primary-hover: #023e8a;
    --secondary: #03045e;
    --accent: #00b4d8;
    --header-blue: #0096c7;
    --dark-slate: #1e293b;
    --dark-navy: #0f172a;
    --pure-white: #FFFFFF;
    --bg-light: #f8fafc;
    --border-color: #e2e8f0;
    --text-main: #334155;
    --text-muted: #64748b;
    --font-primary: 'Outfit', sans-serif;
    --font-secondary: 'Inter', sans-serif;
    --border-radius-sm: 8px;
    --border-radius-md: 16px;
    --border-radius-lg: 24px;
    --transition-speed: 0.3s;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.12);
}

/* ======== Reset & Base Typography ======== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-secondary);
    color: var(--text-main);
    background-color: var(--bg-light);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
.logo-text {
    font-family: var(--font-primary);
    color: var(--dark-navy);
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all var(--transition-speed) ease;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}

/* ======== Buttons ======== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    font-family: var(--font-primary);
    font-weight: 700;
    border-radius: var(--border-radius-md);
    cursor: pointer;
    transition: all var(--transition-speed) cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: none;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
}

.btn:active {
    transform: scale(0.95);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--header-blue) 100%);
    color: var(--pure-white);
    box-shadow: 0 4px 15px rgba(0, 119, 182, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-hover) 0%, var(--primary) 100%);
    box-shadow: 0 6px 20px rgba(0, 119, 182, 0.4);
    transform: translateY(-2px);
}

/* ======== Top Bar ======== */
.top-bar {
    background-color: var(--dark-navy);
    color: rgba(255, 255, 255, 0.9);
    padding: 10px 0;
    font-size: 0.85rem;
    font-weight: 500;
}

.top-bar .container {
    display: flex;
    justify-content: flex-end;
}

.contact-quick-links {
    display: flex;
    gap: 20px;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 6px;
    opacity: 0.9;
}

.contact-link:hover {
    opacity: 1;
    color: var(--accent);
}

/* ======== Header ======== */
.main-header {
    background-color: var(--pure-white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-image {
    height: 40px;
    width: auto;
}

.logo-text {
    font-size: 1.5rem;
    letter-spacing: -0.5px;
    color: var(--dark-navy);
}

.logo-text .highlight {
    color: var(--primary);
}

.cta-header {
    gap: 8px;
}

.icon-phone {
    animation: ring 2s infinite ease-in-out;
}

@keyframes ring {

    0%,
    100% {
        transform: rotate(0);
    }

    10% {
        transform: rotate(15deg);
    }

    20% {
        transform: rotate(-10deg);
    }

    30% {
        transform: rotate(15deg);
    }

    40% {
        transform: rotate(-10deg);
    }

    50% {
        transform: rotate(0);
    }
}

/* ======== Hero Section ======== */
.hero {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    padding: 40px 0;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('hero_bg_cafards.png');
    background-size: cover;
    background-position: center;
    z-index: -2;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(3, 4, 94, 0.85) 0%, rgba(0, 119, 182, 0.6) 100%);
    z-index: -1;
}

.hero-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: 40px;
}

.hero-content {
    flex: 1;
    color: var(--pure-white);
    max-width: 600px;
}

.hero-title {
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--pure-white);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.hero-subtitle em {
    display: block;
    margin-top: 10px;
    font-weight: 600;
    color: var(--accent);
    font-style: normal;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.hero-certifications {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    align-items: center;
    flex-wrap: wrap;
}

.hero-certifications img {
    height: 60px;
    border-radius: var(--border-radius-sm);
    object-fit: contain;
    background: var(--pure-white);
    padding: 5px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: transform var(--transition-speed);
}

.hero-certifications img:hover {
    transform: translateY(-3px);
}

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.badge {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    padding: 10px 16px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-weight: 600;
    font-size: 0.9rem;
}

.badge svg {
    color: var(--pure-white);
}

/* ======== Glassmorphism Form ======== */
.hero-form-wrapper {
    flex: 0 0 400px;
    width: 100%;
}

.glass-form {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--border-radius-lg);
    padding: 35px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.2);
    color: var(--pure-white);
}

.form-title {
    color: var(--pure-white);
    margin-bottom: 25px;
    font-size: 1.5rem;
    text-align: center;
}

.input-group {
    position: relative;
    margin-bottom: 20px;
}

.input-group input,
.input-group select {
    width: 100%;
    padding: 14px 16px;
    border-radius: var(--border-radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.1);
    color: var(--pure-white);
    font-family: inherit;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
}

.input-group input:focus,
.input-group select:focus {
    background: rgba(255, 255, 255, 0.25);
    border-color: var(--pure-white);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
}

.input-group select option {
    background: var(--dark-navy);
    color: var(--pure-white);
}

.input-group input:focus~label,
.input-group input:not(:placeholder-shown)~label {
    top: -10px;
    left: 10px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent);
    background: var(--dark-navy);
    padding: 0 8px;
    border-radius: 4px;
}

.btn-submit {
    width: 100%;
    padding: 16px;
    font-size: 1.1rem;
    margin-top: 10px;
}

.btn-glow {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: none;
}

.btn-submit:hover .btn-glow {
    animation: glowSweep 1.5s infinite;
}

@keyframes glowSweep {
    0% {
        left: -100%;
    }

    100% {
        left: 100%;
    }
}

.form-footer-note {
    text-align: center;
    margin-top: 15px;
    font-size: 0.85rem;
    opacity: 0.8;
}

/* ======== Utilities ======== */
.section-padding {
    padding: 80px 0;
}

.bg-light {
    background-color: var(--pure-white);
}

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

.section-header {
    margin-bottom: 50px;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--dark-navy);
}

.section-subtitle {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto;
}

/* ======== 3. Cibles d'Intervention ======== */
.targets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.target-card {
    background: var(--pure-white);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: var(--border-radius-md);
    padding: 35px 20px;
    text-align: center;
    transition: all var(--transition-speed) ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
}

.target-card:nth-child(odd) {
    border-top: 4px solid var(--secondary);
    background: linear-gradient(to bottom, #f1f5f9, var(--pure-white) 60%);
}

.target-card:nth-child(even) {
    border-top: 4px solid var(--primary);
    background: linear-gradient(to bottom, #eefbff, var(--pure-white) 60%);
}

.target-card:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transform: translateY(-5px);
}

.target-icon {
    width: 65px;
    height: 65px;
    margin: 0 auto 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    transition: all var(--transition-speed) ease;
}

.target-card:nth-child(odd) .target-icon {
    color: var(--secondary);
    background-color: #e2e8f0;
    border: 1px solid rgba(3, 4, 94, 0.1);
}

.target-card:nth-child(even) .target-icon {
    color: var(--primary);
    background-color: #e0f2fe;
    border: 1px solid rgba(0, 119, 182, 0.1);
}

/* Specific SVG adjustments for the icons within the new layout */
.target-icon svg {
    width: 28px;
    height: 28px;
}

.target-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0;
    color: var(--dark-navy);
}

/* ======== 4. Zone d'Intervention ======== */
.coverage-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.city-btn {
    padding: 15px 32px;
    background-color: var(--pure-white);
    border: 2px solid var(--primary);
    color: var(--primary);
    font-family: var(--font-primary);
    font-weight: 700;
    border-radius: 50px;
    font-size: 1.05rem;
    transition: all var(--transition-speed) ease;
    box-shadow: var(--shadow-sm);
    cursor: default;
}

.city-btn:hover {
    background-color: var(--primary);
    color: var(--pure-white);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

/* ======== 5. Nos Méthodes ======== */
.methods-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.method-card {
    display: flex;
    align-items: flex-start;
    gap: 25px;
    background: var(--pure-white);
    padding: 35px;
    border-radius: var(--border-radius-md);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-speed) ease;
}

.method-card:hover {
    transform: translateY(-5px);
}

.method-icon-wrapper {
    flex-shrink: 0;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    border: 2px solid var(--primary);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f9ff;
}

.method-content h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--dark-navy);
}

.method-content p {
    color: var(--text-muted);
    font-size: 1.05rem;
}

/* ======== 6. Bannière d'Urgence (CTA) ======== */
.cta-banner {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
    padding: 70px 0;
    color: var(--pure-white);
}

.cta-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.cta-content {
    flex: 1;
}

.cta-content h2 {
    color: var(--pure-white);
    font-size: 2.2rem;
    margin-bottom: 15px;
}

.cta-content p {
    font-size: 1.15rem;
    margin-bottom: 20px;
    opacity: 0.9;
}

.cta-alert {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: rgba(255, 255, 255, 0.15);
    padding: 8px 16px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-large {
    padding: 16px 36px;
    font-size: 1.25rem;
}

/* ======== 7. Footer ======== */
.main-footer {
    background-color: var(--dark-navy);
    color: rgba(255, 255, 255, 0.7);
    padding-top: 70px;
}

.footer-container {
    display: grid;
    grid-template-columns: 2fr 1.5fr 1fr;
    gap: 50px;
    margin-bottom: 50px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.footer-logo .logo-image {
    height: 35px;
}

.text-white {
    color: var(--pure-white);
}

.footer-desc {
    max-width: 350px;
    line-height: 1.7;
}

.footer-col h3 {
    color: var(--pure-white);
    font-size: 1.3rem;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    height: 3px;
    width: 35px;
    background-color: var(--accent);
    border-radius: 2px;
}

.contact-list,
.info-list {
    list-style: none;
}

.contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 15px;
}

.contact-list svg {
    color: var(--accent);
    flex-shrink: 0;
    margin-top: 4px;
}

.info-list li {
    margin-bottom: 12px;
}

.info-list a {
    opacity: 0.8;
}

.info-list a:hover {
    opacity: 1;
    color: var(--primary);
    padding-left: 5px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 0;
    text-align: center;
    font-size: 0.9rem;
}

/* ======== Responsive Design ======== */
@media (max-width: 992px) {
    .container {
        padding: 0 4%;
        /* slightly decrease padding to maximize space */
    }

    .hero-container {
        flex-direction: column;
        text-align: center;
    }

    .hero-content {
        max-width: 100%;
        margin-bottom: 40px;
    }

    .hero-certifications {
        justify-content: center;
    }

    .hero-badges {
        justify-content: center;
        margin-bottom: 20px;
    }

    .cta-container {
        flex-direction: column;
        text-align: center;
        gap: 25px;
    }

    .cta-alert {
        justify-content: center;
    }

    .footer-container {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .top-bar {
        display: none;
    }

    .main-header {
        padding: 12px 0;
    }

    .header-container {
        flex-direction: row;
        gap: 10px;
        justify-content: space-between;
    }

    .cta-header {
        width: 44px;
        height: 44px;
        padding: 0;
        border-radius: 50%;
        /* makes the button a circle */
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .cta-text {
        display: none;
    }

    .cta-header svg {
        margin: 0;
        width: 22px;
        height: 22px;
    }

    .hero {
        padding: 30px 0;
        min-height: auto;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .glass-form {
        padding: 25px 20px;
    }

    .hero-form-wrapper {
        flex: 0 0 auto;
        width: 100%;
        max-width: 100%;
        /* allows form to fill the screen on mobile */
    }

    .targets-grid {
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    }

    .methods-grid {
        grid-template-columns: 1fr;
    }

    .method-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 25px;
        gap: 15px;
    }

    .section-padding {
        padding: 50px 0;
    }

    .section-title {
        font-size: 2rem;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .footer-logo {
        justify-content: center;
    }

    .footer-desc {
        margin: 0 auto;
    }

    .contact-list li {
        justify-content: center;
    }

    .footer-col h3::after {
        left: 50%;
        transform: translateX(-50%);
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 5%;
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .hero-subtitle {
        font-size: 1.05rem;
    }

    .badge {
        font-size: 0.8rem;
        padding: 8px 12px;
    }

    .logo-text {
        font-size: 1.25rem;
    }

    .logo-image {
        height: 32px;
    }

    .form-title {
        font-size: 1.3rem;
    }

    .input-group input,
    .input-group select {
        padding: 12px 14px;
        font-size: 0.95rem;
    }

    .section-title {
        font-size: 1.7rem;
    }

    .target-card {
        padding: 25px 15px;
    }

    .city-btn {
        width: 100%;
        text-align: center;
    }

    .cta-content h2 {
        font-size: 1.75rem;
    }

    .btn-large {
        padding: 14px 20px;
        font-size: 1.1rem;
        width: 100%;
    }
}

/* ======== Floating WhatsApp Button ======== */
.whatsapp-float {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    border-radius: 50%;
    box-shadow: 0 6px 24px rgba(37, 211, 102, 0.45);
    text-decoration: none;
    transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275),
        box-shadow 0.25s ease,
        background-color 0.25s ease;
    animation: wa-pulse 2.5s infinite;
}

.whatsapp-float:hover {
    background-color: #1ebe5d;
    transform: scale(1.1);
    box-shadow: 0 10px 32px rgba(37, 211, 102, 0.6);
    animation: none;
}

.whatsapp-float svg {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
}

@keyframes wa-pulse {

    0%,
    100% {
        box-shadow: 0 6px 24px rgba(37, 211, 102, 0.45);
    }

    50% {
        box-shadow: 0 6px 32px rgba(37, 211, 102, 0.75);
    }
}

@media (max-width: 480px) {
    .whatsapp-float {
        bottom: 20px;
        right: 16px;
        width: 52px;
        height: 52px;
    }
}