/* -------------------------
   Reset & bases
-------------------------- */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    text-size-adjust: 100%;
}

:root {
    --container: 1120px;
    --gutter: clamp(1rem, 3vw, 1.6rem);

    --text: #1b2733;
    --muted: #52606d;
    --bg: #f4f6fb;

    --primary: #1565c0;
    --success: #2e7d32;

    --radius-lg: 18px;
    --radius-xl: 24px;

    --shadow-sm: 0 10px 28px rgba(15, 23, 42, 0.1);
    --shadow-md: 0 16px 35px rgba(15, 23, 42, 0.18);
    --shadow-lg: 0 18px 50px rgba(0, 0, 0, 0.55);
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--text);
    background-color: var(--bg);
    line-height: 1.6;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

/* Focus visible (accessibilité clavier) */
:focus-visible {
    outline: 3px solid rgba(255, 183, 77, 0.9);
    outline-offset: 3px;
    border-radius: 10px;
}

/* Lien d'accès rapide */
.skip-link {
    position: absolute;
    left: -999px;
    top: 10px;
    z-index: 2000;
    padding: 0.6rem 0.9rem;
    background: #ffffff;
    color: #0b152b;
    border-radius: 999px;
    box-shadow: var(--shadow-sm);
}
.skip-link:focus {
    left: 12px;
}

/* -------------------------
   Scroll progress
-------------------------- */

#scroll-progress {
    position: fixed;
    inset-inline: 0;
    top: 0;
    height: 3px;
    width: 0%;
    background: linear-gradient(90deg, #ffb74d, #ffecb3, #81c784);
    z-index: 1000;
    transform-origin: left;
    transition: width 0.1s ease-out;
}

/* -------------------------
   Layout
-------------------------- */

.container {
    width: min(var(--container), 100% - (var(--gutter) * 2));
    margin-inline: auto;
}

/* -------------------------
   Boutons
-------------------------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.9rem 1.9rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.95rem;
    border: 2px solid transparent;
    cursor: pointer;
    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease,
        background-color 0.18s ease,
        color 0.18s ease,
        border-color 0.18s ease;
    text-align: center;
    min-height: 44px; /* mobile-friendly */
}

.btn-primary {
    background: linear-gradient(135deg, #1565c0, #2e7d32);
    color: #ffffff;
    box-shadow: 0 12px 30px rgba(21, 101, 192, 0.4);
}

.btn-primary:hover {
    transform: translateY(-1px) scale(1.01);
    box-shadow: 0 16px 38px rgba(21, 101, 192, 0.5);
}

.btn-outline {
    background-color: transparent;
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.35);
}

.btn-outline:hover {
    background-color: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.7);
}

.btn-full {
    width: 100%;
}

/* -------------------------
   Navbar
-------------------------- */

.navbar-wrapper {
    position: sticky;
    top: 0;
    z-index: 900;
}

.navbar {
    backdrop-filter: blur(14px);
    background: radial-gradient(circle at top left, rgba(10, 55, 124, 0.95), rgba(3, 16, 40, 0.96));
    color: #ffffff;
    padding: 0.65rem var(--gutter);
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: box-shadow 0.2s ease, padding 0.2s ease, background 0.2s ease;
}

.navbar.scrolled {
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.35);
    padding-block: 0.5rem;
    background: rgba(3, 16, 40, 0.98);
}

.navbar-left {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    min-width: 0;
}

/* ✅ LOGO NAVBAR PLUS GROS + plus lisible */
.navbar-logo img {
    width: clamp(52px, 6vw, 70px);
    height: clamp(52px, 6vw, 70px);
    object-fit: contain;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.35));
}

.navbar-brand {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
    min-width: 0;
}

