/* =======================================================
   website.css — Dévoué.ai Vitrine
   Charte graphique : néobrutalist, Coustard + Orienta,
   palette blanc / noir / bleu #2B6CB0
   ======================================================= */

@import url('https://fonts.googleapis.com/css2?family=Coustard:wght@400;900&family=Orienta&display=swap');

/* ── Design Tokens ─────────────────────────────────────── */
:root {
    /* Colors */
    --w-white:          #FFFFFF;
    --w-black:          #1A1A1A;
    --w-blue:           #2B6CB0;
    --w-blue-light:     #EBF4FF;
    --w-blue-100:       #BEE3F8;
    --w-blue-200:       #90CDF4;
    --w-blue-600:       #2C5282;
    --w-blue-700:       #2A4365;
    --w-gray-50:        #FAFAFA;
    --w-gray-100:       #F5F5F5;
    --w-gray-200:       #E5E5E5;
    --w-gray-300:       #D4D4D4;
    --w-gray-400:       #A3A3A3;
    --w-gray-500:       #737373;
    --w-gray-600:       #525252;

    /* Semantic aliases (used throughout) */
    --w-bg:             var(--w-white);
    --w-surface:        var(--w-white);
    --w-bg-alt:         var(--w-gray-50);
    --w-text:           var(--w-black);
    --w-text-muted:     var(--w-gray-600);
    --w-border:         var(--w-black);
    --w-accent:         var(--w-blue);
    --w-accent-light:   var(--w-blue-light);
    --w-primary:        var(--w-blue);
    --w-primary-bg:     var(--w-blue-light);
    --w-primary-dark:   var(--w-blue-600);

    /* Typography */
    --w-font-display:   'Coustard', Georgia, serif;
    --w-font:           'Orienta', 'Segoe UI', sans-serif;

    /* Borders */
    --w-border-thin:    2px solid var(--w-black);
    --w-border-thick:   3px solid var(--w-black);

    /* Shadows (offset, no blur — néobrutalist) */
    --w-shadow-sm:      2px 2px 0 var(--w-black);
    --w-shadow:         4px 4px 0 var(--w-black);
    --w-shadow-lg:      6px 6px 0 var(--w-black);

    /* Radii */
    --w-radius:         8px;
    --w-radius-sm:      4px;
    --w-radius-xs:      4px;

    /* Transitions */
    --w-transition:     150ms ease;
}

/* ── Reset ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    font-family: var(--w-font);
    background: var(--w-bg);
    color: var(--w-text);
    line-height: 1.65;
    font-size: 1rem;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
img, svg { display: block; max-width: 100%; }
ul, ol { list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }

a {
    color: var(--w-accent);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color var(--w-transition);
}
a:hover { color: var(--w-blue-600); }

h1, h2, h3, h4, h5, h6 {
    font-family: var(--w-font-display);
    font-weight: 700;
    line-height: 1.2;
    color: var(--w-text);
    overflow-wrap: break-word;
}

::selection { background-color: var(--w-blue-200); color: var(--w-black); }

/* ── Layout ────────────────────────────────────────────── */
.site-wrapper { display: flex; flex-direction: column; min-height: 100vh; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 1.5rem; }
.main-content { flex: 1; }

/* ── Header ────────────────────────────────────────────── */
.site-header {
    background: var(--w-white);
    border-bottom: var(--w-border-thick);
    position: sticky;
    top: 0;
    z-index: 100;
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

/* Logo */
.logo {
    font-family: var(--w-font-display);
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--w-black);
    letter-spacing: -0.5px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.15rem;
}
.logo:hover { color: var(--w-black); }
.logo-dot { color: var(--w-accent); }

/* Nav */
.site-nav { display: flex; align-items: center; gap: 0.25rem; }
.nav-link {
    padding: 0.45rem 0.9rem;
    border-radius: var(--w-radius-sm);
    color: var(--w-text-muted);
    font-weight: 700;
    font-size: 0.95rem;
    transition: all var(--w-transition);
    text-decoration: none;
    border: 2px solid transparent;
}
.nav-link:hover, .nav-link.active {
    background: var(--w-accent-light);
    color: var(--w-blue-700);
    border-color: var(--w-accent);
}

