/**** PAGE CSIRT ****/

/* ───── Héro ───── */
.csirt-hero {
    padding: 72px 0 88px;
}

.csirt-hero .hero-title {
    max-width: 640px;
}

.csirt-hero .hero-desc {
    color: rgba(255, 255, 255, .65);
    margin-bottom: 36px;
}

.csirt-btn-alert {
    position: relative;
}

.csirt-btn-alert::after {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    box-shadow: 0 0 0 0 rgba(3, 140, 37, .55);
    animation: csirtRing 2.4s var(--ease-out) infinite;
    pointer-events: none;
}

/* Radar */
.csirt-radar {
    max-width: 420px;
    margin-left: auto;
}

.csirt-radar svg {
    width: 100%;
    height: auto;
    overflow: visible;
}

.radar-sweep {
    transform-origin: 200px 200px;
    animation: csirtSpin 6s linear infinite;
}

.blip {
    transform-box: fill-box;
    transform-origin: center;
    animation: csirtBlip 3s var(--ease) infinite;
}

.blip-red { fill: var(--red); }
.blip-blue { fill: var(--blue); animation-delay: .8s; }
.blip-green { fill: var(--green-soft); animation-delay: 1.6s; }
.radar-blips .blip:nth-child(4) { animation-delay: 2.2s; }

.shield-check {
    stroke-dasharray: 60;
    stroke-dashoffset: 60;
    animation: csirtDraw 1.2s var(--ease) .8s forwards;
}

/* ───── Chiffres clés ───── */
.csirt-stats {
    position: relative;
    z-index: 2;
    margin-top: -44px;
}

.csirt-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background: var(--white);
    border: 1px solid var(--mist);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-lg);
}

.csirt-stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 26px 28px;
}

.csirt-stat + .csirt-stat {
    border-left: 1px solid var(--mist);
}

.csirt-stat strong {
    font-family: var(--ff-display);
    font-size: clamp(26px, 3vw, 36px);
    font-weight: var(--fw-black);
    color: var(--navy);
    letter-spacing: var(--ls-tight);
    line-height: 1;
}

.csirt-stat-label {
    font-size: var(--fs-md);
    color: var(--slate);
}

/* Le site justifie les paragraphes par défaut, inadapté aux colonnes étroites */
.csirt-section p {
    text-align: inherit;
}

.csirt-reflexes,
.csirt-card {
    text-align: left;
}

/* ───── Sections ───── */
.csirt-section {
    position: relative;
    padding: var(--section-py) 0;
    overflow: hidden;
}

.csirt-head {
    max-width: 680px;
    margin: 0 auto 52px;
    text-align: center;
}

.csirt-kicker {
    display: inline-block;
    margin-bottom: 12px;
    font-family: var(--ff-mono);
    font-size: 12px;
    letter-spacing: var(--ls-widest);
    text-transform: uppercase;
    color: var(--green-brand);
}

.csirt-kicker--red {
    color: var(--red);
}

.csirt-head h2,
.csirt-h2 {
    font-family: var(--ff-display);
    font-size: var(--fs-h2);
    font-weight: var(--fw-black);
    color: var(--navy);
    letter-spacing: -.035em;
    line-height: 1.1;
    margin-bottom: 16px;
}

.csirt-head p,
.csirt-lead {
    font-size: var(--fs-lg);
    color: var(--slate);
    line-height: var(--lh-relaxed);
}

/* ───── Services ───── */
.csirt-services {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--gap-md);
}

.csirt-card {
    --accent: var(--blue);
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 30px 26px;
    background: var(--white);
    border: 1px solid var(--mist);
    border-radius: var(--r-lg);
    transition: transform var(--dur-slow) var(--ease), box-shadow var(--dur-slow) var(--ease), border-color var(--dur-slow) var(--ease);
}

.csirt-card::before {
    content: '';
    position: absolute;
    left: 26px;
    right: 26px;
    top: 0;
    height: 3px;
    border-radius: 0 0 3px 3px;
    background: var(--accent);
    transform: scaleX(.25);
    transform-origin: left;
    transition: transform var(--dur-slow) var(--ease);
}

.csirt-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.csirt-card:hover::before {
    transform: scaleX(1);
}

.csirt-card--preparation { --accent: var(--green-brand); }
.csirt-card--response { --accent: var(--red); }
.csirt-card--remediation { --accent: var(--blue); }
.csirt-card--training { --accent: var(--navy-hi); }

