
:root {
    --hauteur-menu: 32px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-snap-type: y mandatory;
	scroll-padding-top: 0;
}

body {
    margin: 0;
    color: #24343b;
    background: #f4f1e9;
    font-family: Arial, sans-serif;
}

.page-section {
    min-height: 100vh;
    min-height: 100svh;
	padding: calc(48px + var(--hauteur-menu)) 8% 48px;
    display: flex;
    align-items: center;

    /* Chaque partie s’aligne sur le haut de la fenêtre. */
    scroll-snap-align: start;

    /* Empêche de sauter plusieurs parties d’un seul mouvement. */
    scroll-snap-stop: always;
}

.accueil {
    /*color: #1d1b63;*/
	color: navy;
    background-color: #f7f6fa;
    background-image:
        linear-gradient(rgba(245, 243, 248, 0.64), rgba(245, 243, 248, 0.64)),
        url("../images/kr1-vol.jpg");
    background-position: center;
    background-size: cover;
}

.section-claire {
    background: #f4f1e9;
}

.section-couleur {
    background: #dfe8e3;
}

.contenu {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
}

.surtitre,
.numero {
    color: #bd6745;
    font-size: 0.85rem;
    font-weight: bold;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.accueil .surtitre {
    color: #1d1b63;
}

h1,
h2 {
    margin: 0 0 20px;
    font-family: Georgia, serif;
    font-weight: normal;
}

h1 {
    font-size: clamp(3rem, 8vw, 6rem);
}

h2 {
    font-size: clamp(2.1rem, 5.25vw, 3.75rem);
}

.chapeau {
    font-size: 1.4rem;
}

.menu {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 36px;
}

.menu a {
    padding: 9px 13px;
    border: 1px solid #82969a;
    border-radius: 3px;
    color: white;
    text-decoration: none;
}

.menu a:hover {
    background: #31596a;
}

.indice-defilement,
.suivant {
    display: inline-block;
    margin-top: 36px;
    color: inherit;
    text-decoration: none;
}

.description {
    max-width: 650px;
    font-size: 1rem;
    line-height: 1.6;
    text-align: justify;
}

.rubriques {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 0;
    list-style: none;
}

.rubriques li {
    padding: 9px 13px;
    border: 1px solid #aebbb5;
    border-radius: 3px;
}

.numero {
    margin-bottom: 12px;
}

footer {
    margin-top: 48px;
    color: #52636a;
}

@media (max-width: 600px) {
    .page-section {
	padding: calc(32px + var(--hauteur-menu)) 22px 32px;
    }

    .menu {
        gap: 7px;
    }

    .menu a {
        padding: 7px 9px;
        font-size: 0.85rem;
    }
}

/* Respecte la préférence du navigateur pour moins d’animation. */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

.menu-superieur {
    position: fixed;
    z-index: 10;
    top: 0;
    left: 0;
    right: 0;
    height: var(--hauteur-menu);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: padding: 0 5% 0 0;
    color: #1d1b63;
    background: #f7f6fa;
}

.nom-site {
    flex: 0 0 auto;
    color:  #1d1b63;
    font-weight: bold;
    text-decoration: none;
}

.liens-menu {
    display: flex;
    align-items: center;
    gap: 18px;
}

.liens-menu > a,
.menu-rubriques summary {
    color: #1d1b63;
    font-size: 0.9rem;
    text-decoration: none;
    white-space: nowrap;
}

.liens-menu > a:hover,
.menu-rubriques summary:hover {
    color: #a84f35;
}

.menu-rubriques {
    position: relative;
}

.menu-rubriques summary {
    cursor: pointer;
    list-style: none;
}

.menu-rubriques summary::-webkit-details-marker {
    display: none;
}

.panneau-rubriques {
    position: absolute;
    top: calc(100% + 18px);
    right: 0;
    display: none;
    grid-template-columns: repeat(2, minmax(150px, 1fr));
    gap: 8px 18px;
    width: min(430px, calc(100vw - 24px));
    max-height: 70vh;
    overflow-y: auto;
    padding: 20px;
    background: white;
    box-shadow: 0 8px 24px #0003;
}

.menu-rubriques[open] .panneau-rubriques {
    display: grid;
}

.panneau-rubriques a {
    padding: 6px;
    color: #193f50;
    text-decoration: none;
}

.panneau-rubriques a:hover {
    background: #e8eee9;
}

@media (max-width: 760px) {
    .menu-superieur {
        padding: 0 16px 0 0;
    }

    .liens-menu {
        gap: 12px;
    }



.liens-menu {
    gap: 6px;
	}

.menu-rubriques summary,
.bouton-recherche {
    padding: 4px 9px;
    font-size: 0.65rem;
	}
}

.nom-site img {
    display: block;
    height: 50px;
    width: auto;
	transform: translateY(9px);
	}

.accueil .contenu {
    max-width: 100%;
    text-align: center;
}

.accueil h1 {
    font-family: "Roboto", Arial, sans-serif;
    font-size: 50px;
    font-weight: 500;
    font-style: italic;
    text-transform: uppercase;
    text-shadow: 2px 2px #ffffff;
}

.accueil .chapeau {
    font-family: "Roboto", Arial, sans-serif;
    font-size: 25px;
    font-weight: 200;
    font-style: italic;
    text-shadow: 2px 2px #ffffff;
}

.bouton-construire {
    display: block;
    width: min(300px, 80%);
    margin: 64px auto 0;
    padding: 12px 18px;
	border: solid 1px grey;
    border-radius: 999px;
    color: #1d1b63;
    background: white;
    font-size: 0.75rem;
    font-weight: bold;
    letter-spacing: 0.15em;
    text-decoration: none;
    text-transform: uppercase;
}

.bouton-construire:hover {
    color: white;
    background: navy;
}

.accueil {
    position: relative;
}

.raccourcis-accueil {
    position: absolute;
    left: 20px;
    bottom: 12%;
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding-left: 10px;
    border-left: 2px solid #1d1b63;
    font-family: "Roboto", Arial, sans-serif;
    font-size: 12px;
    font-style: italic;
    font-weight: 500;
    clip-path: inset(0 100% 0 0);
    animation: apparition-bandeau 1s ease-out 0.3s forwards;
}

.raccourcis-accueil a {
    color: #1d1b63;
    text-decoration: none;
}

.raccourcis-accueil a:hover {
    color: #a84f35;
}

@keyframes apparition-bandeau {
    to {
        clip-path: inset(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .raccourcis-accueil {
        clip-path: none;
        animation: none;
    }
}

.menu-rubriques summary,
.bouton-menu {
    display: inline-block;
    padding: 5px 10px;
	/*padding: 7px 15px; */
    border: 0;
    border-radius: 999px;
    color: white;
    background: navy;
	/* background: #09077d; */
    font-size: 0.75rem;
    font-weight: bold;
    letter-spacing: 0.12em;
    text-decoration: none;
    cursor: pointer;
}

.menu-rubriques summary:hover,
.bouton-menu:hover {
    color: white;
    background: navy;
}

.bouton-recherche {
    margin-left: -9px;
    margin-right: 5px;
	color:#fff;
}

@media (max-width: 760px) {
    .bouton-recherche {
        margin-left: 2px;
		margin-right:-3px;
    }
}

@media (max-width: 760px) {
    .accueil {
        flex-direction: column;
        justify-content: center;
        gap: 24px;
    }

    .accueil h1 {
        font-size: clamp(1.4rem, 7vw, 3.125rem);
    }

    .accueil .chapeau {
        font-size: clamp(1rem, 4.5vw, 1.5625rem);
    }

    .bouton-construire {
        margin-top: 32px;
    }

    .raccourcis-accueil {
        position: static;
        align-self: flex-start;
        max-width: 100%;
    }
}

.menu-hamburger {
    display: none;
    position: relative;
}

.menu-hamburger summary {
    display: flex;
    width: 36px;
    height: 32px;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: transparent;
    cursor: pointer;
    list-style: none;
}

.menu-hamburger summary::-webkit-details-marker {
    display: none;
}

.hamburger-icon {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.hamburger-icon span {
    width: 18px;
    height: 2px;
    background: navy;
}

.menu-hamburger-panel {
    position: absolute;
    z-index: 11;
    top: calc(100% + 10px);
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    display: none;
    flex-direction: column;
    width: max-content;
    min-width: 0;
    max-width: calc(100vw - 24px);
    padding: 8px 15px;
    background: #f7f6fa;
    box-shadow: 0 8px 24px #0003;
	border: solid 1px grey;
	border-radius: 15px;
}

.menu-hamburger[open] .menu-hamburger-panel {
    display: flex;
}

.menu-hamburger-panel a {
    padding: 6px 0;
    color: #1d1b63;
    text-align: center;
    text-decoration: none;
}

.menu-hamburger-panel a:hover {
    /*background: #e8eee9;*/
	color: #D18E38;
}

@media (max-width: 760px) {
    .menu-hamburger {
        display: block;
    }

    .liens-menu > a:not(.bouton-recherche) {
        display: none;
    }

    .liens-menu {
        gap: 6px;
    }
}

.titre-documents {
    margin: 28px 0 14px;
    color: #1d1b63;
    font-size: 1.3rem;
}

..documents-recents {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 18px;
}

.document-recent {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 12px;
    margin: 0;
    padding-bottom: 12px;
    border-bottom: 1px solid #d7d7d7;
}

.vignette-provisoire {
    display: grid;
    place-items: center;
    width: 100%;
    aspect-ratio: 4 / 3;
    background: #e2dfd7;
    color: #52636a;
    font-size: 0.75rem;
    text-align: center;
	border: solid 1px grey;
	border-radius:20px;
}


.document-recent h4 {
    margin: 0 0 5px;
	color: var(--couleur-titre);
    font-size: 1rem;
    font-style: italic;
    font-weight: 600;
}

.document-recent p {
    margin: 0;
    font-size: 0.88rem;
    font-style: italic;
    line-height: 1.45;
}

.section-materiaux {
    position: relative;
    align-items: stretch;
    padding-top: calc(var(--hauteur-menu) + 20px);
    padding-bottom: 32px;
	--couleur-titre: #24343b;
}

.materiaux-colonnes {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(250px, 0.8fr);
    gap: 40px;
    align-items: start;
}

.texte-materiaux .description {
    margin-top: 0;
    text-align: justify;
	color:black;
}

@media (max-width: 700px) {
    .materiaux-colonnes {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

/* Section Bois et toile */
#bois {
    --couleur-titre: #7a4b28;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.65), rgba(255, 255, 255, 0.65)),
        url("../images/fond-bois.jpg");
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.section-materiaux > .contenu {
    position: relative;
    min-height: calc(100svh - var(--hauteur-menu) - 52px);
}

.section-materiaux .materiaux-colonnes {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    align-items: center;
}

@media (max-width: 700px) {
    #bois > .contenu {
        min-height: 0;
    }

    #bois .materiaux-colonnes {
        position: static;
        transform: none;
        align-items: initial;
    }
}

.texte-materiaux {
    width: 75%;
    margin-left: auto;
}

@media (max-width: 700px) {
    .texte-materiaux {
        width: 100%;
        margin-left: 0;
    }
}

.section-materiaux.derniers-documents {
    align-self: center;
}

#bois .derniers-documents .titre-documents {
    margin-top: 0;
}

.section-materiaux > .image-accompagnement {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 33.333vw;
    height: 33.333vh;
    object-fit: cover;
    z-index: 0;
}

@media (max-width: 700px) {
    #bois .image-accompagnement {
        display: none;
    }
}

.section-materiaux h2 {
    color: var(--couleur-titre);
}

.section-materiaux .description::first-letter {
    float: left;
    margin-right: 0.08em;
    color: var(--couleur-titre);
    font-family: Georgia, serif;
    font-size: 3em;
    font-weight: 500;
    line-height: 0.8;
}

#metal {
    --couleur-titre: #536b78;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.65), rgba(255, 255, 255, 0.65)),
        url("../images/fond-metal.jpg");
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

#composite {
    --couleur-titre: #4f6b65;
}

#composite {
    --couleur-titre: #4f6b65;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.65), rgba(255, 255, 255, 0.65)),
        url("../images/fond-composite.jpg");
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

@media (max-width: 700px) {
    #metal,
    #composite {
        min-height: 100svh;
        height: auto;
        align-items: stretch;
        padding-top: calc(var(--hauteur-menu) + 20px);
        padding-bottom: 32px;
    }

    #metal .materiaux-colonnes,
    #composite .materiaux-colonnes {
        grid-template-columns: minmax(0, 1fr);
        gap: 24px;
        align-items: initial;
    }

    .section-materiaux > .contenu {
        min-height: 0;
    }

    .section-materiaux .materiaux-colonnes {
        position: static;
        transform: none;
        align-items: initial;
    }

}