.nav-workspace {
    border: var(--w-border-thin);
    color: var(--w-text) !important;
    padding: 0.43rem 1.1rem;
    border-radius: var(--w-radius-sm);
    font-weight: 700;
    text-decoration: none;
    transition: all var(--w-transition);
}
.nav-workspace:hover {
    background: var(--w-gray-100);
    box-shadow: var(--w-shadow-sm);
    transform: translate(-1px, -1px);
}

.nav-cta {
    background: var(--w-accent);
    color: var(--w-white) !important;
    padding: 0.5rem 1.2rem;
    border-radius: var(--w-radius-sm);
    font-weight: 700;
    margin-left: 0.25rem;
    border: var(--w-border-thin);
    text-decoration: none;
    transition: all var(--w-transition);
}
.nav-cta:hover {
    background: var(--w-blue-600);
    color: var(--w-white) !important;
    box-shadow: var(--w-shadow);
    transform: translate(-2px, -2px);
}

/* Mobile hamburger */
.nav-toggle {
    display: none;
    background: none;
    border: var(--w-border-thin);
    border-radius: var(--w-radius-sm);
    cursor: pointer;
    padding: 0.4rem 0.5rem;
    flex-direction: column;
    gap: 5px;
}
.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--w-black);
    border-radius: 2px;
}

/* ── Hero (home) ───────────────────────────────────────── */
.hero {
    background: var(--w-accent-light);
    border-bottom: var(--w-border-thick);
    padding: 5rem 0 4.5rem;
    text-align: center;
}
.hero-eyebrow {
    display: inline-block;
    background: var(--w-white);
    color: var(--w-blue-700);
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.3rem 1rem;
    border-radius: var(--w-radius-sm);
    margin-bottom: 1.25rem;
    border: var(--w-border-thin);
    box-shadow: var(--w-shadow-sm);
}
.hero h1 {
    font-family: var(--w-font-display);
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 900;
    color: var(--w-black);
    line-height: 1.15;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}
.hero h1 em {
    font-style: normal;
    color: var(--w-accent);
}
.hero-sub {
    font-size: 1.1rem;
    color: var(--w-text-muted);
    max-width: 540px;
    margin: 0 auto 2.75rem;
}

/* ── Project Form Card ─────────────────────────────────── */
#create-project {
    padding: 0 1.5rem 4rem;
    background: var(--w-accent-light);
    border-bottom: var(--w-border-thick);
}
.form-card {
    background: var(--w-white);
    border-radius: var(--w-radius);
    border: var(--w-border-thick);
    box-shadow: var(--w-shadow);
    padding: 2rem 2rem 1.75rem;
    max-width: 680px;
    margin: 0 auto;
    text-align: left;
}
.form-group { margin-bottom: 1.25rem; }
.form-label {
    display: block;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--w-text);
    margin-bottom: 0.4rem;
}
.form-label .required { color: var(--w-accent); margin-left: 2px; }
.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: var(--w-border-thin);
    border-radius: var(--w-radius-sm);
    font-family: var(--w-font);
    font-size: 0.97rem;
    color: var(--w-text);
    background: var(--w-white);
    outline: none;
    transition: border-color var(--w-transition), box-shadow var(--w-transition);
    -webkit-appearance: none;
}
.form-control:focus {
    border-color: var(--w-accent);
    box-shadow: 3px 3px 0 var(--w-accent);
}
.form-control::placeholder { color: var(--w-gray-400); }
textarea.form-control { resize: vertical; min-height: 110px; line-height: 1.6; }
select.form-control { cursor: pointer; }
.form-hint { font-size: 0.83rem; color: var(--w-text-muted); margin-top: 0.3rem; }

.btn-create {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.95rem 1.5rem;
    background: var(--w-accent);
    color: var(--w-white);
    font-family: var(--w-font);
    font-size: 1.05rem;
    font-weight: 700;
    border: var(--w-border-thick);
    border-radius: var(--w-radius-sm);
    cursor: pointer;
    transition: all var(--w-transition);
    margin-top: 0.5rem;
}
.btn-create:hover {
    background: var(--w-blue-600);
    box-shadow: var(--w-shadow);
    transform: translate(-2px, -2px);
}
.btn-create:active { transform: translate(0, 0); box-shadow: none; }

