/* ==========================================================
   style.css — Site vitrine (HTML/CSS uniquement)
   Sections : 1 Variables · 2 Base · 3 Layout · 4 En-tête/pied
              5 Accueil · 6 Étiquettes · 7 Contact · 8 Cartes
              9 Connexion (optionnel) · 10 Responsive
   ========================================================== */

/* 1. VARIABLES — modifier ici les couleurs et la police */
:root {
  --blanc: #ffffff;
  --rouge: #e20036;   /* accent */
  --gris: #707173;    /* texte secondaire, bordures */
  --noir: #1a1a1a;    /* usage ponctuel */
  --filet: #e3e3e4;
  --police: "Nobile", "Helvetica Neue", Arial, sans-serif;
  /* Police des titres et sous-titres. Alternatives compatibles avec Nobile :
     "Playfair Display" (plus éditorial) ou "Josefin Sans" (sans-serif géométrique).
     Pensez à changer aussi le nom dans le lien Google Fonts des pages HTML. */
  --police-titre: "Lora", Georgia, "Times New Roman", serif;
  --largeur: 62rem;
}

/* 2. BASE */
*, *::before, *::after { box-sizing: border-box; }
html { font-size: 100%; scroll-behavior: auto; }
body {
  margin: 0;
  background: var(--blanc);
  color: var(--gris);
  font-family: var(--police);
  font-size: 1.0625rem;
  line-height: 1.7;
}
h1, h2, h3 { font-family: var(--police-titre); color: var(--noir); font-weight: 700; line-height: 1.2; margin: 0 0 1rem; }
h1 { font-size: clamp(2rem, 5vw, 2rem); }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1rem; }
a { color: var(--rouge); text-underline-offset: 0.2em; }
a:hover { color: var(--noir); }
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 3px solid var(--rouge);
  outline-offset: 3px;
}
.sr-only { /* texte réservé aux lecteurs d'écran */
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.skip-link { position: absolute; left: -999px; top: 0; background: var(--blanc); padding: .5rem 1rem; }
.skip-link:focus { left: 0; z-index: 10; }

/* 3. LAYOUT */
.container { width: min(100% - 2.5rem, var(--largeur)); margin-inline: auto; }
.section { padding: 4rem 0; border-top: 1px solid var(--filet); }
.section__title { display: flex; align-items: center; gap: .75rem; }
.section__title::before { content: ""; width: 1.5rem; height: 3px; background: var(--rouge); }

/* 4. EN-TÊTE / PIED */
.site-header { padding: 1.5rem 0; }
.site-header .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; }
.site-logo { display: inline-block; line-height: 0; }
.site-logo img { display: block; height: 5rem; width: auto; max-width: 100%; } /* ajuster la hauteur du logo ici */
.site-nav ul { display: flex; gap: 1.5rem; list-style: none; margin: 0; padding: 0; }
.site-nav a { color: var(--gris); text-decoration: none; padding-bottom: .15rem; border-bottom: 2px solid transparent; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--noir); border-color: var(--rouge); }
.site-footer { padding: 2rem 0; border-top: 1px solid var(--filet); font-size: .9rem; }

/* 5. ACCUEIL */
.hero { padding: 4rem 0 3rem; }
.hero__role { color: var(--rouge); font-size: 1.15rem; margin-bottom: 1.5rem; }
.about { display: grid; grid-template-columns: 1fr 2fr; gap: 2.5rem; align-items: start;
  border: 1px solid var(--filet); border-top: 3px solid var(--rouge); padding: 2rem; }
.about .placeholder-visual { margin-bottom: 0; }
.placeholder-visual { /* emplacement logo / portrait — à remplacer par <img> */
  display: grid; place-items: center; min-height: 10rem; margin-bottom: 1.5rem;
  border: 1px dashed var(--gris); color: var(--gris); font-size: .9rem; text-align: center; padding: 1rem;
}

