/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/*responsive design*/
:root {

/* responsive padding */
  --padding-xs: 1.5rem;
  --padding-sm: 2rem;
  --padding-md: 3rem;

  /* Vertical rhythm */
  --space-v-xs: clamp(2rem, 4vw, 3rem);
  --space-v-sm: clamp(3rem, 6vw, 4rem);
  --space-v-md: clamp(4rem, 8vw, 6rem);

  /* Typography scale */
  --font-base: 1rem;
  --font-lg: clamp(1.25rem, 2vw, 1.75rem);
  --font-xl: clamp(1.75rem, 3vw, 2.5rem);
}

ul {
  text-align: left;
  margin-bottom: 1rem;
}

/* Default (desktop and above 768px) */
h6 {
  font-size: 0.8rem;
    color: #b19000;
  font-style: italic;
          margin-bottom: 1rem;

}
h3 {
    margin-bottom: 1rem;
}
h2 {
    margin-bottom: 1.5rem;
}

/* Tablet: up to 768px */
@media (max-width: 768px) {
  h6 {
    font-size: 0.8rem;
        margin-bottom: 1rem;

  }
}

/* Mobile: up to 480px */
@media (max-width: 480px) {
  h6 {
    font-size: 0.5rem;
  }
 h3 {
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
  }

}
@media (min-width: 480px) {
  :root {
    --space-sm: 2rem;
   
    --font-base: 1rem;
    --font-sm: 0.875rem;
    --font-lg: clamp(1.25rem, 4vw, 1.5rem);
    --font-xl: clamp(1.5rem, 5vw, 2rem);

    --space-v-xs: clamp(1.5rem, 4vw, 2rem);
    --space-v-sm: clamp(2rem, 6vw, 3rem);
  }
}

@media (min-width: 769px) {
  :root {
    --space-sm: 3rem;
    --font-base: 1.125rem;
    --font-sm: 1rem;
    --font-lg: clamp(1.5rem, 3vw, 2rem);
    --font-xl: clamp(2rem, 4vw, 2.75rem);

    --space-v-xs: clamp(2rem, 5vw, 3rem);
    --space-v-sm: clamp(3rem, 7vw, 4rem);

  }
}


/* Base styles AI*/
h1, .heading-xl {
  font-size: var(--font-xl);
  line-height: 1.3;
}

h2, .heading-lg {
  font-size: var(--font-lg);
  line-height: 1.2;
}

p, .text-base {
  font-size: var(--font-base);
  line-height: 1.1;
}


html, body {
  height: 100%;
  scroll-behavior: smooth;
}

header {
  position: relative;
  top: 0;
  z-index: 1000;
  background-color: #222;
  color: white;
  height:auto;
  
}
@media (max-width: 768px) {
  .menu {
    flex-direction: column;
    align-items: center;
    padding-left: 1px;
    padding-right: 1px;
  }
}
.branding {
  display: flex;
  align-items: self-start;
  gap: 0.5rem;
  text-decoration: none;
  color: inherit;
}

 @media (min-width: 768px) {
  .big-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* logo and title */
.branding h3 {
  margin: 0;
  font-size: 1.2rem;
  color: white;
}
.branding a {
  text-decoration: none;
  color: inherit;
}
 }

.icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;  
}


.menu {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
}

#navbar {

  width: 100%;
  display: flex;
  align-items: center;
justify-content: space-between;
}

.navbar ul {
  
  list-style: none;
  display: flex;
  gap: 1rem;
    margin: 0;
  padding: 0;

}

.navbar a {
  color: white;
  text-decoration: none;
}

/* Sections */



.section {
  background:  #fff;
  border-bottom: 1px solid #fff;
  
  /*media dependant */
  padding-bottom: var(--space-v-sm);
  /* margin-bottom: var(--space-v-sm); */
  padding-left: var(--padding-xs);
  padding-right: var(--padding-xs);
  p {
    margin-bottom: var(--space-v-xs);
  }
}

/* sm: 481px and up */
@media (min-width: 30.063em) {
  .section {
    padding-left: var(--padding-sm);
    padding-right: var(--padding-sm);
  }
}

/* md: 769px and up */
@media (min-width: 48.063em) {
  .section {
    padding-left: var(--padding-md);
    padding-right: var(--padding-md);
  }
}

.container {
  display: flex;
  flex-direction: column;
  align-items: center;
    max-width: 1280px;
  width: 100%;
  text-align: center;
}

/* MEDIA LEFT RIGHT TOP DOW */
.media-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-v-xs); /* Optional spacing between image and text */
  text-align: center;
  
}

/* On larger screens: image left, text right */
@media (min-width: 48.063em) {
  .media-block {
    flex-direction: row;
    align-items: flex-start;
    text-align: left;
  }

  .media-img {
    margin-right: var(--space-h-sm); /* Optional spacing */
    max-width: 480px; 
  }
}
@media (max-width: 48em) {
  .media-img {
   /* width: 100%;*/
    max-width: 300px; /* Adjust this to suit your design */
    height: auto;
    display: block;
    margin: 0 auto; /* Center the image */


  }
}
/*  Bouton contact */
.contact-button {
  display: inline-block;
  padding: 12px 24px;
  background-color: #0078d4;
  color: white;
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 8px;
  transition: background-color 0.3s ease, transform 0.2s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.contact-button:hover {
  background-color: #005fa3;
  transform: translateY(-2px);
}


/* FOOTER */
footer {
  background-color: #222;
  color: white;
}

/* IMAGES */
img {
  height: auto;
  display: block;
}

/* Icons */
.download-link {
  display: inline-flex;
  align-items: center;
  font-weight: bold;
  text-decoration: none;
  color: #2c3e50;
  gap: 8px;
}

.icon {
  width: 20px;
  height: 20px;
}



  /*********************/
 /**** FORMULAIRE ****/
/********************/
.text-fields {
  display: flex;
  flex-direction: column;
  gap: 1em;
  margin-bottom: 1.5em;
}

.text-fields label {
  font-weight: bold;
  color: #333;
}

.text-fields input {
  width: 100%;
  padding: 0.5em;
  font-size: 1em;
  border: 1px solid #ff0000;
  border-radius: 4px;
}

.skills-section {
  max-width: 800px;
  margin: auto;
  padding: 20px;
  font-family: Arial, sans-serif;
}

.skills-section h2 {
  text-align: center;
  margin-bottom: 10px;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 15px;
}

.skills-grid label {
  display: block;
  background: #f5f5f5;
  padding: 10px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s;
}

.skills-grid label:hover {
  background: #e0e0e0;
}

.skills-grid input[type="checkbox"] {
  margin-right: 8px;
}

button {
  margin-top: 20px;
  padding: 10px 20px;
  background: #0078D4;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

button:hover {
  background: #005fa3;
}

@media (max-width: 600px) {
  .skills-grid {
    grid-template-columns: 1fr;
  }
}