/* ========== VARIABLES & RESET ========== */
:root {
    --primary: #0f766e;        /* vert-bleu vif */
    --primary-dark: #115e59;
    --primary-soft: #ccfbf1;
    --accent: #f97316;         /* orange vif */
    --accent-soft: #fed7aa;
    --bg: #f3f4f6;             /* gris très clair */
    --bg-soft: #ffffff;
    --text: #111827;           /* gris très foncé */
    --muted: #6b7280;          /* gris moyen */
    --border: #e5e7eb;
    --radius-lg: 14px;
    --radius-md: 10px;
    --radius-sm: 6px;
    --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.08);
    --shadow-card: 0 14px 35px rgba(15, 23, 42, 0.07);
    --transition-fast: 0.18s ease;
    --transition-med: 0.25s ease;
    --max-width: 1160px;
    --nav-height: 70px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background:
        radial-gradient(circle at top left, rgba(45,212,191,0.25), transparent 55%),
        radial-gradient(circle at bottom right, rgba(251,191,36,0.25), transparent 55%),
        var(--bg);
    color: var(--text);
    line-height: 1.6;
}

/* ========== GLOBAL LAYOUT ========== */

.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

section {
    padding: 4.5rem 0;
}

.section-heading {
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.15em;
    color: var(--primary-dark);
    margin-bottom: 0.75rem;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text);
}

.section-subtitle {
    color: var(--muted);
    max-width: 640px;
    margin-bottom: 2.5rem;
}

/* ========== NAVBAR ========== */

header.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(10px);
    background: linear-gradient(
        to bottom,
        rgba(255,255,255,0.95),
        rgba(255,255,255,0.9),
        rgba(255,255,255,0.85)
    );
    border-bottom: 1px solid rgba(209, 213, 219, 0.9);
}

.navbar {
    height: var(--nav-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    text-decoration: none;
}

.brand .logo {
    height: 55px;
    width: auto;
    max-width: 220px;
    min-width: 120px;
    display: block;
    object-fit: contain;
    object-position: left center;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    transition: transform var(--transition-fast), opacity var(--transition-fast);
    filter: brightness(1);
}

.brand:hover .logo {
    transform: scale(1.02);
    opacity: 0.9;
}

/* Responsive logo */
@media (max-width: 768px) {
    .brand .logo {
        height: 45px;
        max-width: 180px;
        min-width: 100px;
    }
}

@media (max-width: 480px) {
    .brand .logo {
        height: 40px;
        max-width: 150px;
        min-width: 80px;
    }
}

.brand-logo {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: radial-gradient(circle at 20% 0, #a5f3fc 0, #22c55e 40%, #0ea5e9 70%, #0369a1 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-soft);
    position: relative;
    overflow: hidden;
}

.brand-logo span {
    font-weight: 800;
    font-size: 1.25rem;
    color: #ecfeff;
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--primary-dark);
}

.brand-tagline {
    font-size: 0.75rem;
    color: var(--muted);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.75rem;
    list-style: none;
}

.nav-links a {
    font-size: 0.9rem;
    text-decoration: none;
    color: var(--muted);
    position: relative;
    padding-bottom: 0.25rem;
    transition: color var(--transition-fast);
}

.nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(to right, #f97316, #22c55e);
    transition: width var(--transition-med);
}

.nav-links a:hover {
    color: var(--primary-dark);
}

.nav-links a[aria-current="page"] {
    color: var(--primary);
    font-weight: 600;
}

.nav-links a[aria-current="page"]::after {
    width: 52%;
}

/* Mobile toggle */

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 32px;
    height: 32px;
    border-radius: 999px;
    background: #ffffff;
    border: 1px solid #d1d5db;
    cursor: pointer;
    padding: 6px;
}

.nav-toggle span {
    height: 2px;
    width: 100%;
    background: #4b5563;
    border-radius: 999px;
    transition: transform var(--transition-fast), opacity var(--transition-fast);
}

