/* ═══════════════════════════════════════════════════════════════
   Ikala-Ni | Études de cas
   Chargée après commun.css par les fiches de projets/.
   Ne contient que ce qui est propre aux études de cas : la charte,
   l'en-tête, les appareils et les boutons flottants viennent de
   commun.css.

   Sommaire
     1. Réglages de la page (espacement des sections, titres)
     2. En-tête de fiche (fil d'Ariane, titre, accroche)
     3. En bref : le projet en clair, puis la technique
     4. Vitrine : le site sur ordinateur et sur téléphone
     5. Identité : le logo dessiné pour le client
     6. Contenu courant (deux colonnes, listes à puces)
     7. Travail réalisé : blocs
     8. Le + du projet
     9. Projet suivant
    10. Mouvement propre aux fiches
    11. Responsive
   ═══════════════════════════════════════════════════════════════ */


/* ═════════ 1. RÉGLAGES DE LA PAGE ═════════ */
section { padding: clamp(56px, 7.5vw, 104px) 0; }

h2 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); margin-top: 18px; }


/* ═════════ 2. EN-TÊTE DE FICHE ═════════ */
.fiche-entete { padding: 150px 0 0; }

/* Fil d'Ariane : Accueil / Projets / Nom du projet */
.ariane { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 40px; list-style: none; font-size: 0.8125rem; color: var(--texte-2); }
.ariane a { text-decoration: none; transition: color 0.3s; }
.ariane a:hover { color: var(--or); }
.ariane li + li::before { content: '/'; margin-right: 10px; color: var(--filet-or); }

.fiche-entete h1 { margin: 22px 0 18px; font-family: var(--titre); font-weight: 400; font-size: clamp(2.6rem, 6vw, 5.2rem); line-height: 0.95; letter-spacing: -0.03em; }
.presta { font-size: 1.125rem; font-weight: 600; }

/* Accroche à gauche, boutons à droite */
.fiche-intro { display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px 64px; align-items: end; margin-top: 36px; }
.accroche { max-width: 30em; color: var(--texte-2); font-size: 1.25rem; line-height: 1.55; }
.fiche-intro .boutons { justify-content: flex-end; }


/* ═════════ 3. EN BREF ═════════
   Deux niveaux de lecture : à gauche le projet en clair (rôle, type),
   à droite l'environnement technique, pour les lecteurs du métier. */
.en-bref { display: grid; grid-template-columns: 1fr 1.1fr; gap: 24px; margin-top: 64px; }

.projet-infos { display: grid; align-content: start; border-top: 1px solid var(--filet); }
.projet-infos div { padding: 22px 0; border-bottom: 1px solid var(--filet); }
.projet-infos dd { font-size: 1rem; }

/* Petits titres or communs aux deux colonnes */
.projet-infos dt, .techno-titre, .architecture dt {
  margin-bottom: 8px; font-size: 0.6875rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--or);
}

/* Encadré technique, légèrement doré */
.techno { padding: 28px 30px; border: 1px solid var(--filet-or); border-radius: 12px; background: linear-gradient(140deg, rgba(201, 168, 76, 0.07), transparent 55%); }
.techno .outils { margin-top: 6px; }

/* Outils sous forme de pastilles */
.outils { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; }
.outils li { padding: 8px 18px; border: 1px solid var(--filet); border-radius: 999px; font-size: 0.875rem; color: var(--texte-2); }

/* Architecture du projet (utilisée pour Jaozafy) */
.architecture { display: grid; gap: 14px; margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--filet); }
.architecture dt { margin-bottom: 2px; }
.architecture dd { font-size: 0.9375rem; color: var(--texte-2); }


/* ═════════ 4. VITRINE ═════════
   L'écran de bureau et le téléphone font défiler la page en même temps :
   même --duree pour les deux (posée sur .appareils), et commun.js
   les active ensemble. */
.vitrine { padding-top: clamp(64px, 8vw, 112px); }
/* Halo or derrière les appareils */
.vitrine::before {
  content: ''; position: absolute; left: 50%; top: 55%; width: min(1100px, 100%); height: 700px; translate: -50% -50%; pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(201, 168, 76, 0.12), transparent 62%);
}

.appareils { position: relative; display: grid; grid-template-columns: 1fr minmax(160px, 0.33fr); gap: clamp(28px, 4vw, 64px); align-items: start; }
.appareils figcaption { margin-top: 22px; text-align: center; font-size: 0.6875rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--texte-2); }

/* Vitrine avec un seul appareil (si la capture bureau manque) */
.appareils-seul { grid-template-columns: minmax(200px, 320px); justify-content: center; }