.brand-name {
    font-weight: 800;
    font-size: clamp(0.95rem, 1.6vw, 1.05rem);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.brand-tagline {
    font-size: 0.82rem;
    opacity: 0.92;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.navbar-links {
    display: flex;
    align-items: center;
    gap: 1.4rem;
    font-size: 0.95rem;
}

.navbar-links a {
    position: relative;
    padding-block: 0.25rem;
}

.navbar-links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0%;
    height: 2px;
    background: linear-gradient(135deg, #ffb74d, #ffe082);
    border-radius: 999px;
    transition: width 0.22s ease;
}

.navbar-links a:hover::after {
    width: 100%;
}

.navbar-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 42px;
    height: 42px;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
}

.navbar-toggle span {
    display: block;
    height: 2px;
    width: 100%;
    border-radius: 999px;
    background-color: #ffffff;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

/* -------------------------
   Hero (logo + slogan énorme)
-------------------------- */

.hero {
    position: relative;
    min-height: 78vh;
    min-height: 78svh; /* meilleur sur mobile */
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background-image:
        linear-gradient(135deg, rgba(7, 29, 68, 0.94), rgba(6, 57, 35, 0.96)),
        url("Image/en tête image.jpeg");
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.15), transparent 50%),
        radial-gradient(circle at bottom right, rgba(46, 125, 50, 0.35), transparent 55%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    padding-block: clamp(2.6rem, 6vw, 4rem);
}

.hero-inner {
    max-width: 760px;
}

/* ✅ LOGO HERO PLUS GROS + + impact visuel */
.hero-logo-card {
    position: relative;
    width: clamp(260px, 50vw, 460px);
    height: clamp(135px, 24vw, 230px);
    margin: 0 auto 1.4rem;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transform-style: preserve-3d;
    will-change: transform;
    transition: transform 0.2s ease-out;
}

.hero-logo-bg {
    position: absolute;
    inset: -22px;
    background-image: url("Image/logo-background.jpeg");
    background-size: cover;
    background-position: center;
    filter: blur(26px);
    transform: scale(1.14);
}

.hero-logo-card img {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: clamp(0.9rem, 2vw, 1.4rem);
    filter: drop-shadow(0 14px 26px rgba(0, 0, 0, 0.35));
}

.hero-slogan-main {
    font-size: clamp(2.1rem, 5.4vw, 3.3rem);
    margin: 0 0 0.35rem;
    text-align: center;
    letter-spacing: 0.02em;
    text-wrap: balance;
}

.hero-brand-name {
    text-align: center;
    font-size: 1.1rem;
    margin: 0 0 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    opacity: 0.92;
}

.hero-subtitle {
    margin: 0 0 1.7rem;
    font-size: clamp(0.95rem, 2vw, 1.05rem);
    max-width: 36rem;
    opacity: 0.96;
    text-align: center;
    margin-inline: auto;
    text-wrap: pretty;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.9rem;
    margin-bottom: 1.6rem;
}

.hero-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.6rem;
    margin-bottom: 2rem;
}

.hero-tag {
    padding: 0.35rem 0.95rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(2, 12, 34, 0.45);
    font-size: 0.82rem;
}

.hero-highlights {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.1rem;
}

.highlight-item {
    min-width: 140px;
    padding: 0.95rem 1.15rem;
    border-radius: 16px;
    background: rgba(6, 31, 64, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.5);
    text-align: center;
}

.highlight-number {
    display: block;
    font-weight: 800;
    font-size: 1.65rem;
}

.highlight-label {
    font-size: 0.82rem;
    opacity: 0.95;
}

/* -------------------------
   Sections & bandeau rubriques
-------------------------- */

.section {
    padding-block: clamp(2.8rem, 5vw, 3.7rem);
}

.section-light {
    background-color: var(--bg);
}

.section-colored {
    background: linear-gradient(145deg, #e3f2fd, #e8f5e9);
}

.section-contact {
    background: #fff3e0;
}

.section-header {
    text-align: center;
    margin-bottom: clamp(1.6rem, 4vw, 2.4rem);
}

.section-header h2 {
    font-size: clamp(1.75rem, 3vw, 2.15rem);
    margin-bottom: 0.55rem;
    color: #102a43;
    text-wrap: balance;
}

.section-header p {
    margin: 0;
    color: var(--muted);
    max-width: 560px;
    margin-inline: auto;
    font-size: 0.98rem;
}

.section-header .highlight {
    color: var(--success);
    text-decoration: underline;
}

/* bandeau rubriques rapides */

.section-strip {
    background: #0b152b;
    color: #ffffff;
    padding-block: 1.4rem;
}

.strip-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 1rem;
}

.strip-item {
    background: radial-gradient(circle at top left, rgba(255, 243, 224, 0.18), rgba(255, 255, 255, 0.04));
    border-radius: 12px;
    padding: 0.8rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
    min-height: 64px;
}

.strip-label {
    font-size: 0.75rem;
    opacity: 0.82;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.strip-title {
    font-size: 0.98rem;
    font-weight: 650;
}

.strip-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.55);
    border-color: rgba(255, 243, 224, 0.9);
}

/* -------------------------
   Cards services
-------------------------- */

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
    gap: 1.7rem;
}