/* ========== BUTTONS ========== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 0.8rem 1.4rem;
    border-radius: 999px;
    border: 1px solid transparent;
    font-size: 0.9rem;
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
    transition:
        background var(--transition-fast),
        transform var(--transition-fast),
        box-shadow var(--transition-fast),
        border-color var(--transition-fast),
        color var(--transition-fast);
}

.btn-primary {
    background: linear-gradient(135deg, #22c55e, #0ea5e9);
    color: #ecfeff;
    box-shadow: 0 18px 38px rgba(34, 197, 94, 0.35);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 24px 48px rgba(14, 165, 233, 0.5);
}

.btn-outline {
    border-color: #d1d5db;
    color: var(--primary-dark);
    background: #ffffff;
}

.btn-outline:hover {
    border-color: #0ea5e9;
    color: #0f172a;
    background: #e0f2fe;
}

/* ========== HERO ACCUEIL ========== */

.hero {
    padding: 3.5rem 0 4.5rem;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 3rem;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border-radius: 999px;
    padding: 0.2rem 0.5rem 0.2rem 0.2rem;
    background: #ecfdf5;
    border: 1px solid #6ee7b7;
    margin-bottom: 1.1rem;
}

.hero-badge-pill {
    width: 26px;
    height: 26px;
    border-radius: 999px;
    background: radial-gradient(circle at 20% 0, #bbf7d0 0, #22c55e 40%, #0ea5e9 80%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 26px rgba(34,197,94,0.45);
    font-size: 0.7rem;
    font-weight: 700;
    color: #ecfeff;
}

.hero-badge-text {
    font-size: 0.8rem;
    color: #047857;
}

.hero-title {
    font-size: clamp(2.4rem, 3.2vw + 1.4rem, 3.2rem);
    line-height: 1.1;
    margin-bottom: 1rem;
    color: var(--text);
}

.hero-title span {
    background: linear-gradient(135deg, #22c55e, #0ea5e9, #f97316);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-lead {
    color: var(--muted);
    max-width: 560px;
    margin-bottom: 1.8rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
    margin-bottom: 2.1rem;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.75rem;
    font-size: 0.78rem;
    color: var(--muted);
}

.hero-meta strong {
    display: block;
    font-size: 0.9rem;
    color: var(--text);
}

/* Hero right side */

.hero-panel {
    background:
        radial-gradient(circle at top left, rgba(125,211,252,0.55), transparent 55%),
        linear-gradient(to bottom right, #f9fafb, #ffffff);
    border-radius: 24px;
    border: 1px solid #d1d5db;
    padding: 1.9rem 1.6rem;
    box-shadow: var(--shadow-soft);
    position: relative;
    overflow: hidden;
}

.hero-image-wrapper {
    width: 100%;
    height: 100%;
    min-height: 400px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 1.2rem;
    position: relative;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.15);
    transition: transform var(--transition-med);
}

.hero-image:hover {
    transform: scale(1.02);
}

.hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.2rem;
}

.chip {
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
    border: 1px solid #e5e7eb;
    font-size: 0.72rem;
    color: var(--muted);
    background: #f9fafb;
}

.chip-accent {
    border-color: #f97316;
    background: #fff7ed;
    color: #c2410c;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 0.9rem;
    margin-bottom: 1.7rem;
}

.stat-card {
    background: #ffffff;
    border-radius: var(--radius-md);
    border: 1px solid #e5e7eb;
    padding: 0.85rem 0.9rem;
}

.stat-label {
    font-size: 0.7rem;
    color: var(--muted);
    margin-bottom: 0.2rem;
}

.stat-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-dark);
}

.hero-badges-bottom {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    font-size: 0.75rem;
    color: var(--muted);
}

/* ========== CARDS & GRIDS ========== */

.cards-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0,1fr));
    gap: 1.4rem;
}

.card {
    background: linear-gradient(135deg, #ffffff, #f9fafb);
    border-radius: var(--radius-lg);
    border: 1px solid #e5e7eb;
    padding: 0;
    box-shadow: var(--shadow-card);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.card-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-med);
}

.card:hover .card-image img {
    transform: scale(1.08);
}

.card-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent, rgba(15, 23, 42, 0.05));
    pointer-events: none;
}

.card > *:not(.card-image) {
    padding: 0 1.4rem;
}