.csirt-card-icon {
    width: 72px;
    height: 72px;
    padding: 14px;
    margin-bottom: 22px;
    border-radius: var(--r-md);
    background: var(--smoke);
    color: var(--navy);
    transition: background var(--dur-slow) var(--ease), color var(--dur-slow) var(--ease);
}

.csirt-card:hover .csirt-card-icon {
    background: var(--navy);
    color: var(--white);
}

.csirt-card-icon .accent,
.csirt-card-icon .pulse-dot {
    color: var(--accent);
    stroke: var(--accent);
}

.csirt-card-icon .pulse-dot {
    fill: var(--accent);
    transform-box: fill-box;
    transform-origin: center;
    animation: csirtBlip 2.4s var(--ease) infinite;
}

.csirt-card-icon .blink {
    animation: csirtBlink 1.1s steps(1) infinite;
}

.csirt-card:hover .spin-slow {
    transform-box: fill-box;
    transform-origin: center;
    animation: csirtSpin 4s linear infinite;
}

.csirt-card-num {
    position: absolute;
    top: 26px;
    right: 26px;
    font-family: var(--ff-mono);
    font-size: 12px;
    color: var(--slate);
}

.csirt-card h3 {
    font-family: var(--ff-display);
    font-size: 22px;
    font-weight: var(--fw-bold);
    color: var(--navy);
    margin-bottom: 10px;
}

.csirt-card p {
    font-size: var(--fs-md);
    color: var(--slate);
    line-height: var(--lh-normal);
    margin-bottom: 18px;
}

.csirt-card ul {
    list-style: none;
    padding: 0;
    margin: auto 0 0;
    border-top: 1px dashed var(--mist);
    padding-top: 16px;
}

.csirt-card li {
    position: relative;
    padding-left: 18px;
    margin-bottom: 8px;
    font-size: 13.5px;
    color: var(--ink);
    line-height: 1.45;
}

.csirt-card li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 7px;
    width: 7px;
    height: 7px;
    border-radius: 2px;
    background: var(--accent);
    opacity: .75;
}

/* Tracé progressif des SVG */
.csirt-svg {
    width: 100%;
    height: 100%;
    overflow: visible;
}

.csirt-card .draw,
.csirt-timeline .draw {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
}

.csirt-card.is-drawn .draw {
    animation: csirtDraw 1.8s var(--ease) forwards;
}

.csirt-card.is-drawn .accent {
    animation-delay: .6s;
}

/* ───── Méthodologie ───── */
.csirt-dark {
    background: linear-gradient(155deg, #071C33 0%, #0D2646 55%, #0A1F3A 100%);
}

.csirt-dark .csirt-head h2 {
    color: var(--white);
}

.csirt-dark .csirt-head p {
    color: rgba(255, 255, 255, .55);
}

.csirt-dark .csirt-kicker {
    color: var(--blue);
}

.csirt-timeline {
    position: relative;
}

.csirt-timeline ol {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--gap-lg);
    list-style: none;
    padding: 0;
    margin: 0;
}

.csirt-timeline-line {
    position: absolute;
    top: 24px;
    left: 16%;
    width: 68%;
    height: 4px;
    stroke: var(--blue);
    stroke-width: 2;
    stroke-dasharray: 6 8;
    opacity: .5;
}

.csirt-timeline-line .draw {
    stroke-dasharray: 1000;
}

.csirt-timeline.is-drawn .csirt-timeline-line .draw {
    animation: csirtDraw 2s var(--ease) forwards;
}

.csirt-step {
    position: relative;
    text-align: center;
}

.csirt-step-dot {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    margin-bottom: 20px;
    border-radius: 50%;
    background: #0D2646;
    border: 2px solid var(--blue);
    color: var(--white);
    font-family: var(--ff-display);
    font-size: 20px;
    font-weight: var(--fw-bold);
    box-shadow: 0 0 0 8px rgba(48, 187, 242, .08);
}

.csirt-step:nth-child(2) .csirt-step-dot {
    border-color: var(--red);
    box-shadow: 0 0 0 8px rgba(224, 48, 64, .12);
}

.csirt-step:nth-child(3) .csirt-step-dot {
    border-color: var(--green-soft);
    box-shadow: 0 0 0 8px rgba(167, 217, 179, .1);
}

.csirt-step-label {
    display: block;
    margin-bottom: 8px;
    font-family: var(--ff-mono);
    font-size: 11.5px;
    letter-spacing: var(--ls-widest);
    text-transform: uppercase;
    color: var(--blue);
}

