
/* =========================================================
   DÉCO & GÉNIE — PAGE D'ACCUEIL
   =========================================================

   Fichier : accueil.css
   Page WordPress : ID 114
   Thème : Divi 5 / divi-assistant-child-theme

   ORGANISATION

   01. Intégration Divi et défilement
   02. Variables et styles généraux
   03. Hero principal
   04. Encart et bouton CTA
   05. Sections éditoriales
   06. Les guides pratiques
   07. Préparer votre projet

   RESPONSIVE

   08. Tablette générale : 768 à 1100 px
   09. Tablette large : 901 à 1100 px
   10. Tablette portrait : 768 à 900 px
   11. Mobile : 767 px et moins
   12. Petits mobiles : 480 px et moins

   ========================================================= */


/* =========================================================
   01 — INTÉGRATION DIVI ET DÉFILEMENT
   ========================================================= */

body.page-id-114 #main-content .et_pb_section:has(.dg-home),
body.page-id-114 #main-content .et_pb_row:has(.dg-home) {
    width: 100% !important;
    max-width: 100% !important;
    padding-block: 0 !important;
}

/* Défilement fluide vers les guides */

html:has(body.page-id-114) {
    scroll-behavior: smooth;
}

/* Respect des préférences d'accessibilité */

@media (prefers-reduced-motion: reduce) {
    html:has(body.page-id-114) {
        scroll-behavior: auto;
    }
}


/* =========================================================
   02 — VARIABLES ET STYLES GÉNÉRAUX
   ========================================================= */

.dg-home {

    /* Identité graphique */

    --dg-blue: #142333;
    --dg-ivory: #f8f5ef;
    --dg-brass: #a88b63;

    --dg-text-muted: #53606b;
    --dg-border-soft: #e2d8ca;

    /* Bouton principal */

    --dg-cta-bg: #a88b63;
    --dg-cta-hover: #b89b74;
    --dg-cta-text: #f8f5ef;

    /* Fond de la section des univers */

    --dg-topics-bg: #f1ede5;
    --dg-topics-border: #d8cab7;

    /* Largeur du contenu */

    --dg-content-width: 1440px;

    /* Espacements éditoriaux */

    --dg-space-section: clamp(36px, 4.5vw, 64px);
    --dg-space-heading: 32px;
    --dg-space-grid: clamp(16px, 2vw, 28px);
    --dg-space-card: clamp(16px, 2vw, 22px);

    /* Apparence générale */

    background: var(--dg-ivory);
    color: var(--dg-blue);

    font: 17px/1.55 Arial, sans-serif;
}

/* Modèle de dimensionnement */

.dg-home,
.dg-home * {
    box-sizing: border-box;
}

/* Typographie des titres */

.dg-home :is(h1, h2, h3) {
    margin: 0;
    padding: 0;

    color: inherit;
    font-family: "Instrument Serif", Georgia, serif;
    font-weight: 700;

    line-height: 1;
    letter-spacing: -.035em;
}

/* Paragraphes */

.dg-home p {
    margin: 0;
    padding: 0;
}

/* Images */

.dg-home img {
    display: block;
    max-width: 100%;
}

/* Liens */

.dg-home a {
    text-decoration: none;
}


/* =========================================================
   03 — HERO PRINCIPAL
   ========================================================= */

.dg-home-cover {
    display: grid;

    grid-template-columns:
        minmax(0, 57fr)
        minmax(0, 43fr);

    border-top: 1px solid var(--dg-brass);

    background: radial-gradient(
        ellipse at top,
        #263c52 0%,
        #142333 55%,
        #0c1723 100%
    );

    color: var(--dg-ivory);
}

/* Photographie principale */

.dg-home-cover > img {
    width: 100%;
    height: 100%;
    min-height: 0;

    aspect-ratio: 656 / 478;
    object-fit: cover;
}

/* Colonne éditoriale */

.dg-home-intro {
    align-self: center;

    padding: clamp(24px, 3.9vw, 56px);
}

/* Titre principal */

.dg-home h1 {
    font-size: clamp(44px, 5.4vw, 76px);
    line-height: .96;
}

/* Introduction */

.dg-home-intro > p {
    max-width: 34ch;

    margin-top: 15px;

    font-size: clamp(17px, 1.8vw, 23px);
    line-height: 1.3;
}

/* Séparation des idées fortes */

.dg-home-copy-break {
    display: block;
    margin-top: .5em;
}


/* =========================================================
   04 — ENCART ET BOUTON CTA
   ========================================================= */

