/* =========================================
   L'IA simplement
   Style principal
   ========================================= */

:root {
    --bleu: #315c8c;
    --bleu-fonce: #24466b;
    --bleu-tres-fonce: #1c3550;
    --bleu-clair: #eaf2f9;

    --fond: #f6f8fa;
    --blanc: #ffffff;

    --texte: #263238;
    --texte-clair: #5f6b75;

    --bordure: #dce3e9;
    --accent: #e79b45;

    --ombre: 0 4px 15px rgba(0, 0, 0, 0.07);
}


/* =========================================
   BASE
   ========================================= */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--texte);
    background: var(--fond);
    line-height: 1.6;
}

.container {
    width: min(1100px, 92%);
    margin: auto;
}


/* =========================================
   TYPOGRAPHIE
   ========================================= */

h1,
h2,
h3 {
    line-height: 1.25;
}

h2 {
    color: var(--bleu-fonce);
    margin-top: 0;
}

p {
    margin-top: 0;
}


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

header {
    background: linear-gradient(
        135deg,
        var(--bleu),
        var(--bleu-fonce)
    );

    color: var(--blanc);
    padding-top: 30px;
}

header h1 {
    margin: 0;
    font-size: 2.4rem;
    letter-spacing: -0.5px;
}

.baseline {
    margin: 8px 0 25px;
    font-size: 1.1rem;
    opacity: 0.95;
}


/* =========================================
   MENU
   ========================================= */

nav {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

nav a {
    color: white;
    text-decoration: none;

    padding: 12px 15px;

    border-radius: 7px 7px 0 0;

    transition:
        background 0.2s ease,
        transform 0.2s ease;
}

nav a:hover {
    background: rgba(255, 255, 255, 0.15);
}


/* =========================================
   CONTENU
   ========================================= */

main {
    padding: 45px 0;
}

.intro {
    background: var(--blanc);

    padding: 35px;

    border: 1px solid var(--bordure);
    border-radius: 14px;

    box-shadow: var(--ombre);

    margin-bottom: 40px;
}

.intro h2 {
    font-size: 1.8rem;
}


/* =========================================
   CARTES
   ========================================= */

.cards {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 22px;

    margin-bottom: 45px;
}

.card {
    background: var(--blanc);

    padding: 28px;

    border: 1px solid var(--bordure);
    border-radius: 14px;

    box-shadow: var(--ombre);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.card:hover {
    transform: translateY(-3px);

    box-shadow:
        0 8px 25px rgba(0, 0, 0, 0.10);
}

.card h3 {
    color: var(--bleu-fonce);
    font-size: 1.35rem;
    margin-top: 0;
}

.card p {
    color: var(--texte-clair);
    min-height: 70px;
}


/* =========================================
   BOUTONS
   ========================================= */

.button {
    display: inline-block;

    background: var(--bleu);
    color: white;

    text-decoration: none;

    padding: 10px 18px;

    border-radius: 7px;

    font-weight: bold;

    transition:
        background 0.2s ease,
        transform 0.2s ease;
}

.button:hover {
    background: var(--bleu-fonce);
    transform: translateY(-1px);
}


/* =========================================
   QUE VOULEZ-VOUS FAIRE ?
   ========================================= */

.uses {
    margin-bottom: 45px;
}

.uses-grid {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 12px;
}

.uses-grid div {
    background: var(--blanc);

    border: 1px solid var(--bordure);

    border-radius: 9px;

    padding: 15px;

    text-align: center;

    color: var(--bleu-fonce);

    transition:
        background 0.2s ease,
        border-color 0.2s ease;
}

.uses-grid div:hover {
    background: var(--bleu-clair);
    border-color: var(--bleu);
}


/* =========================================
   BLOC IMPORTANT
   ========================================= */

.highlight {
    background: var(--bleu-clair);

    border-left: 6px solid var(--accent);

    padding: 28px 32px;

    border-radius: 10px;

    margin-bottom: 40px;
}

.highlight h2 {
    margin-bottom: 15px;
}

.highlight p:last-child {
    margin-bottom: 0;
}


/* =========================================
   APPEL À L'ACTION
   ========================================= */

.discover {
    background: var(--blanc);

    border: 1px solid var(--bordure);

    border-radius: 14px;

    padding: 32px;

    text-align: center;

    box-shadow: var(--ombre);
}

.discover h2 {
    margin-bottom: 10px;
}

.discover p {
    max-width: 700px;
    margin: 0 auto 22px;
    color: var(--texte-clair);
}

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

footer {
    background: var(--bleu-tres-fonce);

    color: white;

    text-align: center;

    padding: 30px 0;

    margin-top: 20px;
}

footer p {
    margin: 4px 0;
}

footer a {
    color: white;
    text-decoration: none;
}

footer a:hover {
    color: var(--bleu-clair);
    text-decoration: underline;
}

/* =========================================
   FIL D'ARIANE
   ========================================= */

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;

    margin-bottom: 25px;

    font-size: 0.95rem;
    color: var(--texte-clair);
}

.breadcrumb a {
    color: var(--bleu);
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb span {
    color: #9aa5ad;
}
/* Liens de la section "Que voulez-vous faire ?" */

.uses-grid a {
    display: flex;
    align-items: center;
    justify-content: center;

    padding: 18px;
    
    background: #f4f7fb;
    color: #2c3e50;

    text-decoration: none;

    border-radius: 10px;

    border: 1px solid #dce4ec;

    font-weight: 600;

    transition: all 0.2s ease;
}


.uses-grid a:hover {
    background: #e8f0f8;
    color: #1d5f8a;

    border-color: #b9cddd;

    transform: translateY(-2px);
}
}


/* =========================================
   TABLETTE
   ========================================= */

@media (max-width: 850px) {

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

    .uses-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }
	/* =========================================
   BLOCS DE PROMPTS
   ========================================= */

.prompt {
    background: #f1f4f7;
    border-left: 5px solid var(--bleu);
    padding: 18px 20px;
    margin: 20px 0;
    border-radius: 6px;
}

.prompt p {
    margin: 0;
    font-family: "Courier New", monospace;
    color: var(--bleu-tres-fonce);

}


/* =========================================
   TÉLÉPHONE
   ========================================= */

@media (max-width: 600px) {

    .container {
        width: 94%;
    }

    header {
        padding-top: 22px;
    }

    header h1 {
        font-size: 2rem;
    }

    .baseline {
        font-size: 1rem;
    }

    nav {
        flex-direction: column;
        gap: 3px;
    }

    nav a {
        border-radius: 6px;
        padding: 10px 12px;
    }

    main {
        padding: 28px 0;
    }

    .intro,
    .card,
    .discover {
        padding: 22px;
    }

    .intro h2 {
        font-size: 1.5rem;
    }

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

    .highlight {
        padding: 22px;
    }
}