.csirt-step h3 {
    font-family: var(--ff-display);
    font-size: 22px;
    font-weight: var(--fw-bold);
    color: var(--white);
    margin-bottom: 10px;
}

.csirt-step p {
    max-width: 320px;
    margin: 0 auto;
    font-size: var(--fs-md);
    color: rgba(255, 255, 255, .6);
    line-height: var(--lh-relaxed);
}

/* ───── Périmètres ───── */
.csirt-crises-label {
    margin: 26px 0 12px;
    font-size: var(--fs-md);
    font-weight: var(--fw-semibold);
    color: var(--navy);
}

.csirt-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.csirt-tags span {
    padding: 6px 14px;
    border-radius: var(--r-pill);
    background: var(--red-lo);
    color: #b3202f;
    font-size: 13px;
    font-weight: var(--fw-medium);
}

.csirt-scopes {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--gap-sm);
    list-style: none;
    padding: 0;
    margin: 0;
}

.csirt-scopes li {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 24px 12px;
    background: var(--white);
    border: 1px solid var(--mist);
    border-radius: var(--r-md);
    font-size: 13.5px;
    font-weight: var(--fw-medium);
    color: var(--navy);
    text-align: center;
    transition: transform var(--dur-slow) var(--ease), box-shadow var(--dur-slow) var(--ease), color var(--dur-slow) var(--ease);
}

.csirt-scope-icon {
    width: 44px;
    height: 44px;
    color: var(--navy-hi);
    transition: color var(--dur-slow) var(--ease), transform var(--dur-slow) var(--ease-spring);
}

.csirt-scopes li:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.csirt-scopes li:hover .csirt-scope-icon {
    color: var(--blue);
    transform: scale(1.1);
}

/* ───── Premiers réflexes ───── */
.csirt-reflexes {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--gap-md);
    list-style: none;
    padding: 0;
    margin: 0;
    counter-reset: none;
}

.csirt-reflexes li {
    display: flex;
    gap: 18px;
    padding: 24px;
    border-radius: var(--r-md);
    border: 1px solid var(--mist);
    background: var(--white);
    transition: border-color var(--dur-slow) var(--ease), background var(--dur-slow) var(--ease);
}

.csirt-reflexes li:hover {
    border-color: rgba(224, 48, 64, .35);
    background: #fffafa;
}

.csirt-reflex-num {
    flex-shrink: 0;
    font-family: var(--ff-display);
    font-size: 30px;
    font-weight: var(--fw-black);
    line-height: 1;
    color: var(--red);
    opacity: .85;
}

.csirt-reflexes h3 {
    font-size: var(--fs-lg);
    font-weight: var(--fw-semibold);
    color: var(--navy);
    margin-bottom: 6px;
}

.csirt-reflexes p {
    font-size: var(--fs-md);
    color: var(--slate);
    line-height: var(--lh-normal);
    margin: 0;
}

/* ───── Contact ───── */
.csirt-contact {
    background: var(--smoke);
    scroll-margin-top: 64px;
}

.csirt-emergency {
    position: relative;
    height: 100%;
    padding: 40px 34px;
    border-radius: var(--r-lg);
    background: linear-gradient(155deg, #071C33 0%, #0D2646 100%);
    color: var(--white);
    overflow: hidden;
}

.csirt-emergency::after {
    content: '';
    position: absolute;
    width: 360px;
    height: 360px;
    right: -160px;
    bottom: -160px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(224, 48, 64, .22) 0%, transparent 65%);
    pointer-events: none;
}

.csirt-emergency .csirt-kicker {
    color: #ff9aa4;
}

.csirt-emergency h2 {
    color: var(--white);
    font-family: var(--ff-display);
    font-size: clamp(26px, 3vw, 36px);
    font-weight: var(--fw-black);
    letter-spacing: -.03em;
    line-height: 1.1;
    margin-bottom: 14px;
}

.csirt-emergency > p {
    color: rgba(255, 255, 255, .6);
    line-height: var(--lh-relaxed);
    margin-bottom: 28px;
}

.csirt-hotline {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 18px;
    margin-bottom: 12px;
    border-radius: var(--r-md);
    border: 1px solid var(--white-a15);
    background: var(--white-a05);
    color: var(--white);
    transition: background var(--dur-base) var(--ease), border-color var(--dur-base) var(--ease), transform var(--dur-base) var(--ease);
}

.csirt-hotline:hover {
    color: var(--white);
    background: var(--white-a08);
    border-color: var(--white-a35);
    transform: translateX(4px);
}

