/* Atelier de montage - Styles */

/* ============================================
   VARIABLES & COLORS
   ============================================ */
:root {
  --color-noir: #0d374a;
  --color-rouge: #e24446;
  --color-rouge-clair: #ff4f52;
  --color-creme: #fefff7;
  --font-main: "Noto Sans", sans-serif;
  --font-heading: "Bungee Hairline", cursive;
  --font-title: "Bungee", cursive;
}

/* ============================================
   RESET & BASE
   ============================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 19px;
}

body {
  font-family: var(--font-main);
  color: var(--color-noir);
  background-color: var(--color-creme);
  line-height: 1.6;
  background-repeat: no-repeat;
  background-position: top right;
  background-attachment: scroll;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  color: var(--color-noir);
  hyphens: none;
  -webkit-hyphens: none;
  -moz-hyphens: none;
  -ms-hyphens: none;
}

h1 {
  font-family: var(--font-title);
  font-size: 2.5rem;
  line-height: 1.2em;
  margin-bottom: 1rem;
}

h1 span {
  font-size: 1.2rem;
  font-weight: 400;
  display: block;
  margin-top: 0.5rem;
  line-height: 1.5;
  color: var(--color-rouge);
}

h2,
h3 {
  font-family: var(--font-heading);
  font-size: 3rem;
  line-height: 3rem;
  margin: 2rem 0 1.5rem;
}

h2 {
  border-bottom: 1px solid var(--color-noir);
  padding-bottom: 0.5rem;
}

h3 {
  font-size: 2rem;
  line-height: 2rem;
}

p,
li {
  hyphens: none;
  margin-bottom: 1rem;
}

nav li {
  margin-bottom: 0;
}

blockquote {
  margin: 3rem auto;
  max-width: 800px;
  line-height: 1.5em;
  font-style: italic;
}

blockquote p {
  border-left: 3px solid var(--color-rouge);
  padding-left: 1.5rem;
}

blockquote footer {
  margin-top: 1rem;
  font-style: normal;
  font-size: 0.8rem;
  color: var(--color-noir);
  background: none;
}

blockquote cite {
  font-style: normal;
  font-weight: 700;
}

/* ============================================
   LINKS
   ============================================ */
a {
  color: var(--color-noir);
  text-decoration: none;
  border-bottom: 3px solid var(--color-rouge);
  transition: border-color 0.3s ease;
}

a:hover,
a:focus {
  border-bottom-color: var(--color-rouge-clair);
}

/* ============================================
   LAYOUT
   ============================================ */
.page-wrapper {
  display: grid;
  grid-template-columns: 280px 1fr;
  min-height: 100vh;
}

.sidebar {
  background-color: var(--color-rouge);
  padding: 2rem 1.5rem;
  overflow-y: auto;
  box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
}

main {
  margin: 2rem;
  padding: 0 3rem;
}

.main-content {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  max-width: 1050px;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ============================================
   SIDEBAR & NAVIGATION
   ============================================ */
.site-title {
  font-family: var(--font-title);
  font-size: 1.5rem;
  color: var(--color-creme);
  margin: 0 0 2rem 0;
}

.sidebar nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.sidebar nav a {
  color: var(--color-creme);
  border: none;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 0.5rem;
  display: block;
  transition: background-color 0.3s ease;
  border-radius: 4px;
}

.sidebar nav a:hover, 
.sidebar nav a.active {
  background-color: var(--color-rouge-clair);
}

.contact-info {
  background-color: var(--color-rouge);
  padding: 2rem 0;
  margin-top: 2rem;
  border-top: 1px solid rgba(254, 255, 247, 0.3);
  font-style: normal;
  font-size: 0.85rem;
  line-height: 1.5;
}

.contact-info p {
  margin-bottom: 1rem;
  color: var(--color-creme);
}

.contact-info a {
  color: var(--color-creme);
  border-bottom: 1px solid var(--color-creme);
  transition: opacity 0.3s ease;
  word-wrap: break-word;
  overflow-wrap: break-word;
  display: inline-block;
  max-width: 100%;
}

.contact-info a:hover {
  opacity: 0.8;
}

.sidebar-partner {
  text-align: center;
}

.sidebar-partner h2 {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-creme);
  margin-bottom: 1rem;
  border: none;
  font-family: var(--font-main);
  font-weight: 500;
}

.partner-logo {
  max-width: 160px;
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  transition: opacity 0.3s ease;
}

.partner-logo:hover {
  opacity: 0.8;
}

.sidebar-contact {
  display: block;
  /* margin-top: auto; */
}

.footer-contact {
  display: none;
}

.footer-partner {
  display: none;
}

/* ============================================
   RESPONSIVE - TABLET
   ============================================ */
@media screen and (min-width: 769px) and (max-width: 1024px) {
  main {
    margin: 1.5rem;
    padding: 0 2rem;
  }

  .sidebar-contact {
    display: block;
  }

  .sidebar-contact .contact-info {
    padding: 1.5rem 1rem;
    font-size: 0.8rem;
  }

  .sidebar-contact .contact-info p {
    margin-bottom: 0.75rem;
  }
}

/* ============================================
   RESPONSIVE - MOBILE
   ============================================ */