/* ── Page Hero (internal pages) ────────────────────────── */
.page-hero {
    background: var(--w-accent-light);
    border-bottom: var(--w-border-thick);
    padding: 4rem 0 3.5rem;
    text-align: center;
}
.page-hero h1 {
    font-family: var(--w-font-display);
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 900;
    color: var(--w-black);
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
}
.page-hero p {
    font-size: 1.05rem;
    color: var(--w-text-muted);
    max-width: 520px;
    margin: 0 auto;
}

/* ── Sections ──────────────────────────────────────────── */
.section { padding: 4rem 0; background: var(--w-white); }
.section-alt { background: var(--w-gray-50); border-top: var(--w-border-thin); border-bottom: var(--w-border-thin); }
.section-title {
    font-family: var(--w-font-display);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--w-text);
    margin-bottom: 0.5rem;
    padding-bottom: 0.75rem;
    border-bottom: var(--w-border-thick);
    display: inline-block;
}
.section-sub {
    color: var(--w-text-muted);
    font-size: 1.05rem;
    margin-bottom: 2.5rem;
    margin-top: 0.5rem;
}

/* ── Cards grid ────────────────────────────────────────── */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}
.card {
    background: var(--w-white);
    border: var(--w-border-thick);
    border-radius: var(--w-radius);
    padding: 1.75rem 1.5rem;
    transition: all var(--w-transition);
}
.card:hover {
    box-shadow: var(--w-shadow);
    transform: translate(-2px, -2px);
}
.card-icon {
    width: 54px;
    height: 54px;
    background: var(--w-accent-light);
    border-radius: var(--w-radius-sm);
    border: var(--w-border-thin);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin-bottom: 1.2rem;
}
.card h3 {
    font-family: var(--w-font-display);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--w-text);
    margin-bottom: 0.5rem;
}
.card p { color: var(--w-text-muted); font-size: 0.97rem; line-height: 1.65; }

/* ── About (who-we-are) ────────────────────────────────── */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}
.about-lead { font-size: 1.05rem; color: var(--w-text-muted); line-height: 1.75; margin-bottom: 1.5rem; }
.about-values { list-style: none; display: flex; flex-direction: column; gap: 0.8rem; }
.about-values li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-weight: 700;
    color: var(--w-text);
    font-size: 0.97rem;
}
.about-values li::before {
    content: '✦';
    color: var(--w-accent);
    font-size: 0.75rem;
    margin-top: 0.35rem;
    flex-shrink: 0;
}
.about-visual {
    background: var(--w-accent-light);
    border-radius: var(--w-radius);
    border: var(--w-border-thick);
    box-shadow: var(--w-shadow);
    padding: 2.5rem 2rem;
    text-align: center;
}
.stats-row { display: flex; gap: 2rem; justify-content: center; margin-bottom: 0.25rem; }
.stat-item { text-align: center; }
.stat-num {
    font-family: var(--w-font-display);
    font-size: 2.8rem;
    font-weight: 900;
    color: var(--w-accent);
    line-height: 1;
}
.stat-label {
    color: var(--w-text-muted);
    font-weight: 700;
    font-size: 0.88rem;
    margin-top: 0.25rem;
}
.about-visual-note {
    color: var(--w-text-muted);
    font-size: 0.92rem;
    margin-top: 1.5rem;
    font-style: italic;
}