.csirt-hotline small {
    display: block;
    font-size: 12px;
    color: rgba(255, 255, 255, .55);
}

.csirt-hotline strong {
    font-size: var(--fs-xl);
    font-weight: var(--fw-semibold);
    word-break: break-word;
}

.csirt-hotline-ico {
    position: relative;
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--red);
}

.csirt-hotline-ico::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid var(--red);
    animation: csirtPulse 2s var(--ease-out) infinite;
}

.csirt-hotline--mail .csirt-hotline-ico {
    background: var(--navy-hi);
}

.csirt-hotline--mail .csirt-hotline-ico::before {
    display: none;
}

.csirt-emergency-note {
    position: relative;
    z-index: 1;
    margin: 20px 0 0;
    font-size: 13.5px;
    color: rgba(255, 255, 255, .55);
}

.csirt-form-card {
    height: 100%;
    padding: 36px 34px;
    border-radius: var(--r-lg);
    background: var(--white);
    border: 1px solid var(--mist);
    box-shadow: var(--shadow-md);
}

.csirt-form-card h3 {
    font-family: var(--ff-display);
    font-size: 24px;
    font-weight: var(--fw-bold);
    color: var(--navy);
    margin-bottom: 22px;
}

.csirt-form-card .form-label {
    font-size: 13.5px;
    font-weight: var(--fw-medium);
    color: var(--ink);
}

.csirt-form-card .form-control,
.csirt-form-card .form-select {
    border-radius: var(--r-sm);
    border-color: var(--mist);
    font-size: var(--fs-body);
}

.csirt-form-card .form-control:focus,
.csirt-form-card .form-select:focus {
    border-color: var(--blue);
    box-shadow: var(--shadow-focus);
}

.csirt-urgent .form-check {
    padding: 12px 14px 12px 40px;
    border-radius: var(--r-sm);
    background: var(--red-lo);
}

.csirt-urgent .form-check-input:checked {
    background-color: var(--red);
    border-color: var(--red);
}

.csirt-urgent .form-check-label {
    font-weight: var(--fw-medium);
    color: #b3202f;
}

.csirt-form-note {
    margin: 14px 0 0;
    font-size: 12.5px;
    color: var(--slate);
    text-align: center;
}

.csirt-cta {
    background: var(--navy-hi);
}

.csirt-cta .btn-white {
    color: var(--navy) !important;
}

/* ───── Keyframes ───── */
@keyframes csirtSpin {
    to { transform: rotate(360deg); }
}

@keyframes csirtDraw {
    to { stroke-dashoffset: 0; }
}

@keyframes csirtPulse {
    from { transform: scale(.6); opacity: 1; }
    to { transform: scale(1.7); opacity: 0; }
}

@keyframes csirtRing {
    0% { box-shadow: 0 0 0 0 rgba(3, 140, 37, .55); }
    70%, 100% { box-shadow: 0 0 0 14px rgba(3, 140, 37, 0); }
}

@keyframes csirtBlip {
    0%, 100% { opacity: .35; transform: scale(.8); }
    50% { opacity: 1; transform: scale(1.25); }
}

@keyframes csirtBlink {
    50% { opacity: 0; }
}

/* ───── Responsive ───── */
@media (max-width: 1199.98px) {
    .csirt-services {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 991.98px) {
    .csirt-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .csirt-stat:nth-child(3) {
        border-left: 0;
    }

    .csirt-stat:nth-child(n+3) {
        border-top: 1px solid var(--mist);
    }

    .csirt-timeline ol {
        grid-template-columns: 1fr;
        gap: var(--gap-md);
    }

    .csirt-timeline-line {
        display: none;
    }

    .csirt-reflexes {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767.98px) {
    .csirt-hero {
        padding: 48px 0 76px;
    }

    .csirt-services,
    .csirt-reflexes {
        grid-template-columns: 1fr;
    }

    .csirt-scopes {
        grid-template-columns: repeat(2, 1fr);
    }

    .csirt-stat {
        padding: 20px 18px;
    }

    .csirt-emergency,
    .csirt-form-card {
        padding: 28px 20px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .csirt-btn-alert::after,
    .radar-sweep,
    .blip,
    .csirt-card-icon .pulse-dot,
    .csirt-card-icon .blink,
    .csirt-hotline-ico::before {
        animation: none;
    }

    .shield-check,
    .csirt-card .draw,
    .csirt-timeline .draw {
        stroke-dashoffset: 0;
        animation: none !important;
    }
}