@media screen and (max-width: 768px) {
  .page-wrapper {
    grid-template-columns: 1fr;
    display: flex;
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
    padding: 1.5rem 1rem;
  }

  .main-content {
    flex: 1;
  }

  .sidebar nav ul {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .sidebar nav a {
    padding: 0.5rem 1rem;
  }

  .sidebar-contact {
    display: none;
  }

  .sidebar-partner {
    display: none;
  }

  .footer-contact {
    display: block;
  }

  .footer-partner {
    display: block;
    padding: 2rem 1.5rem;
    text-align: center;
    background-color: var(--color-rouge);
  }

  .footer-partner h2 {
    color: var(--color-creme);
    border: none;
  }

  .footer-contact .contact-info {
    width: 100%;
    text-align: center;
    margin-top: auto;
  }
}

/* ============================================
   FORMS
   ============================================ */
.form-group {
  margin-bottom: 1.5rem;
}

label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

input[type="text"],
input[type="email"],
input[type="file"],
textarea,
select {
  width: 100%;
  padding: 0.75rem;
  border: none;
  border-radius: 8px;
  background-color: var(--color-creme);
  box-shadow: 0 0 1px var(--color-rouge);
  font-family: var(--font-main);
  font-size: 1rem;
}

textarea {
  resize: vertical;
  min-height: 120px;
}

button,
input[type="submit"],
.btn,
.cta-button {
  background-color: var(--color-rouge);
  color: var(--color-creme);
  border: none;
  border-radius: 8px;
  padding: 1rem 2rem;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 1px;
}

button:hover,
input[type="submit"]:hover,
.btn:hover,
.cta-button:hover {
  background-color: var(--color-rouge-clair);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  background-color: var(--color-noir);
  color: var(--color-creme);
  padding: 4rem 2rem;
  text-align: center;
  margin: 0 0 3rem 0;
}

.hero h2 {
  color: var(--color-creme);
  border: none;
  font-size: 3rem;
  margin-bottom: 1rem;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.hero p {
  font-size: 1.3rem;
  color: var(--color-creme);
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

/* ============================================
   CONTENT SECTIONS
   ============================================ */

.content ul,
.certification ul {
  list-style: none;
  padding-left: 0;
}

.content li,
.certification li {
  padding-left: 1.5rem;
  position: relative;
  margin-bottom: 0.5rem;
}

.content li:before,
.certification li:before {
  content: "•";
  color: var(--color-rouge);
  font-weight: bold;
  position: absolute;
  left: 0;
}

.qualiopi-content {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  margin-bottom: 2rem;
}

.qualiopi-logo {
  max-width: 200px;
  height: auto;
  flex-shrink: 0;
}

/* ============================================
   UTILITIES
   ============================================ */
.text-center {
  text-align: center;
}

.mt-2 {
  margin-top: 2rem;
}
.mb-2 {
  margin-bottom: 2rem;
}
.py-2 {
  padding-top: 2rem;
  padding-bottom: 2rem;
}

/* ============================================
   RESPONSIVE - MOBILE OPTIMIZATIONS
   ============================================ */
@media screen and (max-width: 768px) {
  /* Base font size */
  html {
    font-size: 16px;
  }

  /* Typography adjustments */
  h1 {
    font-size: 1.75rem;
    line-height: 1.3;
  }

  h1 span {
    font-size: 1rem;
    margin-top: 0.25rem;
  }

  h2,
  h3 {
    font-size: 1.75rem;
    line-height: 1.9rem;
    margin: 1.5rem 0 1rem;
  }

  h3 {
    font-size: 1.5rem;
    line-height: 1.6rem;
  }

  /* Hero section */
  .hero {
    padding: 2.5rem 1.5rem;
    margin: 0 0 2rem 0;
  }

  .hero h2 {
    font-size: 1.75rem;
    line-height: 1.9rem;
    margin-bottom: 0.75rem;
  }

  .hero p {
    font-size: 1rem;
  }

  /* Layout spacing */
  main {
    margin: 0;
    padding: 1.5rem 1rem;
  }

  .container {
    padding: 0 1rem;
  }

  section {
    padding: 1rem;
  }

  /* Forms */
  .form-group {
    margin-bottom: 1.25rem;
  }

  input[type="text"],
  input[type="email"],
  input[type="file"],
  textarea,
  select {
    padding: 0.65rem;
    font-size: 16px; /* Prevents zoom on iOS */
  }

  button,
  input[type="submit"],
  .btn,
  .cta-button {
    padding: 0.85rem 1.5rem;
    font-size: 0.9rem;
    width: 100%;
  }

  /* Content sections */
  .content li,
  .certification li {
    padding-left: 1.25rem;
    font-size: 0.95rem;
  }

  blockquote {
    margin: 1.5rem 0;
  }

  blockquote p {
    padding-left: 1rem;
    border-left-width: 2px;
  }

  /* Qualiopi section */
  .qualiopi-content {
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
  }

  .qualiopi-logo {
    max-width: 150px;
    margin: 0 auto;
  }

  /* Utilities */
  .mt-2 {
    margin-top: 1.5rem;
  }
  .mb-2 {
    margin-bottom: 1.5rem;
  }
  .py-2 {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
  }

  /* Touch target improvements */
  a {
    /* min-height: 44px; */
    display: inline-block;
  }

  nav a,
  button,
  input[type="submit"] {
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
}