.section-rubriques {
    background: #efefef;
}

.section-rubriques > .contenu {
    max-width: 1110px;
}

.grille-rubriques {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    overflow: hidden;
    border: 1px solid #d0d0d0;
    border-radius: 20px;
    background: #d0d0d0;
    box-shadow: 0 2px 9px #0002;
}

.carte-rubrique {
    display: block;
    min-width: 0;
    min-height: 145px;
    padding: 14px 20px;
    color: inherit;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.9);
}

.carte-rubrique h2 {
    margin: 0 0 18px;
    color: #a9443b;
    font-family: Georgia, serif;
    font-size: clamp(1.2rem, 2vw, 1.6rem);
    font-style: italic;
    font-weight: bold;
    text-align: center;
    text-transform: uppercase;
}

.carte-rubrique ul {
    margin: 0;
    padding-left: 18px;
    color: #444;
    font-size: 0.93rem;
    line-height: 1.5;
}

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

@media (max-width: 520px) {
    .grille-rubriques {
        grid-template-columns: 1fr;
    }
}

.carte-rubrique {
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.carte-rubrique:nth-child(1) {
    background-image:
       linear-gradient(
    rgba(255, 255, 255, var(--voile-vignette, 0.87)),
    rgba(255, 255, 255, var(--voile-vignette, 0.87))
),
        url("../images/fond-prop.webp");
}

.carte-rubrique:nth-child(2) {
    background-image:
        linear-gradient(
    rgba(255, 255, 255, var(--voile-vignette, 0.87)),
    rgba(255, 255, 255, var(--voile-vignette, 0.87))
),
        url("../images/fond-verriere.webp");
}

.carte-rubrique:nth-child(3) {
    background-image:
        linear-gradient(
    rgba(255, 255, 255, var(--voile-vignette, 0.87)),
    rgba(255, 255, 255, var(--voile-vignette, 0.87))
),
        url("../images/fond-train.webp");
}

.carte-rubrique:nth-child(4) {
    background-image:
        linear-gradient(
    rgba(255, 255, 255, var(--voile-vignette, 0.87)),
    rgba(255, 255, 255, var(--voile-vignette, 0.87))
),
        url("../images/fond-panel.webp");
}

.carte-rubrique:nth-child(5) {
    background-image:
        linear-gradient(
    rgba(255, 255, 255, var(--voile-vignette, 0.87)),
    rgba(255, 255, 255, var(--voile-vignette, 0.87))
),
        url("../images/fond-elec.webp");
}

.carte-rubrique:nth-child(6) {
    background-image:
        linear-gradient(
    rgba(255, 255, 255, var(--voile-vignette, 0.87)),
    rgba(255, 255, 255, var(--voile-vignette, 0.87))
),
        url("../images/fond-construc.webp");
}

.carte-rubrique:nth-child(7) {
    background-image:
        linear-gradient(
    rgba(255, 255, 255, var(--voile-vignette, 0.87)),
    rgba(255, 255, 255, var(--voile-vignette, 0.87))
),
        url("../images/fond-voler.webp");
}

.carte-rubrique:nth-child(8) {
    background-image:
        linear-gradient(
    rgba(255, 255, 255, var(--voile-vignette, 0.87)),
    rgba(255, 255, 255, var(--voile-vignette, 0.87))
),
        url("../images/fond-regl.webp");
}

.carte-rubrique:nth-child(9) {
    background-image:
        linear-gradient(
    rgba(255, 255, 255, var(--voile-vignette, 0.87)),
    rgba(255, 255, 255, var(--voile-vignette, 0.87))
),
        url("../images/fond-divers.webp");
}

.carte-rubrique:hover {
    /*--voile-vignette: 0;*/
background-image:
        linear-gradient(
    rgba(255, 255, 255, var(--voile-vignette, 0.10)),
    rgba(255, 255, 255, var(--voile-vignette, 0.10))
),

}

.pied-page {
    min-height: 100svh;
    padding: calc(var(--hauteur-menu) + 24px) 5% 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    /*color: #f4f1e9;*/
    color: #ffffff;
    background: #3f4858;
}

.pied-colonnes {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
    flex: 1;
    align-content: center;
    align-items: center;
}

.pied-colonne {
    width: 100%;
}

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

@media (max-width: 600px) {
    .pied-colonnes {
        grid-template-columns: 1fr;
    }
}

.pied-identite {
    text-align: center;
}

.pied-logo {
    display: block;
    width: min(225px, 100%);
    margin: 0 auto 24px;
}

.pied-logo img {
    display: block;
    width: 100%;
    height: auto;
}

.pied-bouton {
    display: block;
    width: min(200px, 100%);
    margin: 14px auto;
}

.pied-bouton img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 12px;
}

