
/* =========================================
   CONFIGURATION GÉNÉRALE
   ========================================= */

:root {
    font-family: system-ui, -apple-system, Segoe UI, sans-serif;
    color: #303538;
    background: #e9ebea;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
}

/* =========================================
   CONTENEUR PRINCIPAL
   ========================================= */

.wrap {
    max-width: 1120px;
    margin: auto;
    padding: 32px 22px 24px;
}

/* =========================================
   EN-TÊTE
   ========================================= */

.header {
    display: flex;
    align-items: center;
    gap: 28px;
    padding: 24px 26px;
    background: #f8f9f7;
    border: 1px solid #d9dedb;
    border-radius: 18px;
    cursor: pointer;
}

.logo {
    width: 140px;
    height: 140px;
    object-fit: contain;
    mix-blend-mode: multiply;
}

.eyebrow {
    font-size: 11px;
    letter-spacing: 2.2px;
    font-weight: 700;
    color: #6d7a71;
}

.header h1 {
    font-size: clamp(26px, 4vw, 39px);
    letter-spacing: -1.5px;
    margin: 8px 0;
    color: #252a29;
}

.header p {
    color: #606a65;
    margin: 0;
    font-size: 15px;
}

/* =========================================
   PRÉSENTATION
   ========================================= */

.intro {
    font-size: 14px;
    line-height: 1.8;
    color: #555e59;

    max-width: 840px;
    width: fit-content;

    margin: 25px auto 29px;
    text-align: left;
}

/* =========================================
   MOTEUR DE RECHERCHE INTERNET
   ========================================= */

.websearch {
    margin: 0 auto;
    padding-top: 60px;
    padding-bottom: 20px;
    max-width: 760px;
    text-align: center;
}

.websearch h2 {
    font-size: 19px;
    letter-spacing: -.3px;
    margin: 0 0 7px;
    color: #303b33;
}

.websearch p {
    font-size: 13px;
    color: #68746b;
    margin: 0 0 17px;
}

.websearch form {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 8px 7px 18px;
    background: white;
    border: 1px solid #cbd3cc;
    border-radius: 999px;
    box-shadow: 0 5px 20px #26362c0b;
}

.websearch form:focus-within {
    border-color: #657c6b;
    box-shadow: 0 0 0 3px #657c6b20;
}

.websearch label {
    font-size: 20px;
    color: #68776c;
}

.websearch input {
    border: 0;
    box-shadow: none;
    min-width: 0;
    max-width: none;
    width: 100%;
    padding: 11px 4px;
    font-size: 15px;
    background: transparent;
}

.websearch input:focus {
    border: 0;
    outline: none;
}

.websearch button {
    border: 0;
    border-radius: 999px;
    background: #465b4d;
    color: #fff;
    padding: 12px 21px;
    font-weight: 650;
    cursor: pointer;
    white-space: nowrap;
}

.websearch button:hover {
    background: #34493b;
}

/* =========================================
   RECHERCHE DES SERVICES ET CATÉGORIES
   ========================================= */

.toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 20px;
}

input {
    background: #fff;
    border: 1px solid #cfd5d0;
    border-radius: 10px;
    padding: 12px 15px;
    font: inherit;
    font-size: 13px;
    min-width: 230px;
    flex: 1;
    max-width: 350px;
    outline: none;
}

input:focus {
    border-color: #6c8574;
}

.filters {
    display: flex;
    gap: 7px;
    flex-wrap: wrap;
}

.filter {
    background: #f6f7f5;
    color: #515d56;
    border: 1px solid #d6dbd7;
    border-radius: 9px;
    padding: 10px 13px;
    cursor: pointer;
    font-size: 12px;
}

.filter.active {
    background: #465b4d;
    color: white;
    border-color: #465b4d;
}

/* =========================================
   GRILLE DES SERVICES
   ========================================= */

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

/* =========================================
   CARTES DES SERVICES
   ========================================= */

.card {
    background: #fff;
    border: 1px solid #d9ddda;
    border-radius: 14px;
    padding: 21px;
    display: flex;
    flex-direction: column;
    min-height: 232px;
    box-shadow: 0 3px 13px #26362c09;
}

.card:hover {
    border-color: #9daa9e;
    box-shadow: 0 6px 20px #26362c14;
}

.top {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ico {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    background: #edf1ec;
    border-radius: 11px;
    font-size: 23px;
    color: #435b4b;
}

.name {
    font-size: 16px;
    font-weight: 720;
}

.desc {
    color: #68726c;
    font-size: 13px;
    line-height: 1.65;
    flex: 1;
    margin: 15px 0;
}

/* =========================================
   BOUTONS D'ACCÈS
   ========================================= */

.access {
    display: block;
    text-align: center;
    background: #475d4e;
    color: #fff;
    padding: 11px;
    border-radius: 9px;
    text-decoration: none;
    font-size: 12px;
    font-weight: 650;
}

.access:hover {
    background: #34493b;
}

.access.disabled {
    background: #e8ece9;
    color: #7b847d;
    cursor: default;
}

/* =========================================
   ORIGINE DES PROJETS
   ========================================= */

.origin {
    border-top: 1px solid #eceeec;
    margin-top: 15px;
    padding-top: 13px;
    color: #7b847d;
    font-size: 12px;
}

.origin a {
    color: #415b4a;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* =========================================
   PIED DE PAGE
   ========================================= */

.footer {
    margin-top: 27px;
    padding-top: 17px;
    border-top: 1px solid #d2d7d2;
    color: #7c8580;
    font-size: 12px;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

/* =========================================
   ACCESSIBILITÉ
   ========================================= */

button:focus-visible,
a:focus-visible {
    outline: 2px solid #52735c;
    outline-offset: 3px;
}

/* =========================================
   RESPONSIVE - TABLETTES
   ========================================= */

@media (max-width: 800px) {
    .grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* =========================================
   RESPONSIVE - SMARTPHONES
   ========================================= */

@media (max-width: 570px) {
    .websearch button {
        padding: 12px 14px;
    }

    .websearch h2 {
        font-size: 17px;
    }

    .grid {
        grid-template-columns: 1fr;
    }

    .header {
        gap: 14px;
        padding: 17px;
    }

    .logo {
        width: 85px;
        height: 85px;
    }

    .wrap {
        padding: 15px;
    }

    .header p {
        font-size: 12px;
    }

    input {
        max-width: none;
        width: 100%;
    }
}

/* =========================================
   COMPTEUR DE VISITES
   ========================================= */

.visits {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    font-size: 12px;
    color: #7c8580;
}