.dg-home-feature {
    margin-top: clamp(24px, 2.5vw, 36px);
    padding-top: clamp(18px, 2vw, 26px);

    border-top: 1px solid var(--dg-brass);
}

/* Libellé À DÉCOUVRIR */

.dg-home-feature > p:first-child {
    margin-bottom: 10px;

    color: #d2ad75;

    font-size: 12px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}

/* Titre */

.dg-home-feature h2 {
    max-width: 27ch;

    font-size: clamp(25px, 2.6vw, 38px);
    line-height: 1.04;
}

/* Description */

.dg-home-feature__description {
    max-width: 43ch;

    margin-top: 13px !important;

    font-size: clamp(14px, 1.15vw, 17px);
    line-height: 1.45;
}

/* Bouton Découvrir les guides */

.dg-home a.dg-home-guide-label,
.dg-home a.dg-home-guide-label:visited {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 10px;

    width: fit-content;
    max-width: 100%;

    margin-top: 28px;
    padding: 12px 20px;

    background-color: var(--dg-cta-bg) !important;
    color: var(--dg-cta-text) !important;

    border: 1px solid var(--dg-brass) !important;
    border-radius: 999px;

    font-size: clamp(15px, 1.3vw, 19px);
    font-weight: 700;
    line-height: 1.25;

    text-decoration: none;

    transition:
        background-color .2s ease,
        border-color .2s ease,
        color .2s ease;
}

/* Survol */

.dg-home a.dg-home-guide-label:hover {
    background-color: var(--dg-cta-hover) !important;
    border-color: var(--dg-brass) !important;
    color: #ffffff !important;
}

/* Navigation clavier */

.dg-home a.dg-home-guide-label:focus-visible {
    outline: 2px solid var(--dg-ivory);
    outline-offset: 3px;
}

/* Flèche */

.dg-home-guide-label span {
    margin-left: 0;
    color: inherit;
}


/* =========================================================
   05 — SECTIONS ÉDITORIALES
   ========================================================= */

/* Conteneur commun */

.dg-home-section {
    width: 100%;
    max-width: var(--dg-content-width);

    margin-inline: auto;
    padding-inline: clamp(20px, 3vw, 36px);
}

/* Titres de section */

.dg-home-section__heading {
    display: flex;
    align-items: center;

    gap: 24px;

    font-size: clamp(30px, 3.5vw, 48px);
}

/* Filet doré */

.dg-home-section__heading::after {
    content: "";

    flex: 1;
    min-width: 20px;

    border-top: 1px solid var(--dg-brass);
}

/* Introduction des sections */

.dg-home-section__intro {
    max-width: 72ch;

    margin-top: 12px !important;

    color: var(--dg-text-muted);

    font-size: clamp(14px, 1.15vw, 17px);
    line-height: 1.55;
}


/* =========================================================
   06 — LES GUIDES PRATIQUES
   ========================================================= */

/* Aération de la section */

.dg-home-guides {
    padding-top: var(--dg-space-section);
    padding-bottom: var(--dg-space-section);
}

/* Grille des guides */

.dg-home-guides-grid {
    display: grid;

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

    gap: var(--dg-space-grid);

    /* Espace après l'introduction */

    margin-top: var(--dg-space-heading);
}

/* Carte individuelle */

.dg-home-guide-card {
    display: grid;

    grid-template-columns:
        minmax(0, 48fr)
        minmax(0, 52fr);

    min-width: 0;
    overflow: hidden;

    border: 1px solid var(--dg-border-soft);
    border-radius: 6px;

    background: #fcfaf6;
}

/* Image */

.dg-home-guide-card__image {
    width: 100%;
    height: 100%;
    min-height: 205px;

    object-fit: cover;
}

/* Contenu */

.dg-home-guide-card__body {
    display: flex;
    flex-direction: column;
    align-items: flex-start;

    min-width: 0;
    padding: var(--dg-space-card);
}

/* Catégorie du guide */

.dg-home-guide-card__category {
    margin-bottom: 8px !important;

    color: #8b632f;

    font-size: 11px;
    font-weight: 700;
    letter-spacing: .1em;
    line-height: 1.4;
    text-transform: uppercase;
}

/* Titre */

.dg-home-guide-card h3 {
    font-size: clamp(25px, 2.2vw, 33px);
    line-height: 1.08;
}

/* Précision ex-Bricoman */

.dg-home-guide-card__subtitle {
    font-family: Arial, sans-serif;

    font-size: .5em;
    font-weight: 400;
    letter-spacing: 0;
}

/* Description */