.pied-identite hr {
    border: 0;
    border-top: 1px solid white;
}

.pied-identite a[href^="mailto:"] {
    color: white;
}

.pied-contact {
    margin-top: 20px;
    padding: 18px 0;
    border-top: 1px solid white;
    border-bottom: 1px solid white;
	padding-left:10px;
	padding-right:10px;
	width:80%;
	margin:25px auto 0 auto;
}

.pied-contact h3 {
    margin: 0 0 16px;
}

.pied-colonne:nth-child(2) h3 {
    text-decoration: underline;
}

.pied-colonne:nth-child(2) ul {
    line-height: 2.3;
}

.pied-navigation {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.pied-navigation a {
    display: block;
    padding: 9px 4px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.8);
    /*color: #dedfe3;*/
    color: #ffffff;
    font-size: 0.9rem;
    text-align: center;
    text-decoration: none;
}

.pied-navigation a:hover {
    color: white;
}

.bouton-apropos {
    padding: 5px 10px;
    border: 0;
    border-radius: 999px;
    color: navy;
    background: white;
    font: inherit;
    font-style: italic;
    cursor: pointer;
	margin-bottom:20px;
}
.bouton-apropos:hover {
 	color:white;
	background:navy;
	border: solid 1px white;
	margin-bottom:19px;
}

