/*
Theme Name: LACAQ Prototype
Version: 0.4.0
*/

/* =========================
   PALETTE LACAQ
   ========================= */

:root {
    --lacaq-blue: #12324a;
    --lacaq-blue-light: #245b78;
    --lacaq-teal: #197a78;
    --lacaq-orange: #d9822b;
    --lacaq-dark: #17242d;
    --lacaq-grey: #5d6870;
    --lacaq-light: #f4f6f5;
    --lacaq-white: #ffffff;
    --lacaq-border: #dce3e5;
    --lacaq-shadow: 0 8px 24px rgba(18,50,74,.10);
}

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

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    background: #fff;
    color: var(--lacaq-dark);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 17px;
    line-height: 1.75;
}

img {
    max-width: 100%;
    height: auto;
}

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

.lacaq-container,
.site-main,
main {
    width: min(1180px, calc(100% - 48px));
    margin-left: auto;
    margin-right: auto;
}

/* =========================
   HEADER
   ========================= */

.lacaq-top {
    background: var(--lacaq-blue);
    border-bottom: 5px solid var(--lacaq-teal);
    color: #fff;
}

.lacaq-top-inner {
    min-height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.lacaq-brand {
    color: #fff !important;
    text-decoration: none;
    font-size: 30px;
    font-weight: 800;
    letter-spacing: .08em;
}

.lacaq-nav ul {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 30px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.lacaq-nav a {
    color: #fff !important;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
}

.lacaq-nav a:hover {
    color: #d9eeee !important;
}

/* =========================
   HERO / ACCUEIL
   ========================= */

.lacaq-hero {
    min-height: 520px;
    display: flex;
    align-items: center;
    background:
        linear-gradient(rgba(18,50,74,.72), rgba(18,50,74,.72)),
        url('/wp-content/uploads/2025/04/industrie-dans-la-nature.png') center/cover no-repeat;
    color: #fff;
}

.lacaq-hero .lacaq-container {
    padding-top: 70px;
    padding-bottom: 70px;
}

.lacaq-hero h1 {
    max-width: 900px;
    margin: 0 0 25px;
    color: #fff;
    font-size: clamp(42px, 6vw, 72px);
    line-height: 1.05;
    font-weight: 800;
}

.lacaq-hero p {
    max-width: 760px;
    font-size: 22px;
    line-height: 1.55;
}

/* =========================
   SECTIONS ACCUEIL
   ========================= */

.lacaq-section {
    padding: 85px 0;
}

.lacaq-section:nth-child(even) {
    background: var(--lacaq-light);
}

.lacaq-section h2 {
    margin: 0 0 42px;
    color: var(--lacaq-blue);
    font-size: clamp(30px, 4vw, 44px);
    line-height: 1.15;
}

.lacaq-section h2::after {
    content: "";
    display: block;
    width: 65px;
    height: 4px;
    margin-top: 18px;
    background: var(--lacaq-teal);
}

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

.lacaq-cards {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 25px;
}

.lacaq-card {
    display: flex;
    flex-direction: column;
    min-height: 245px;
    padding: 30px;
    background: #fff;
    border: 1px solid var(--lacaq-border);
    border-top: 5px solid var(--lacaq-teal);
    box-shadow: var(--lacaq-shadow);
    text-decoration: none;
    color: var(--lacaq-dark);
    transition: transform .2s ease, box-shadow .2s ease;
}

.lacaq-card:nth-child(2n) {
    border-top-color: var(--lacaq-orange);
}

.lacaq-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 30px rgba(18,50,74,.15);
}

.lacaq-card strong {
    display: block;
    margin-bottom: 18px;
    color: var(--lacaq-blue);
    font-size: 23px;
    line-height: 1.2;
}

.lacaq-card span {
    display: block;
    color: var(--lacaq-grey);
    line-height: 1.55;
}

.lacaq-card em {
    margin-top: auto;
    padding-top: 25px;
    color: var(--lacaq-teal);
    font-style: normal;
    font-weight: 700;
}

/* =========================
   PAGES / CONTENU INTERNE
   ========================= */

/* Le contenu de page est volontairement étroit pour la lisibilité */

.entry-content,
.page-content,
.lacaq-content,
.wp-block-post-content {
    width: min(900px, 100%);
    margin: 0 auto;
    padding: 65px 0 100px;
}

/* Titre principal de la page */

.entry-title,
.page-title {
    width: min(1100px, 100%);
    margin: 0 auto;
    padding: 65px 0 20px;
    color: var(--lacaq-blue);
    font-size: clamp(38px, 5vw, 58px);
    line-height: 1.1;
    font-weight: 800;
}

/* Si le titre est dans le contenu */

.entry-content > h1,
.page-content > h1,
.lacaq-content > h1,
.wp-block-post-content > h1 {
    margin-top: 0;
    margin-bottom: 35px;
    color: var(--lacaq-blue);
    font-size: clamp(38px, 5vw, 58px);
    line-height: 1.1;
    font-weight: 800;
}

/* Sous-titres */

.entry-content h2,
.page-content h2,
.lacaq-content h2,
.wp-block-post-content h2 {
    margin: 65px 0 22px;
    color: var(--lacaq-blue);
    font-size: 32px;
    line-height: 1.2;
    font-weight: 750;
    border-left: 5px solid var(--lacaq-teal);
    padding-left: 18px;
}

.entry-content h3,
.page-content h3,
.lacaq-content h3,
.wp-block-post-content h3 {
    margin: 48px 0 18px;
    color: var(--lacaq-blue-light);
    font-size: 25px;
    line-height: 1.25;
    font-weight: 700;
}

/* Paragraphes */

.entry-content p,
.page-content p,
.lacaq-content p,
.wp-block-post-content p {
    margin: 0 0 23px;
    color: #26343d;
    font-size: 18px;
    line-height: 1.8;
}

/* Listes */

.entry-content ul,
.entry-content ol,
.page-content ul,
.page-content ol,
.lacaq-content ul,
.lacaq-content ol,
.wp-block-post-content ul,
.wp-block-post-content ol {
    margin: 20px 0 30px;
    padding-left: 30px;
}

.entry-content li,
.page-content li,
.lacaq-content li,
.wp-block-post-content li {
    margin-bottom: 10px;
    padding-left: 5px;
    line-height: 1.65;
}

/* Liens */

.entry-content a,
.page-content a,
.lacaq-content a,
.wp-block-post-content a {
    color: var(--lacaq-teal);
    font-weight: 600;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.entry-content a:hover,
.page-content a:hover,
.lacaq-content a:hover,
.wp-block-post-content a:hover {
    color: var(--lacaq-orange);
}

/* =========================
   BLOCS DE CITATION / MISE EN AVANT
   ========================= */

.entry-content blockquote,
.page-content blockquote,
.lacaq-content blockquote,
.wp-block-post-content blockquote {
    margin: 35px 0;
    padding: 25px 30px;
    background: var(--lacaq-light);
    border-left: 6px solid var(--lacaq-orange);
    color: var(--lacaq-blue);
    font-size: 20px;
}

/* =========================
   RÉALISATIONS / LIENS EN FIN DE PAGE
   ========================= */

.entry-content > a,
.page-content > a,
.lacaq-content > a,
.wp-block-post-content > a {
    display: block;
    margin: 12px 0;
    padding: 15px 20px;
    background: var(--lacaq-light);
    border-left: 4px solid var(--lacaq-teal);
    text-decoration: none;
}

.entry-content > a:hover,
.page-content > a:hover,
.lacaq-content > a:hover,
.wp-block-post-content > a:hover {
    background: #e9efed;
    border-left-color: var(--lacaq-orange);
}

/* =========================
   FOOTER
   ========================= */

footer,
.site-footer {
    margin-top: 0;
    padding: 45px 0;
    background: var(--lacaq-blue);
    color: #fff;
}

footer a,
.site-footer a {
    color: #fff;
}

/* =========================
   RESPONSIVE
   ========================= */

@media (max-width: 900px) {

    .lacaq-top-inner {
        flex-direction: column;
        align-items: flex-start;
        padding-top: 20px;
        padding-bottom: 20px;
    }

    .lacaq-nav ul {
        gap: 10px 18px;
    }

    .lacaq-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .lacaq-section {
        padding: 65px 0;
    }
}

@media (max-width: 600px) {

    .lacaq-container,
    .site-main,
    main {
        width: min(100% - 30px, 1180px);
    }

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

    .lacaq-hero {
        min-height: 430px;
    }

    .entry-content,
    .page-content,
    .lacaq-content,
    .wp-block-post-content {
        padding-top: 40px;
        padding-bottom: 65px;
    }

    .entry-content h2,
    .page-content h2,
    .lacaq-content h2,
    .wp-block-post-content h2 {
        margin-top: 45px;
        font-size: 28px;
    }

    .entry-content p,
    .page-content p,
    .lacaq-content p,
    .wp-block-post-content p {
        font-size: 17px;
    }
}

/* =========================
   COULEURS LACAQ — PRIORITÉ
   ========================= */

.entry-content h1,
.page-content h1,
.lacaq-content h1,
.wp-block-post-content h1 {
    color: #12324a !important;
}

.entry-content h2,
.page-content h2,
.lacaq-content h2,
.wp-block-post-content h2 {
    color: #12324a !important;
}

.entry-content h3,
.page-content h3,
.lacaq-content h3,
.wp-block-post-content h3 {
    color: #245b78 !important;
}

.entry-content p,
.page-content p,
.lacaq-content p,
.wp-block-post-content p {
    color: #26343d !important;
}

.entry-content a,
.page-content a,
.lacaq-content a,
.wp-block-post-content a {
    color: #197a78 !important;
}

.entry-content a:hover,
.page-content a:hover,
.lacaq-content a:hover,
.wp-block-post-content a:hover {
    color: #d9822b !important;
}

.entry-content h2 {
    border-left-color: #197a78 !important;
}