/* DIAPORAMA / BANNER (CSS seul) */
.banner { position: relative; margin-bottom: 1rem; }
.banner__radio { position: absolute; opacity: 0; pointer-events: none; }
.banner__slide { display: none; margin: 0; }
.banner__slide .placeholder-visual, .banner__slide img {
  display: block; width: 100%; aspect-ratio: 21 / 8; object-fit: cover; margin: 0; min-height: 0;
}
.banner__slide figcaption { margin-top: .6rem; font-size: .9rem; }
.banner__dots { display: flex; justify-content: center; gap: .75rem; margin-top: 1rem; }
.banner__dots label { width: 1.5rem; height: .5rem; background: var(--filet); cursor: pointer; }
.banner__dots label:hover { background: var(--gris); }
#banner-1:checked ~ .banner__slides .banner__slide:nth-child(1),
#banner-2:checked ~ .banner__slides .banner__slide:nth-child(2),
#banner-3:checked ~ .banner__slides .banner__slide:nth-child(3),
#banner-4:checked ~ .banner__slides .banner__slide:nth-child(4),
#banner-5:checked ~ .banner__slides .banner__slide:nth-child(5) { display: block; }
#banner-1:checked ~ .banner__dots label:nth-child(1),
#banner-2:checked ~ .banner__dots label:nth-child(2),
#banner-3:checked ~ .banner__dots label:nth-child(3),
#banner-4:checked ~ .banner__dots label:nth-child(4),
#banner-5:checked ~ .banner__dots label:nth-child(5) { background: var(--rouge); }
#banner-1:focus-visible ~ .banner__dots label:nth-child(1),
#banner-2:focus-visible ~ .banner__dots label:nth-child(2),
#banner-3:focus-visible ~ .banner__dots label:nth-child(3),
#banner-4:focus-visible ~ .banner__dots label:nth-child(4),
#banner-5:focus-visible ~ .banner__dots label:nth-child(5) { outline: 3px solid var(--rouge); outline-offset: 3px; }

/* 6. ÉTIQUETTES DE COMPÉTENCES */
.tags { display: flex; flex-wrap: wrap; gap: .6rem; list-style: none; margin: 1.5rem 0 0; padding: 0; }
.tags li { border: 1px solid var(--gris); color: var(--noir); padding: .3rem .9rem; font-size: .95rem; }
.tags li:hover { border-color: var(--rouge); }

/* 7. CONTACT */
.contact-list { display: flex; flex-wrap: wrap; gap: 1rem 2rem; list-style: none; margin: 1.5rem 0 0; padding: 0; }
.contact-link { display: inline-flex; align-items: center; gap: .6rem; font-weight: 700; }
.contact-link svg, .btn svg { width: 1.4rem; height: 1.4rem; fill: currentColor; flex: none; }

/* 8. CARTES « CASE STUDIES » + BOUTONS */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.card { border: 1px solid var(--filet); border-top: 3px solid var(--rouge); padding: 1.75rem; display: flex; flex-direction: column; }
.card__label { color: var(--rouge); font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: .5rem; }
.card p { flex: 1; }
.btn {
  display: inline-block; align-self: flex-start; padding: .6rem 1.2rem;
  border: 2px solid var(--rouge); color: var(--rouge); background: var(--blanc);
  font: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
}
.btn:hover { background: var(--rouge); color: var(--blanc); }

/* 9. FORMULAIRE DE CONNEXION (présentation seulement, voir case-studies.html) */
.login { max-width: 24rem; margin: 4rem auto; padding: 2rem; border: 1px solid var(--filet); }
.login label { display: block; margin-bottom: .4rem; color: var(--noir); }
.login input { width: 100%; padding: .65rem; margin-bottom: 1.25rem; border: 1px solid var(--gris); font: inherit; }

/* 10. RESPONSIVE */
@media (max-width: 60rem) { .cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 40rem) {
  .about, .cards { grid-template-columns: 1fr; gap: 2rem; }
  .section { padding: 3rem 0; }
  .site-nav ul { gap: 1rem; }
}