.popup-apropos {
    width: min(680px, calc(100% - 32px));
    max-height: 80svh;
    overflow-y: auto;
    padding: 25px;
    border: 0;
    border-radius: 12px;
    color: #24343b;
    background: white;
    box-shadow: 0 8px 30px #0005;
}

.popup-apropos::backdrop {
    background: rgba(0, 0, 0, 0.65);
}

.fermer-popup {
    text-align: right;
}

.fermer-popup button {
    border: 0;
    color: navy;
    background: transparent;
    font-size: 1.8rem;
    cursor: pointer;
}

.popup-apropos {
    padding-top: 15px;
text-align:justify;
}

.fermer-popup {
    position: absolute;
    top: 8px;
    right: 12px;
}

.popup-apropos h2 {
	text-decoration:none;
	font-size:2rem;
    margin: 0 36px 18px 0;
    color: navy;
    font-family: "Roboto", Arial, sans-serif;
    font-style: italic;
}

.pied-bas {
	font-style:italic;
    /*align-self: flex-end;
    margin-bottom: 0;
    text-align: right;*/
	font-size:0.9rem;
	margin-bottom:-10px;
	margin-right:-20px;
	text-align:right;
	
}

.pied-eaa {
    padding-left: 8px;
    border-left: 1px solid white;
	margin-left:10px;
}

