/* -------------------------------------------------
   RESET & VARIABLES
------------------------------------------------- */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Palette claire */
    --bg-gradient: radial-gradient(circle at top, #e5f0ff 0, #f5f7fb 40%, #f9fafb 100%);
    --card-bg: #ffffff;
    --card-border: #e5e7eb;
    --accent: #2563eb;
    --accent-soft: rgba(37, 99, 235, 0.08);
    --text-main: #111827;
    --text-muted: #6b7280;
    --danger: #fb7185;
} 

/* -------------------------------------------------
   BASE
------------------------------------------------- */

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: var(--bg-gradient);
    color: var(--text-main);
    min-height: 100vh;
}

main {
    max-width: 1200px;
    margin: 2rem auto 1rem;
    padding: 0 1.5rem 2.7rem;
}

/* -------------------------------------------------
   HEADER / NAV / LOGO
------------------------------------------------- */

header {
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(18px);
    background: rgba(255, 255, 255, 0.9);
    border-bottom: 1px solid #e5e7eb;
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.7rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.logo-img {
    height: 55px;
    width: auto;
    display: block;
}

.logo span {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-muted);
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 0.7rem;
    flex-wrap: wrap;
}

nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    border: 1px solid transparent;
    transition: all 0.18s ease-out;
}

nav a:hover {
    border-color: #d1d5db;
    color: var(--text-main);
    background: #f3f4f6;
}

nav a.active {
    background: var(--accent-soft);
    color: #1d4ed8;
    border-color: rgba(37, 99, 235, 0.6);
}

/* -------------------------------------------------
   HERO
------------------------------------------------- */

.hero {
    position: relative;
    overflow: hidden;
    border-radius: 1.5rem;
    margin-bottom: 2rem;
    background: radial-gradient(circle at top left, rgba(191, 219, 254, 0.8), transparent 55%);
    border: 1px solid #e5e7eb;
    box-shadow:
        0 18px 45px rgba(15, 23, 42, 0.07),
        0 0 0 1px rgba(255, 255, 255, 0.7);
}

.hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
    gap: 1.5rem;
    padding: 2.3rem 2rem;
    position: relative;
    z-index: 1;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(to bottom, rgba(255, 255, 255, 0.85), rgba(248, 250, 252, 0.95)),
        url("https://images.pexels.com/photos/1181675/pexels-photo-1181675.jpeg?auto=compress&cs=tinysrgb&w=1600");
    background-size: cover;
    background-position: center;
    opacity: 0.6;
    z-index: 0;
}

.hero-left h1 {
    font-size: 2.35rem;
    line-height: 1.15;
    margin-bottom: 0.6rem;
    color: #0f172a;
}

.hero-gradient-text {
    background: linear-gradient(to right, #1d4ed8, #0ea5e9, #6366f1);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-subtitle {
    font-size: 0.98rem;
    color: var(--text-muted);
    max-width: 36rem;
    margin-bottom: 1.2rem;
}

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.4rem;
}

.badge-pill {
    font-size: 0.78rem;
    padding: 0.25rem 0.7rem;
    border-radius: 999px;
    border: 1px solid #e5e7eb;
    background: rgba(255, 255, 255, 0.9);
    color: var(--text-muted);
}

.hero-actions {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.btn-primary,
.btn-secondary {
    padding: 0.55rem 1.3rem;
    border-radius: 999px;
    border: 1px solid transparent;
    font-size: 0.9rem;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: all 0.16s ease-out;
}

.btn-primary {
    background: linear-gradient(to right, #3b82f6, #2563eb);
    border: 0;
    color: #eff6ff;
    font-weight: 600;
    box-shadow: 0 14px 30px rgba(37, 99, 235, 0.35);
}

.btn-primary:hover {
    filter: brightness(1.05);
    transform: translateY(-1px);
}

.btn-secondary {
    background: #ffffff;
    color: var(--text-main);
    border-color: #d1d5db;
}

.btn-secondary:hover {
    background: #f3f4f6;
    transform: translateY(-1px);
}

.hero-right {
    display: flex;
    align-items: stretch;
    justify-content: flex-end;
}

.hero-card {
    background: rgba(255, 255, 255, 0.96);
    border-radius: 1.2rem;
    padding: 1.3rem;
    border: 1px solid #e5e7eb;
    width: 100%;
    max-width: 320px;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.08);
}

.hero-stat {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.hero-stat strong {
    color: var(--text-main);
}

/* -------------------------------------------------
   SECTIONS / CARDS / TITLES
------------------------------------------------- */

.page-title {
    font-size: 1.7rem;
    margin-bottom: 0.4rem;
    color: #0f172a;
}

.page-subtitle {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 1.4rem;
}

.section-card {
    background: var(--card-bg);
    border-radius: 1.2rem;
    padding: 1.4rem 1.6rem;
    margin-bottom: 1.3rem;
    border: 1px solid var(--card-border);
    box-shadow: 0 14px 35px rgba(15, 23, 42, 0.05);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 0.5rem;
    margin-bottom: 0.9rem;
}

.section-header h2 {
    font-size: 1.2rem;
    color: #0f172a;
}

.section-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--accent);
}