.card {
    background-color: #ffffff;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    position: relative;
}

.card-image img {
    width: 100%;
    height: clamp(190px, 26vw, 230px);
    object-fit: cover;
}

.card-body {
    padding: 1.3rem 1.4rem 1.35rem;
}

.card h3 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
    color: #174a5b;
}

.card p {
    margin-top: 0;
    margin-bottom: 0.7rem;
    color: var(--muted);
    font-size: 0.95rem;
}

.card-list {
    list-style: none;
    padding-left: 0;
    margin: 0;
    font-size: 0.92rem;
    color: #364152;
}

.card-list li {
    position: relative;
    padding-left: 1.1rem;
    margin-bottom: 0.3rem;
}

.card-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--success);
}

/* badge dans les cartes */

.card-badge {
    position: absolute;
    top: 0.7rem;
    left: 0.7rem;
    padding: 0.25rem 0.7rem;
    border-radius: 999px;
    background: rgba(21, 101, 192, 0.9);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 650;
}

.badge-accent {
    background: rgba(255, 112, 67, 0.95);
}

.badge-soft {
    background: rgba(94, 53, 177, 0.9);
}

/* effet hover JS + CSS */

.card-hover {
    transform-style: preserve-3d;
    will-change: transform, box-shadow;
    transition: transform 0.18s ease-out, box-shadow 0.18s ease-out;
}

.card-hover.active {
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.28);
}

/* -------------------------
   Pourquoi nous choisir
-------------------------- */

.reasons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
    gap: 1.5rem;
}

.reason {
    background-color: rgba(255, 255, 255, 0.93);
    padding: 1.2rem 1.3rem;
    border-radius: 14px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
    border: 1px solid rgba(21, 101, 192, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.reason h3 {
    margin-top: 0;
    margin-bottom: 0.4rem;
    font-size: 1.05rem;
    color: #174a5b;
}

.reason p {
    margin: 0;
    font-size: 0.93rem;
    color: #4a5563;
}

.reason:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.18);
    border-color: rgba(21, 101, 192, 0.45);
}

/* -------------------------
   Témoignages
-------------------------- */

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
    gap: 1.5rem;
}

.testimonial-card {
    background-color: #ffffff;
    border-radius: 16px;
    padding: 1.2rem 1.3rem 1.3rem;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.12);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: 1px solid transparent;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.testimonial-card .stars {
    display: flex;
    gap: 3px;
    margin-bottom: 0.6rem;
}

.testimonial-card .stars span {
    color: #ffc107;
    font-size: 1.05rem;
}

.testimonial-card p {
    margin: 0 0 0.8rem;
    font-size: 0.95rem;
    color: #364152;
}

.testimonial-card h3 {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 650;
    color: #52606d;
}

.testimonial-card.featured {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.22);
    border-color: rgba(21, 101, 192, 0.6);
}

/* bloc témoignage mis en avant */

.testimonial-featured {
    max-width: 680px;
    margin: 0 auto 2rem;
    background: radial-gradient(circle at top left, #fffde7, #fff3e0);
    border-radius: 18px;
    padding: 1.35rem 1.6rem;
    text-align: center;
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.22);
}

.featured-stars {
    display: flex;
    justify-content: center;
    gap: 4px;
    margin-bottom: 0.4rem;
}

.featured-stars span {
    color: #ffb300;
    font-size: 1.1rem;
}

.featured-text {
    margin: 0.3rem 0 0.4rem;
    font-size: 1rem;
    color: #374151;
}

.featured-author {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 650;
    color: #6b7280;
}

/* -------------------------
   Contact
-------------------------- */

.contact-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1.45fr);
    gap: 2rem;
    align-items: start;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-block {
    display: flex;
    gap: 0.9rem;
    align-items: flex-start;
    background-color: #ffffff;
    border-radius: 14px;
    padding: 0.95rem 1.05rem;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
}

.contact-block .icon {
    font-size: 1.5rem;
}

.contact-block h3 {
    margin: 0 0 0.2rem;
    font-size: 0.98rem;
    color: #174a5b;
}

.contact-block p {
    margin: 0;
    font-size: 0.92rem;
    color: #4a5563;
}

.contact-block a {
    color: var(--primary);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
}

.contact-form-wrapper {
    background-color: #ffffff;
    border-radius: var(--radius-lg);
    padding: 1.4rem 1.6rem;
    box-shadow: var(--shadow-md);
}