.pied-eaa p {
    margin: 0;
}

.pied-eaa img {
    float: right;
    width: 40%;
    height: auto;
    margin: 0 0 8px 10px;
}

.pied-eaa::after {
    content: "";
    display: block;
    clear: both;
}

.pied-rsa {
    margin-top: 18px;
    padding-left: 5px;
    border-left: 1px solid white;
	margin-left:10px;
}

.pied-rsa img {
    float: right;
    width: 40%;
    height: auto;
    margin: 0 0 8px 10px;
}

.pied-rsa::after {
    content: "";
    display: block;
    clear: both;
}

.popup-tout-site {
    width: min(820px, calc(100vw - 32px));
    max-width: none;
    padding: 0;
    overflow: visible;
    border: 0;
    background: transparent;
}

.popup-tout-site::backdrop {
    background: rgba(43, 20, 30, 0.72);
}

.popup-tout-site-interieur {
    max-height: 88svh;
    overflow-y: auto;
    border-radius: 15px;
    background: white;
}

.popup-tout-site-entete {
    padding: 14px 17px 8px;
    border-bottom: 1px solid #aaa;
    background: #d6d6d6;
}

.popup-tout-site-entete h2 {
    margin: 0;
    color: navy;
    font-family: Georgia, serif;
    font-size: 1.35rem;
}