.card > .card-tag {
    padding-top: 1.5rem;
}

.card > .card-meta {
    padding-bottom: 1.5rem;
}

.card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(59,130,246,0.16), transparent 60%);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-med);
}

.card:hover::before {
    opacity: 1;
}

.card-title {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
    color: var(--text);
}

.card-tag {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--primary);
    margin-bottom: 0.45rem;
}

.card-body {
    font-size: 0.9rem;
    color: var(--muted);
    margin-bottom: 0.9rem;
}

.card-meta {
    font-size: 0.78rem;
    color: var(--muted);
}

/* ========== ABOUT / A PROPOS ========== */

.about-hero {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 3rem;
    min-height: 400px;
    display: flex;
    align-items: center;
}

.about-hero-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.about-hero-content {
    position: relative;
    z-index: 1;
    background: linear-gradient(to bottom, rgba(15, 23, 42, 0.7), rgba(15, 23, 42, 0.5));
    color: white;
    padding: 3rem 2.5rem;
    width: 100%;
}

.about-hero-content .section-heading,
.about-hero-content .section-title,
.about-hero-content .section-subtitle {
    color: white;
}

.about-hero-content .section-heading {
    color: rgba(255, 255, 255, 0.9);
}

.about-layout {
    display: grid;
    grid-template-columns: minmax(0,1.1fr) minmax(0,0.9fr);
    gap: 2.5rem;
}

.about-pill {
    font-size: 0.8rem;
    color: var(--primary-dark);
    margin-bottom: 0.75rem;
}

.about-block {
    background: #ffffff;
    border-radius: var(--radius-lg);
    padding: 1.3rem 1.4rem;
    border: 1px solid #e5e7eb;
    margin-bottom: 1rem;
    box-shadow: var(--shadow-soft);
}

.about-block-with-image {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 1.5rem;
    padding: 0;
    overflow: hidden;
}

.about-block-image {
    width: 100%;
    height: 100%;
    min-height: 150px;
    overflow: hidden;
}

.about-block-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-med);
}

.about-block-with-image:hover .about-block-image img {
    transform: scale(1.05);
}

.about-block-with-image > div:last-child {
    padding: 1.3rem 1.4rem;
}

.about-block h3 {
    font-size: 1rem;
    margin-bottom: 0.4rem;
    color: var(--text);
}

.about-block p {
    font-size: 0.9rem;
    color: var(--muted);
}

.about-list {
    list-style: none;
    margin-top: 0.4rem;
}

.about-list li {
    font-size: 0.88rem;
    color: var(--muted);
    padding-left: 1rem;
    position: relative;
    margin-bottom: 0.25rem;
}

.about-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--primary);
}

/* ========== SERVICES ========== */

.services-grid {
    display: grid;
    grid-template-columns: minmax(0,2fr) minmax(0,1.4fr);
    gap: 2rem;
}

.service-card {
    margin-bottom: 1rem;
}

.service-meta {
    font-size: 0.78rem;
    color: var(--muted);
}

.badge-soft {
    display: inline-flex;
    align-items: center;
    padding: 0.15rem 0.6rem;
    border-radius: 999px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    font-size: 0.7rem;
    color: var(--primary-dark);
}

/* ========== RÉALISATIONS ========== */

.timeline {
    border-left: 1px solid #e5e7eb;
    margin-left: 0.7rem;
    padding-left: 1.4rem;
}

.timeline-item {
    position: relative;
    margin-bottom: 2.5rem;
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 1.5rem;
    align-items: start;
}

.timeline-image {
    width: 100%;
    height: 180px;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid #e5e7eb;
    box-shadow: var(--shadow-card);
}

.timeline-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-med);
}

.timeline-item:hover .timeline-image img {
    transform: scale(1.05);
}

.timeline-item::before {
    content: "";
    position: absolute;
    left: -1.7rem;
    top: 0.2rem;
    width: 9px;
    height: 9px;
    border-radius: 999px;
    background: #f97316;
    box-shadow: 0 0 0 6px rgba(251,146,60,0.35);
}

.timeline-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--primary);
    margin-bottom: 0.15rem;
}

.timeline-title {
    font-size: 0.98rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--text);
}