/* -------------------------------------------------
   GRID LAYOUTS
------------------------------------------------- */

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.2rem;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

/* -------------------------------------------------
   INFO BLOCKS / TEXT
------------------------------------------------- */

.info-block {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    font-size: 0.95rem;
}

.info-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--text-muted);
}

.info-value {
    font-size: 1rem;
}

.section-card ul {
    list-style: none;
    margin-top: 0.3rem;
}

.section-card ul li {
    padding-left: 1.2rem;
    position: relative;
    margin-bottom: 0.35rem;
    font-size: 0.95rem;
    color: var(--text-main);
}

.section-card ul li::before {
    content: "▹";
    position: absolute;
    left: 0;
    color: var(--accent);
}

.inline-list {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    font-size: 0.9rem;
}

/* -------------------------------------------------
   TEAM CARDS
------------------------------------------------- */

.team-card {
    background: linear-gradient(135deg, #ffffff, #e0ecff);
    border-radius: 1rem;
    padding: 1rem;
    border: 1px solid #d1d5db;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.7rem;
    align-items: center;
}

.team-avatar {
    width: 52px;
    height: 52px;
    border-radius: 999px;
    border: 2px solid rgba(37, 99, 235, 0.7);
    overflow: hidden;
}

.team-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-role {
    font-size: 0.8rem;
    color: #1d4ed8;
    text-transform: uppercase;
    letter-spacing: 0.14em;
}

.team-name {
    font-weight: 600;
    font-size: 1rem;
}

/* -------------------------------------------------
   TAGS, BADGES
------------------------------------------------- */

.tag {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    font-size: 0.78rem;
    color: var(--text-muted);
}

.tag span {
    font-size: 0.85rem;
}

/* -------------------------------------------------
   REFERENCES / PARTENAIRES / LOGOS
------------------------------------------------- */

.client-block,
.partner-block {
    margin-bottom: 0.8rem;
}

.client-block h3,
.partner-block h3 {
    font-size: 1rem;
    margin-bottom: 0.15rem;
    color: #111827;
}

.client-logo {
    width: 160px;
    height: auto;
    margin-bottom: 0.5rem;
    border-radius: 0.5rem;
    opacity: 0.95;
    background: #ffffff;
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    text-align: center;
}

.partner-item img {
    width: 90px;
    height: auto;
    margin-bottom: 0.4rem;
    opacity: 0.97;
}

.partner-item h3 {
    font-size: 0.95rem;
    margin-bottom: 0.1rem;
}

.partner-item p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* -------------------------------------------------
   CONTACT PAGE
------------------------------------------------- */

.contact-grid {
    align-items: stretch;
}

.contact-card {
    background: linear-gradient(135deg, #ffffff, #eef5ff);
    border-radius: 1rem;
    padding: 1rem;
    border: 1px solid #d1d5db;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.contact-title {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.contact-line {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    font-size: 0.95rem;
}

.contact-key {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--text-muted);
    white-space: nowrap;
}

.contact-val {
    color: var(--text-main);
    text-align: right;
}

.contact-note {
    margin-top: 0.6rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    padding-top: 0.6rem;
    border-top: 1px solid #e5e7eb;
}

.map-wrap {
    border-radius: 0.9rem;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    height: 260px;
    background: #ffffff;
}

.map-wrap iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.field label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--text-muted);
}

.field input,
.field textarea {
    width: 100%;
    border-radius: 0.9rem;
    border: 1px solid #d1d5db;
    padding: 0.8rem 0.95rem;
    font-size: 0.95rem;
    background: #ffffff;
    outline: none;
    transition: border-color 0.15s ease-out, box-shadow 0.15s ease-out;
}

.field input:focus,
.field textarea:focus {
    border-color: rgba(37, 99, 235, 0.7);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.10);
}

.form-actions {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
    align-items: center;
}

.rgpd {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.2rem;
}

/* -------------------------------------------------
   FOOTER
------------------------------------------------- */

footer {
    border-top: 1px solid #e5e7eb;
    padding: 1rem 1.5rem 1.3rem;
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-muted);
    background: #ffffff;
}

/* -------------------------------------------------
   RESPONSIVE
------------------------------------------------- */

@media (max-width: 900px) {
    .hero-inner {
        grid-template-columns: 1fr;
    }

    .hero-right {
        justify-content: flex-start;
    }
}

@media (max-width: 768px) {
    .grid-2,
    .grid-3,
    .partners-grid {
        grid-template-columns: 1fr;
    }

    .header-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    main {
        padding-inline: 1rem;
    }
}