.popup-tout-site-fermer {
    position: absolute;
    top: -31px;
    right: 0;
    padding: 0 5px;
    border: 0;
    color: white;
    background: transparent;
    font-size: 1.8rem;
    line-height: 1;
    cursor: pointer;
}

.popup-tout-site-grille {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    padding: 18px 20px 28px;
}

.popup-tout-site-groupe {
    margin-bottom: 12px;
}

.popup-tout-site-groupe h3 {
    margin: 0 0 7px;
    color: navy;
    font-family: Georgia, serif;
    font-size: 1.05rem;
    font-style: italic;
    text-decoration: underline;
}

.popup-tout-site-groupe ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.popup-tout-site-groupe li {
    position: relative;
    margin: 0 0 5px;
    padding-left: 10px;
    font-family: Georgia, serif;
    font-size: 0.9rem;
}

.popup-tout-site-groupe li::before {
    position: absolute;
    left: 0;
    color: #b4bdc1;
    content: "•";
}

.popup-tout-site-groupe a,
.popup-tout-site-lien-categorie {
    color: navy;
    text-decoration: none;
}

.popup-tout-site-groupe a:hover,
.popup-tout-site-lien-categorie:hover {
    text-decoration: underline;
}

.popup-tout-site-lien-categorie {
    display: block;
    margin-top: 2px;
    font-family: Georgia, serif;
    font-style: italic;
    text-decoration: underline;
}