/* ── Projects ──────────────────────────────────────────── */
.project-card {
    background: var(--w-white);
    border: var(--w-border-thick);
    border-radius: var(--w-radius);
    overflow: hidden;
    transition: all var(--w-transition);
}
.project-card:hover {
    box-shadow: var(--w-shadow);
    transform: translate(-2px, -2px);
}
.project-thumb {
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    border-bottom: var(--w-border-thin);
}
.project-thumb.t1 { background: var(--w-blue-light); }
.project-thumb.t2 { background: var(--w-blue-100); }
.project-thumb.t3 { background: #F0FFF4; }
.project-thumb.t4 { background: #F5F0FF; }
.project-thumb.t5 { background: #FFFFF0; }
.project-thumb.t6 { background: #FFF0F5; }
.project-body { padding: 1.25rem 1.5rem 1.5rem; }
.project-tag {
    display: inline-block;
    background: var(--w-accent-light);
    color: var(--w-blue-700);
    font-size: 0.78rem;
    font-weight: 700;
    padding: 0.2rem 0.65rem;
    border-radius: var(--w-radius-sm);
    margin-bottom: 0.6rem;
    border: 2px solid var(--w-accent);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.project-body h3 {
    font-family: var(--w-font-display);
    font-size: 1.08rem;
    font-weight: 700;
    color: var(--w-text);
    margin-bottom: 0.4rem;
}
.project-body p { color: var(--w-text-muted); font-size: 0.94rem; line-height: 1.6; }

/* ── Contact ───────────────────────────────────────────── */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    gap: 3rem;
    align-items: start;
}
.contact-info h3 {
    font-family: var(--w-font-display);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    padding-bottom: 0.5rem;
    border-bottom: var(--w-border-thin);
}
.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
    color: var(--w-text-muted);
    font-size: 0.97rem;
}
.contact-item-icon {
    width: 38px;
    height: 38px;
    background: var(--w-accent-light);
    border-radius: var(--w-radius-sm);
    border: var(--w-border-thin);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.1rem;
}
.contact-form-card {
    background: var(--w-white);
    border: var(--w-border-thick);
    border-radius: var(--w-radius);
    box-shadow: var(--w-shadow);
    padding: 2rem;
}
.btn-submit {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.82rem 2rem;
    background: var(--w-accent);
    color: var(--w-white);
    font-family: var(--w-font);
    font-size: 1rem;
    font-weight: 700;
    border: var(--w-border-thick);
    border-radius: var(--w-radius-sm);
    cursor: pointer;
    transition: all var(--w-transition);
    text-decoration: none;
}
.btn-submit:hover {
    background: var(--w-blue-600);
    color: var(--w-white);
    box-shadow: var(--w-shadow);
    transform: translate(-2px, -2px);
}
.btn-submit:active { transform: translate(0, 0); box-shadow: none; }
.success-banner {
    display: none;
    background: var(--w-accent-light);
    border: var(--w-border-thin);
    color: var(--w-blue-700);
    padding: 1rem 1.25rem;
    border-radius: var(--w-radius-sm);
    font-weight: 700;
    margin-bottom: 1.25rem;
    text-align: center;
    font-size: 0.97rem;
}

/* ── Footer ────────────────────────────────────────────── */
.site-footer {
    background: var(--w-black);
    color: rgba(255, 255, 255, 0.72);
    padding: 3rem 0 1.5rem;
    border-top: var(--w-border-thick);
}
.footer-inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    margin-bottom: 1.5rem;
}
.footer-brand .logo {
    color: var(--w-white);
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
    display: inline-flex;
}
.footer-brand .logo:hover { color: var(--w-white); }
.footer-brand p { font-size: 0.92rem; line-height: 1.7; color: rgba(255, 255, 255, 0.5); }
.footer-col h4 { color: var(--w-white); font-family: var(--w-font-display); font-weight: 700; font-size: 0.9rem; margin-bottom: 1rem; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.footer-links a {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.92rem;
    text-decoration: none;
    transition: color var(--w-transition);
}
.footer-links a:hover { color: var(--w-blue-200); }
.footer-copy { text-align: center; font-size: 0.84rem; color: rgba(255, 255, 255, 0.3); }

/* ── Responsive ────────────────────────────────────────── */
@media (max-width: 768px) {
    .nav-toggle { display: flex; }
    .site-nav {
        display: none;
        flex-direction: column;
        align-items: stretch;
        position: absolute;
        top: 72px;
        left: 0;
        right: 0;
        background: var(--w-white);
        padding: 1rem 1.5rem;
        border-bottom: var(--w-border-thick);
        z-index: 99;
    }
    .site-nav.open { display: flex; }
    .site-header { position: relative; }
    .nav-link { border-radius: var(--w-radius-sm); }
    .nav-workspace { margin-top: 0.5rem; }
    .nav-cta { margin-left: 0; margin-top: 0.25rem; text-align: center; }

    .hero { padding: 3rem 0 0; }
    #create-project { padding: 0 1rem 3rem; }
    .form-card { padding: 1.5rem; }

    .about-grid { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
    .footer-inner { grid-template-columns: 1fr 1fr; }
    .footer-inner > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
    .stats-row { flex-direction: column; gap: 1rem; }
    .footer-inner { grid-template-columns: 1fr; }
}