.dg-home-guide-card__description {
    margin-top: 12px !important;

    color: var(--dg-blue);

    font-size: 14px;
    line-height: 1.45;
}

/* Lien vers le guide */

.dg-home-guide-card__link {
    display: inline-block;

    margin-top: auto;

    padding-top: 16px;
    padding-bottom: 4px;

    border-bottom: 1px solid var(--dg-brass);

    color: var(--dg-blue);

    font-size: 14px;
    font-weight: 700;
    line-height: 1.3;

    transition:
        color .2s ease,
        border-color .2s ease;
}

.dg-home-guide-card__link:hover,
.dg-home-guide-card__link:focus-visible {
    color: #8b632f;
    border-color: #8b632f;
}

.dg-home-guide-card__link span {
    margin-left: .35em;
}


/* =========================================================
   07 — PRÉPARER VOTRE PROJET
   ========================================================= */

/* Bande beige sur toute la largeur */

.dg-home-topics {
    width: 100%;

    /* Aération symétrique */

    padding-top: var(--dg-space-section);
    padding-bottom: var(--dg-space-section);

    background: var(--dg-topics-bg);
    border-top: 1px solid var(--dg-topics-border);
}

/* Introduction */

.dg-home-topics__intro {
    max-width: 72ch;

    margin-top: 12px !important;

    color: var(--dg-text-muted);

    font-size: clamp(14px, 1.15vw, 17px);
    line-height: 1.55;
}

/* Grille des trois univers */

.dg-home-grid {
    display: grid;

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

    gap: clamp(16px, 2vw, 30px);

    /* Aération après l'introduction */

    margin-top: var(--dg-space-heading);
}

/* Catégorie */

.dg-home-topic {
    min-width: 0;
}

/* Photographie */

.dg-home-photo {
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
}

/* Titre de catégorie */

.dg-home-topic h3 {
    margin-top: 12px;

    font-size: clamp(23px, 2.4vw, 33px);
    line-height: 1.1;
}


/* =========================================================
   08 — TABLETTE GÉNÉRALE : 768 À 1100 PX
   ========================================================= */

@media (min-width: 768px) and (max-width: 1100px) {

    .dg-home-intro {
        padding: clamp(22px, 3vw, 34px);
    }

    .dg-home h1 {
        font-size: clamp(42px, 5vw, 60px);
    }

    .dg-home-feature h2 {
        font-size: clamp(24px, 2.9vw, 32px);
    }

    .dg-home-guide-card {
        grid-template-columns: 44% 56%;
    }

    .dg-home-guide-card__image {
        min-height: 215px;
    }

    .dg-home-guide-card__body {
        padding: 15px;
    }

    .dg-home-guide-card h3 {
        font-size: 25px;
    }

    .dg-home-guide-card__description {
        font-size: 13px;
    }
}


/* =========================================================
   09 — TABLETTE LARGE : 901 À 1100 PX
   ========================================================= */

@media (min-width: 901px) and (max-width: 1100px) {

    .dg-home-intro > p {
        margin-top: 22px;
    }

    .dg-home-feature {
        margin-top: 34px;
        padding-top: 25px;
    }

    .dg-home-feature > p:first-child {
        margin-bottom: 14px;
    }

    .dg-home-feature__description {
        margin-top: 18px !important;
    }

    .dg-home a.dg-home-guide-label {
        margin-top: 34px;
    }
}


/* =========================================================
   10 — TABLETTE PORTRAIT : 768 À 900 PX
   ========================================================= */