.timeline-body {
    font-size: 0.88rem;
    color: var(--muted);
}

/* ========== TEAM / ÉQUIPE ========== */

.team-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0,1fr));
    gap: 1.4rem;
}

.team-card {
    text-align: center;
    background: #ffffff;
}

.team-avatar {
    width: 120px;
    height: 120px;
    border-radius: 999px;
    margin: 0 auto 0.85rem;
    background: radial-gradient(circle at 20% 0, #bfdbfe 0, #22c55e 40%, #0ea5e9 80%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #f9fafb;
    font-weight: 700;
    font-size: 1.4rem;
    box-shadow: 0 16px 40px rgba(148,163,184,0.55);
    overflow: hidden;
    position: relative;
}

.team-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 999px;
    transition: transform var(--transition-med);
}

.team-card:hover .team-avatar img {
    transform: scale(1.1);
}

.team-name {
    font-weight: 600;
    margin-bottom: 0.1rem;
    color: var(--text);
}

.team-role {
    font-size: 0.8rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.team-bio {
    font-size: 0.86rem;
    color: var(--muted);
}

/* ========== CONTACT ========== */

.contact-hero {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 3rem;
    min-height: 350px;
    display: flex;
    align-items: center;
}

.contact-hero-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.contact-hero-content {
    position: relative;
    z-index: 1;
    background: linear-gradient(to bottom, rgba(15, 23, 42, 0.75), rgba(15, 23, 42, 0.6));
    color: white;
    padding: 3rem 2.5rem;
    width: 100%;
}

.contact-hero-content .section-heading,
.contact-hero-content .section-title,
.contact-hero-content .section-subtitle {
    color: white;
}

.contact-hero-content .section-heading {
    color: rgba(255, 255, 255, 0.9);
}

.contact-layout {
    display: grid;
    grid-template-columns: minmax(0,1.1fr) minmax(0,0.9fr);
    gap: 2rem;
}

.form-card {
    background: #ffffff;
    border-radius: var(--radius-lg);
    border: 1px solid #e5e7eb;
    padding: 1.6rem 1.5rem;
    box-shadow: var(--shadow-card);
}

.form-row {
    display: flex;
    gap: 1rem;
}

.form-group {
    margin-bottom: 1rem;
    width: 100%;
}

label {
    display: block;
    font-size: 0.8rem;
    margin-bottom: 0.2rem;
    color: var(--muted);
}

input,
textarea,
select {
    width: 100%;
    border-radius: var(--radius-md);
    border: 1px solid #d1d5db;
    background: #ffffff;
    color: var(--text);
    padding: 0.6rem 0.7rem;
    font-size: 0.9rem;
    outline: none;
    transition:
        border-color var(--transition-fast),
        box-shadow var(--transition-fast),
        background var(--transition-fast);
}

input::placeholder,
textarea::placeholder {
    color: #9ca3af;
}

input:focus,
textarea:focus,
select:focus {
    border-color: #0ea5e9;
    box-shadow: 0 0 0 1px rgba(14,165,233,0.5);
    background: #f9fafb;
}

textarea {
    min-height: 140px;
    resize: vertical;
}

/* Contact info */

.contact-info-card {
    background: #ffffff;
    padding: 1.5rem 1.4rem;
    border-radius: var(--radius-lg);
    border: 1px solid #e5e7eb;
    box-shadow: var(--shadow-soft);
}

.contact-info-list {
    list-style: none;
    margin-top: 0.5rem;
}

.contact-info-list li {
    font-size: 0.9rem;
    color: var(--muted);
    margin-bottom: 0.4rem;
}

.contact-info-label {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--primary);
    margin-bottom: 0.2rem;
}

/* ========== SECTION VISUELLE ========== */

.visual-section {
    background: linear-gradient(135deg, #f9fafb, #ffffff);
    padding: 5rem 0;
}

.visual-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
}

.visual-card {
    background: #ffffff;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: transform var(--transition-med), box-shadow var(--transition-med);
    border: 1px solid #e5e7eb;
}

.visual-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.12);
}

.visual-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform var(--transition-med);
}