#contact-form {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.8rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 650;
    color: var(--muted);
}

.form-group input,
.form-group textarea {
    border-radius: 10px;
    border: 1px solid #d0d7e2;
    padding: 0.7rem 0.75rem;
    font-size: 0.95rem;
    font-family: inherit;
    outline: none;
    transition:
        border-color 0.15s ease,
        box-shadow 0.15s ease,
        background-color 0.15s ease;
    background-color: #f9fbff;
    min-height: 44px;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(21, 101, 192, 0.18);
    background-color: #ffffff;
}

.form-status {
    margin-top: 0.6rem;
    font-size: 0.85rem;
    min-height: 1rem;
    color: var(--success);
}

/* -------------------------
   Bouton scroll-top & CTA flottante
-------------------------- */

.scroll-top {
    position: fixed;
    right: 1.4rem;
    bottom: 1.4rem;
    width: 44px;
    height: 44px;
    border-radius: 999px;
    border: none;
    background: rgba(3, 16, 40, 0.95);
    color: #ffffff;
    font-size: 1.1rem;
    cursor: pointer;
    display: grid;
    place-items: center;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 850;
}

.scroll-top.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.scroll-top:hover {
    transform: translateY(-2px);
}

.cta-floating {
    position: fixed;
    right: 1.4rem;
    bottom: 4.95rem;
    padding: 0.7rem 1.2rem;
    border-radius: 999px;
    background: linear-gradient(135deg, #ff9800, #ffb74d);
    color: #1b2733;
    font-size: 0.92rem;
    font-weight: 800;
    box-shadow: 0 14px 30px rgba(255, 152, 0, 0.55);
    z-index: 840;
    animation: pulse 1.7s infinite;
}

.cta-floating:hover {
    animation-play-state: paused;
}

/* -------------------------
   Footer
-------------------------- */

.footer {
    background-color: #121826;
    color: #cbd2e1;
    padding-block: 1rem;
    font-size: 0.85rem;
}

.footer-content {
    text-align: center;
}

.footer-note {
    margin-top: 0.2rem;
    color: #9aa5ce;
}

/* -------------------------
   Animations de scroll
-------------------------- */

[data-animate] {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.45s ease, transform 0.45s ease;
}

[data-animate].visible {
    opacity: 1;
    transform: translateY(0);
}

/* -------------------------
   Keyframes
-------------------------- */

@keyframes pulse {
    0% {
        transform: translateY(0) scale(1);
        box-shadow: 0 12px 28px rgba(255, 152, 0, 0.48);
    }
    50% {
        transform: translateY(-2px) scale(1.05);
        box-shadow: 0 18px 40px rgba(255, 152, 0, 0.72);
    }
    100% {
        transform: translateY(0) scale(1);
        box-shadow: 0 12px 28px rgba(255, 152, 0, 0.48);
    }
}

/* -------------------------
   Responsive
-------------------------- */

@media (max-width: 900px) {
    .hero {
        background-attachment: scroll;
    }

    .contact-layout {
        grid-template-columns: 1fr;
    }

    .cta-floating {
        right: 1rem;
        bottom: 4.6rem;
    }

    .scroll-top {
        right: 1rem;
        bottom: 1.2rem;
    }
}

@media (max-width: 720px) {
    .navbar-toggle {
        display: flex;
    }

    .navbar-links {
        position: absolute;
        inset-inline: 0;
        top: 100%;
        background: rgba(3, 16, 40, 0.98);
        flex-direction: column;
        align-items: flex-start;
        padding: 0.9rem var(--gutter) 1.2rem;
        gap: 0.75rem;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transform: translateY(-6px);
        transition:
            max-height 0.22s ease,
            opacity 0.22s ease,
            transform 0.22s ease;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .navbar-links.open {
        max-height: 360px;
        opacity: 1;
        transform: translateY(0);
    }

    .navbar-links a {
        width: 100%;
        padding: 0.45rem 0.2rem;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .strip-grid {
        grid-template-columns: 1fr 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-subtitle,
    .hero-slogan-main,
    .hero-brand-name {
        text-align: left;
    }

    .hero-tags,
    .hero-highlights {
        justify-content: flex-start;
    }

    .strip-grid {
        grid-template-columns: 1fr;
    }
}

/* -------------------------
   Réduction des animations (accessibilité)
-------------------------- */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    * { animation: none !important; transition: none !important; }
}

.hero-logo-card img {
    padding: clamp(0.5rem, 1.2vw, 1rem);
}