@media (min-width: 768px) and (max-width: 900px) {

    /* Photo au-dessus des textes */

    .dg-home-cover {
        grid-template-columns: 1fr;
    }

    .dg-home-cover > img {
        height: auto;
        aspect-ratio: 16 / 9;
        object-fit: cover;
    }

    /* Deux blocs côte à côte */

    .dg-home-intro {
        display: grid;

        grid-template-columns:
            minmax(0, 44fr)
            minmax(0, 56fr);

        grid-template-rows: auto auto;

        align-items: start;
        column-gap: 32px;

        padding: 34px 36px 38px;
    }

    /* Colonne gauche */

    .dg-home-intro > h1 {
        grid-column: 1;
        grid-row: 1;

        font-size: clamp(44px, 5.8vw, 52px);
        line-height: .96;
    }

    .dg-home-intro > p {
        grid-column: 1;
        grid-row: 2;

        max-width: 30ch;
        margin-top: 15px;

        font-size: 16px;
        line-height: 1.35;
    }

    /* Colonne droite */

    .dg-home-feature {
        grid-column: 2;
        grid-row: 1 / span 2;

        align-self: stretch;

        display: flex;
        flex-direction: column;
        justify-content: center;

        margin: 0;
        padding: 0 0 0 26px;

        border-top: 0;
        border-left: 1px solid var(--dg-brass);
    }

    .dg-home-feature > p:first-child {
        margin-bottom: 15px;
    }

    .dg-home-feature h2 {
        max-width: none;

        font-size: clamp(24px, 3.1vw, 28px);
        line-height: 1.05;
    }

    .dg-home-feature__description {
        max-width: none;

        margin-top: 18px !important;

        font-size: 14px;
        line-height: 1.55;
    }

    .dg-home a.dg-home-guide-label {
        align-self: flex-start;

        margin-top: 34px;
        padding: 14px 24px;

        font-size: 15px;
        font-weight: 700;
        line-height: 1.3;
    }

    /* Guides sur une colonne */

    .dg-home-guides-grid {
        grid-template-columns: 1fr;
    }

    .dg-home-guide-card {
        grid-template-columns: 43% 57%;
    }

    .dg-home-guide-card__image {
        min-height: 220px;
    }

    .dg-home-guide-card__body {
        padding: 22px;
    }

    .dg-home-guide-card h3 {
        font-size: 32px;
    }

    .dg-home-guide-card__description {
        font-size: 15px;
    }

    /* Trois catégories */

    .dg-home-topic h3 {
        font-size: clamp(20px, 3vw, 26px);
    }
}


/* =========================================================
   11 — MOBILE : 767 PX ET MOINS
   ========================================================= */

@media (max-width: 767px) {

    /* Espacements mobiles */

    .dg-home {
        --dg-space-section: 36px;
        --dg-space-heading: 20px;
        --dg-space-grid: 16px;
        --dg-space-card: 16px;
    }

    /* Hero */

    .dg-home-cover {
        grid-template-columns: 1fr;
    }

    .dg-home-cover > img {
        height: auto;
        aspect-ratio: 3 / 2;
    }

    .dg-home-intro {
        padding: 20px 26px 28px;
    }

    .dg-home h1 {
        font-size: clamp(36px, 10.6vw, 56px);
    }

    .dg-home-intro > p {
        margin-top: 10px;
        font-size: 16px;
    }

    /* Encart */

    .dg-home-feature {
        margin-top: 24px;
        padding-top: 18px;
    }

    .dg-home-feature h2 {
        font-size: clamp(25px, 6.7vw, 34px);
    }

    .dg-home-feature__description {
        margin-top: 12px !important;
        font-size: 14px;
    }

    .dg-home a.dg-home-guide-label {
        margin-top: 26px;
        font-size: 16px;
    }

    /* Sections */

    .dg-home-section {
        padding-inline: 18px;
    }

    .dg-home-section__heading {
        gap: 12px;
        font-size: clamp(28px, 7.7vw, 40px);
    }

    .dg-home-section__intro,
    .dg-home-topics__intro {
        font-size: 14px;
    }

    /* Guides */

    .dg-home-guides-grid {
        grid-template-columns: 1fr;
    }

    .dg-home-guide-card {
        grid-template-columns:
            minmax(0, 42fr)
            minmax(0, 58fr);
    }

    .dg-home-guide-card__image {
        min-height: 195px;
    }

    .dg-home-guide-card h3 {
        font-size: clamp(25px, 5.5vw, 31px);
    }

    /* Catégories */

    .dg-home-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .dg-home-topic {
        display: grid;

        grid-template-columns:
            minmax(0, 42fr)
            minmax(0, 58fr);

        align-items: center;

        gap: 14px;
        padding: 14px 0;

        border-top: 1px solid var(--dg-brass);
    }

    .dg-home-topic:first-child {
        border-top: 0;
    }

    .dg-home-topic h3 {
        margin: 0;
        font-size: clamp(20px, 5.5vw, 28px);
    }
}


/* =========================================================
   12 — PETITS MOBILES : 480 PX ET MOINS
   ========================================================= */

@media (max-width: 480px) {

    .dg-home-guide-card {
        grid-template-columns: 1fr;
    }

    .dg-home-guide-card__image {
        height: auto;
        min-height: 0;
        aspect-ratio: 16 / 9;
    }

    .dg-home-guide-card__body {
        padding: 18px;
    }

    .dg-home-guide-card__link {
        margin-top: 6px;
    }
}


/* =========================================================
   FIN — ACCUEIL.CSS
   ========================================================= */
