/* CSS is how you can add style to your website, such as colors, fonts, and positioning of your
   HTML content. To learn how to do something, just try searching Google for questions like
   "how to change link color." */

/* 1.  Import Google Fonts
   — Inter : corps du texte, 400 & 600
   — Wavefont : titres, variable axes              */
@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Chicle&display=swap");

/* 2.  Variables globales (couleurs & typographies) */
:root {
  --font-body:    "Montserrat", system-ui, sans-serif;
  --font-display: "Chicle", cursive;

  --bg:    #ffffff;
  --text:  #1a1a1a;
  --accent:#2d5be3;

  --max-width: 68ch;      
  --step-0: clamp(1rem , 0.95rem + 0.2vw , 1.125rem); 
  --step-3: clamp(2.2rem, 1.8rem  + 2vw , 3rem);     

  --header-image: url('11-Adriaen-Brouwer-scaled.jpg');
}

#header {
  width: 100%;
  height: 150px;
  background-color: #5e4e8c;
  background-image: var(--header-image);
  background-size: cover;
  background-position: center 92%;
}

            body {
                font-family: var(--font-body);
                font-size: var(--step-0);
                line-height:1.6;
                color:var(--text);
                margin: 0;
                background-color: #08031A;
                /* you can delete the line below if you'd prefer to not use an image */
                background-size: 65px;
                background-image: url("canvas.gif");
            }



            * {
                box-sizing: border-box;
            }

            /* below this line is CSS for the layout */

            /* this is a CSS comment
    to uncomment a line of CSS, remove the * and the /
    before and after the text */


            /* the "container" is what wraps your entire website */
            /* if you want something (like the header) to be Wider than
    the other elements, you will need to move that div outside
    of the container */
            #container {
                max-width: 900px;
                /* this is the width of your layout! */
                /* if you change the above value, scroll to the bottom
      and change the media query according to the comment! */
                margin: 0 auto;
                /* this centers the entire page */
            }

            /* the area below is for all links on your page
    EXCEPT for the navigation */
            #container a {
                color: #ED64F5;
                font-weight: bold;
                /* if you want to remove the underline
      you can add a line below here that says:
      text-decoration:none; */
            }

            #header {
                width: 100%;
                background-color: #5e4e8c;
                /* header color here! */
                height: 150px;
                /* this is only for a background image! */
                /* if you want to put images IN the header, 
      you can add them directly to the <div id="header"></div> element! */
                background-image: var(--header-image);
                background-size: 100%;
            }

            /* navigation section!! */
            #navbar {
                height: 40px;
                width: 100%;
                background-color: #FFFFF7;
                border-radius: 12px; /* 👈 arrondit les coins */
            }

            #navbar ul {
                display: flex;
                padding: 0;
                margin: 0;
                list-style-type: none;
                justify-content: space-evenly;
            }

            #navbar li {
                padding-top: 10px;
            }

            /* navigation links*/
            #navbar li a {
                font-weight: 800;
                color: #FFA2CF;
                text-decoration: none;
                /* this removes the underline */
            }

            /* navigation link when a link is hovered over */
            #navbar li a:hover {
                color: #DCDA6D;
                text-decoration: underline;
            }

            #flex {
                display: flex;
            }

            /* this colors BOTH sidebars
    if you want to style them separately,
    create styles for #leftSidebar and #rightSidebar */
            aside {
                background-color: #ffffcc;
                width: 200px;
                padding: 20px;
                font-size: smaller;
                /* this makes the sidebar text slightly smaller */
            }


            /* this is the color of the main content area,
    between the sidebars! */
           main {
  display: flex;
  width: 960px;         /* largeur totale fixe */
  margin: 20px auto;    /* centré horizontalement */
  gap: 20px;            /* espace entre les colonnes */
}

/* Colonne principale */
.content {
  width: 680px;
  background: #FFFFF7;
  padding: 20px;
    border-radius: 12px; /* 👈 arrondit les coins */
}

/* Colonne secondaire */
.sidebar {
  width: 250px;
  background: #A6D8F7;
  padding: 20px;
    border-radius: 12px; /* 👈 arrondit les coins */
}

            /* what's this "order" stuff about??
    allow me to explain!
    if you're using both sidebars, the "order" value
    tells the CSS the order in which to display them.
    left sidebar is 1, content is 2, and right sidebar is 3! */

            */ #leftSidebar {
                order: 1;
            }

            #rightSidebar {
                order: 3;
            }

            footer {
                width: 100%;
                height: 40px;
                padding: 10px;
                text-align: center;
                /* this centers the footer text */
            }

            h1,
            h2,
            h3 {
                color: #363636;
            }

            h1 {
                font-size: 25px;
            }

            strong {
                /* this styles bold text */
                color: #ED64F5;
            }

            /* this is just a cool box, it's the darker colored one */
            .box {
                background-color: #13092D;
                border: 1px solid #ED64F5;
                padding: 10px;
            }

            /* CSS for extras */

            #topBar {
                width: 100%;
                height: 30px;
                padding: 10px;
                font-size: smaller;
                background-color: #13092D;
            }


            /* BELOW THIS POINT IS MEDIA QUERY */

            /* so you wanna change the width of your page? 
    by default, the container width is 900px.
    in order to keep things responsive, take your new height,
    and then subtrack it by 100. use this new number as the 
    "max-width" value below
    */

            @media only screen and (max-width: 800px) {
                #flex {
                    flex-wrap: wrap;
                }

                aside {
                    width: 100%;
                }

                /* the order of the items is adjusted here for responsiveness!
      since the sidebars would be too small on a mobile device.
      feel free to play around with the order!
      */
                main {
                    order: 1;
                }

                #leftSidebar {
                    order: 2;
                }

                #rightSidebar {
                    order: 3;
                }

                #navbar ul {
                    flex-wrap: wrap;
                }
            }
        </style>

    


/* Conteneur principal */
main {
  display: flex;
  width: 960px;         /* largeur totale fixe */
  margin: 0 auto;       /* centré horizontalement */
  padding: 20px;
  gap: 20px;            /* espace entre les colonnes */
}

/* Colonne principale */
.content {
  width: 680px;
}

/* Colonne secondaire */
.sidebar {
  width: 250px;
  padding: 10px;
}  


/* 4.  Titres “ondulants” */
h1,h2,h3{
  font-family: var(--font-display);
  font-weight:600;
  line-height:1.15;
  text-wrap:balance;
  text-shadow: 0 1px 0 rgba(0,0,0,.04);       /* léger relief */
  letter-spacing: 0.5px;
  margin-block:1.2em .4em;
}

/* — Taille fluide des titres — */
h1{font-size:var(--step-3);}
h2{font-size:clamp(1.6rem,1.2rem+1vw,2.2rem);}
h3{font-size:clamp(1.25rem,1.1rem+0.5vw,1.5rem);}

/* 5.  Liens et boutons */
a{
  color:var(--accent);
  text-decoration:none;
  position:relative;
}
a::after{
  content:"";
  position:absolute;
  left:0;
  bottom:-2px;
  width:100%;
  height:2px;
  background:currentColor;
  transform:scaleX(0);
  transform-origin:left;
  transition:transform .3s ease;
}
a:hover::after{transform:scaleX(1);}

/* 6.  Images & figures */
img,video,svg{
  max-width:100%;
  height:auto;
  display:block;

}