@media (max-width: 760px) {
    .popup-tout-site-grille {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 480px) {
    .popup-tout-site-grille {
        grid-template-columns: 1fr;
    }
}

/* Même cadre que la popup « Tout le site » */
.popup-apropos {
    width: min(820px, calc(100vw - 32px));
    max-height: 85vh;
    max-height: 85svh;
    padding: 0;
    border: 1px solid #888;
    background: white;
    box-shadow: 0 8px 24px #0005;
    overflow-y: auto;
}

.popup-apropos::backdrop {
    background: rgba(45, 20, 30, 0.65);
}

/* Bandeau du titre */
.popup-apropos h2 {
    margin: 0;
    padding: 16px 52px 16px 20px;
    color: navy;
    background: #e5e5e5;
    font-family: "Roboto", Arial, sans-serif;
    font-style: italic;
    font-weight: 500;
}

/* Le texte reste dans le fond blanc */
.popup-apropos p,
.popup-apropos > a {
    margin-right: 20px;
    margin-left: 20px;
}

.popup-apropos p:first-of-type {
    margin-top: 20px;
}

.popup-apropos > a:last-child {
    display: inline-block;
    margin-bottom: 20px;
}

.page-en-construction {
    position: relative;
    height: 100vh;
    height: 100svh;
    min-height: 0;
    box-sizing: border-box;
    padding: var(--hauteur-menu) 16px 24px;
    display: grid;
    place-items: center;
    overflow: hidden;
    background-image: url("../images/fond-construction.png");
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.page-en-construction img {
    display: block;
    width: min(850px, 95vw);
    max-height: calc(100svh - var(--hauteur-menu) - 24px);
    object-fit: contain;
	transform: scale(0.75);
}

.page-en-construction h1 {
    position: absolute;
    bottom: 7%;
    left: 50%;
    width: max-content;
    max-width: calc(100% - 28px);
    margin: 0;
    transform: translateX(-50%);
    color: #59636b;
    font-family: "Roboto", Arial, sans-serif;
    font-size: clamp(1.2rem, 3.4vw, 2rem);
    font-style: italic;
    font-weight: 700;
    letter-spacing: 0.08em;
    line-height: 1.15;
    text-align: center;
}

@media (max-width: 600px) {
    .page-en-construction h1 {
        bottom: 6%;
        width: calc(100% - 28px);
        font-size: clamp(1rem, 5vw, 1.5rem);
    }
}

.retour-haut {
    position: fixed;
    z-index: 20;
    right: 30px;
    bottom: 30px;
    display: grid;
    width: 32px;
    height: 32px;
    place-items: center;
    border: 2px solid navy;
    border-radius: 50%;
    color: navy;
    background: #efeff5;
    text-decoration: none;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.retour-haut.visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.retour-haut-fleche {
    width: 8px;
    height: 8px;
    border-top: 2px solid navy;
    border-left: 2px solid navy;
    transform: translateY(2px) rotate(45deg);
}

@media (prefers-reduced-motion: reduce) {
    .retour-haut {
        transition: none;
    }
}


/* Fond blanc par défaut du site */
body {
    background-color: #fff;
}


/* Popup des derniers articles : une seule colonne */
.popup-derniers-articles-grille {
    grid-template-columns: 1fr;
}

#popup-derniers-articles {
    width: min(410px, calc(100vw - 32px));
}


/* Listes continues des dix derniers articles */
.popup-derniers-articles-grille .popup-tout-site-groupe {
    margin-bottom: 0;
}

.popup-derniers-articles-grille .popup-tout-site-groupe li {
    margin-bottom: 0;
    line-height: 1.35;
}

.pied-colonne:nth-child(2) ul.pied-derniers-articles {
    margin: 0;
    padding-left: 18px;
    line-height: 1.35;
}

.pied-derniers-articles li {
    margin: 0 0 4px;
}

.pied-derniers-articles a {
    color: #fff;
    text-decoration: none;
}

.pied-derniers-articles a:hover,
.pied-derniers-articles a:focus-visible {
    text-decoration: underline;
}

.popup-derniers-articles-grille .popup-tout-site-groupe li {
    line-height: 2.025;
}

.pied-colonne:nth-child(2) ul.pied-derniers-articles {
    line-height: 2.025;
}

.pied-page > .pied-colonnes :where(h1, h2, h3, h4, p, li, a, small, strong, em, span),
.pied-page > .pied-bas {
    color: #ffffff !important;
}

.document-recent h4 a {
    color: inherit;
    text-decoration: none;
}

.document-recent h4 a:hover,
.document-recent h4 a:focus-visible {
    text-decoration: underline;
}

.document-recent .vignette-provisoire {
    overflow: hidden;
}

.document-recent .vignette-provisoire img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.document-recent a.vignette-provisoire {
    display: block;
    text-decoration: none;
}

.bouton-recherche,
.bouton-recherche:hover,
.bouton-recherche:focus-visible {
    color: #fff;
}

nav a.bouton-menu.bouton-recherche,
nav a.bouton-menu.bouton-recherche:link,
nav a.bouton-menu.bouton-recherche:visited,
nav a.bouton-menu.bouton-recherche:hover,
nav a.bouton-menu.bouton-recherche:focus,
nav a.bouton-menu.bouton-recherche:active {
    color: #fff !important;
}

.liens-menu > a.bouton-recherche,
.liens-menu > a.bouton-recherche:hover,
.liens-menu > a.bouton-recherche:focus-visible {
    color: #fff !important;
    font-size: 0.7rem !important;
    font-weight: bold !important;
    letter-spacing: 0.12em !important;
	padding: 5px 10px !important;
}