/* ═════════ 5. IDENTITÉ : LE LOGO ═════════ */
.logo-bloc { align-items: center; }
.logo-legende { max-width: 26em; margin-top: 24px; color: var(--texte-2); font-size: 1.125rem; }

/* Le logo est présenté sur son propre fond.
   Réglages posés en style sur la figure :
     --fond-logo    couleur de fond (ex. #fff pour un logo prévu sur fond clair)
     --arrondi-logo arrondi des coins de l'image */
.logo-cadre {
  display: grid; place-items: center; padding: clamp(24px, 5vw, 64px); border-radius: 14px;
  background: var(--fond-logo, transparent);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.9), 0 0 0 1px var(--filet);
}
/* Largeur fixe, hauteur selon les proportions : la boîte colle au dessin */
.logo-cadre img { width: 100%; max-width: 520px; height: auto; border-radius: var(--arrondi-logo, 6px); }


/* ═════════ 6. CONTENU COURANT ═════════ */

/* Titre à gauche, texte à droite */
.deux-col { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 40px 80px; }

.texte-courant p { max-width: 36em; color: var(--texte-2); font-size: 1.125rem; }

/* Puces : un petit trait or à la place du rond */
.puces { display: grid; gap: 14px; list-style: none; }
.puces li { position: relative; padding-left: 26px; color: var(--texte-2); }
.puces li::before { content: ''; position: absolute; left: 0; top: 0.72em; width: 10px; height: 1px; background: var(--or); }


/* ═════════ 7. TRAVAIL RÉALISÉ ═════════ */
.livrables { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 64px; }
.livrable { padding: 40px 36px; border: 1px solid var(--filet); border-radius: 12px; transition: border-color 0.5s; }
.livrable:hover { border-color: var(--filet-or); }
.livrable h3 { margin: 0 0 22px; font-family: var(--titre); font-weight: 400; font-size: clamp(1.3rem, 1.9vw, 1.6rem); }
.livrable .puces { gap: 12px; font-size: 0.9375rem; }


/* ═════════ 8. LE + DU PROJET ═════════
   Quatre cartes, un « + » or devant chacune. */
.plus-liste { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 56px; list-style: none; }
.plus-liste li {
  position: relative; padding: 28px 30px 28px 70px; border: 1px solid var(--filet); border-radius: 12px;
  color: var(--texte-2); font-size: 1.0625rem; line-height: 1.55;
}
.plus-liste li::before { content: '+'; position: absolute; left: 26px; top: 18px; font-family: var(--titre); font-size: 2.2rem; line-height: 1; color: var(--or); }
.plus-liste strong { display: block; margin-bottom: 8px; font-family: var(--titre); font-weight: 400; font-size: 1.375rem; color: var(--texte); }


/* ═════════ 9. PROJET SUIVANT ═════════
   Tout le bandeau est cliquable ; le nom du projet passe en or au survol. */
.suivant { border-top: 1px solid var(--filet); }
.suivant a { display: block; padding-block: clamp(56px, 7.5vw, 104px); text-align: center; text-decoration: none; }
.suivant-libelle { font-size: 0.75rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--texte-2); }
.suivant strong { display: block; margin-top: 18px; font-family: var(--titre); font-weight: 400; font-size: clamp(1.9rem, 4.4vw, 3.6rem); line-height: 1; transition: color 0.5s; }
.suivant a:hover strong { color: var(--or); }


/* ═════════ 10. MOUVEMENT PROPRE AUX FICHES ═════════ */
/* Le téléphone arrive un peu après l'écran de bureau */
.js .appareils .apparait:nth-child(2) { transition-delay: 0.2s; }
/* Les blocs de droite arrivent un peu après ceux de gauche */
.js .livrables .apparait:nth-child(even) { transition-delay: 0.12s; }


/* ═════════ 11. RESPONSIVE ═════════ */
@media (max-width: 900px) {
  .fiche-intro, .deux-col, .en-bref { grid-template-columns: 1fr; }
  .fiche-intro .boutons { justify-content: flex-start; }
  .livrables, .plus-liste { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .techno { padding: 22px 20px; }
  .livrable { padding: 28px 24px; }

  /* Appareils réduits : bureau et téléphone restent côte à côte */
  .appareils { grid-template-columns: 1fr 0.42fr; gap: 16px; }
  .moniteur-cadre { padding: 5px 5px 14px; border-radius: 11px; border-width: 2px; }
  .moniteur-cadre::after { bottom: 5px; width: 5px; height: 5px; }
  .appareils .telephone { padding: 4px; border-radius: 18px; border-width: 2px; }
  .appareils .telephone::after { top: 10px; width: 6px; height: 6px; }
  .appareils .ecran-tel { border-radius: 12px; }
}