.visual-card:hover .visual-image {
    transform: scale(1.05);
}

.visual-content {
    padding: 1.5rem 1.4rem;
}

.visual-content h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.visual-content p {
    font-size: 0.9rem;
    color: var(--muted);
    line-height: 1.6;
}

/* ========== FOOTER ========== */

footer.site-footer {
    border-top: 1px solid #e5e7eb;
    padding: 1.5rem 0 1.8rem;
    margin-top: 2rem;
    font-size: 0.78rem;
    color: var(--muted);
    background: rgba(255,255,255,0.95);
}

.footer-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1rem;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-links a {
    color: var(--muted);
    text-decoration: none;
}

.footer-links a:hover {
    color: var(--primary);
}

/* ========== GALERIE ========== */

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.gallery-item {
    background: #ffffff;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-card);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.gallery-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-soft);
}

.gallery-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: var(--bg);
}

.gallery-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-med);
}

.gallery-item:hover .gallery-image img {
    transform: scale(1.08);
}

.gallery-content {
    padding: 1.2rem 1.3rem;
}

.gallery-category {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--primary);
    margin-bottom: 0.4rem;
    font-weight: 600;
}

.gallery-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.4rem;
}

.gallery-description {
    font-size: 0.85rem;
    color: var(--muted);
    line-height: 1.5;
}

/* ========== ACTUALITÉS ========== */

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.news-card {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-card);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
    overflow: hidden;
}

.news-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-soft);
}

.news-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: var(--bg);
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-med);
}

.news-card:hover .news-image img {
    transform: scale(1.08);
}

.news-content {
    padding: 1.3rem 1.4rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.news-date {
    font-size: 0.75rem;
    color: var(--muted);
    margin-bottom: 0.3rem;
}

.news-category {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--primary);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.news-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.news-excerpt {
    font-size: 0.88rem;
    color: var(--muted);
    line-height: 1.6;
    margin-bottom: 0.8rem;
    flex: 1;
}

.news-link {
    font-size: 0.85rem;
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    transition: color var(--transition-fast);
    margin-top: auto;
}

.news-link:hover {
    color: var(--primary-dark);
}

/* ========== RESPONSIVE ========== */

@media (max-width: 960px) {
    .hero-grid,
    .about-layout,
    .services-grid,
    .contact-layout {
        grid-template-columns: minmax(0,1fr);
    }

    .about-block-with-image {
        grid-template-columns: 1fr;
    }

    .about-block-image {
        min-height: 200px;
    }

    .timeline-item {
        grid-template-columns: 1fr;
    }

    .timeline-image {
        height: 200px;
    }

    .cards-grid-3,
    .team-grid,
    .visual-grid {
        grid-template-columns: repeat(2, minmax(0,1fr));
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        inset: var(--nav-height) 0 auto 0;
        background: #ffffff;
        flex-direction: column;
        align-items: flex-start;
        padding: 1.1rem 1.5rem 1.6rem;
        transform: translateY(-130%);
        opacity: 0;
        pointer-events: none;
        box-shadow: 0 12px 35px rgba(15,23,42,0.12);
        transition: transform var(--transition-med), opacity var(--transition-med);
    }

    .nav-links.nav-open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

    .nav-toggle {
        display: flex;
    }

    .hero {
        padding-top: 2.8rem;
    }

    .hero-image-wrapper {
        min-height: 300px;
    }

    .cards-grid-3,
    .team-grid,
    .visual-grid,
    .gallery-grid,
    .news-grid {
        grid-template-columns: minmax(0,1fr);
    }

    .form-row {
        flex-direction: column;
    }

    .card-image {
        height: 180px;
    }

    .about-hero {
        min-height: 300px;
    }

    .about-hero-content {
        padding: 2rem 1.5rem;
    }

    .contact-hero {
        min-height: 300px;
    }

    .contact-hero-content {
        padding: 2rem 1.5rem;
    }

    .team-avatar {
        width: 100px;
        height: 100px;
    }
}

/* Toggle animation */

.nav-toggle.active span:nth-child(1) {
    transform: translateY(3px) rotate(35deg);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: translateY(-3px) rotate(-35deg);
}
