@font-face {
    font-family: Barlow;
    src: url("../fonts/Barlow-TypoDesBois.otf") format("opentype");
    font-weight: normal;
}
/* page */
body {
    background-color: #0D1021;
    font-family: Arial, Helvetica, sans-serif;
    color: aliceblue;
    margin: 80px auto;
    width: 1600px;
}

/* titres */
h1 {
    margin-bottom: 40px;
    font-family: Barlow;
    font-size: 150px;
}

h2 {
    margin-top: 100px;
    margin-bottom: 80px;
    font-family: Barlow;
    font-size: 125px;
}

/*text block*/
p {
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    font-weight: 300;
    font-size: 24px;
    text-align: left;
    margin: 20px;
    width: 1400px;
}

figcaption {
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    font-weight: 100;
    font-size: 18px;
    margin-top: 30px;
    margin-bottom: 20px;
}

main {
   margin-top: 200px;
   margin-bottom: 300px;
}

/* blocs plein largeur de contenu */
.hero,
.p1-images,
.p2-images,
.p3-cit,
figure,
.grid-2,
.grid-3 {
    width: 1400px;
}

/* images plein largeur dans leur bloc */
.hero img,
.p3-cit img,
figure img {
    width: 100%;
    height: auto;
    display: block;
}

/* vidéo  */
iframe {
    width: 1400px;
    height: auto;
    aspect-ratio: 16/9;
    display: block;
}

/* période 1 */
.p1-images {
    height: auto;
    display: flex;
    gap: 20px;
}

.p1-images img {
    width: 100%;
    height: 100%;
}

/* période 2 */
.p2-images {
    height: auto;
}

/* période 3 */
.p3-cit {
    height: auto;
    overflow: hidden;
}

/* figure par défaut */
figure {
    margin: 40px 0;
}

/* figure dans les grilles : s’adapte à la colonne */
.grid-2 figure,
.grid-3 figure {
    width: 100%;
    margin: 0;
}

/* grille 2 colonnes (images + vidéo) */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.grid-2 img,
.grid-2 iframe {
    width: 100%;
    height: auto;
    display: block;
}

/* grille 3 colonnes */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.grid-3 img,
.grid-3 figure {
    width: 100%;
    height: auto;
}

/* respiration visuelle */
.hero,
.p1-images,
.p2-images,
.p3-cit,
figure,
iframe {
    margin-bottom: 100px;
}